primereact 10.9.3 → 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 +44 -59
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +44 -59
- package/api/api.esm.min.js +1 -1
- package/api/api.js +44 -59
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +43 -55
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +27 -25
- package/autocomplete/autocomplete.esm.js +43 -55
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +43 -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/calendar/calendar.cjs.js +46 -58
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -6
- package/calendar/calendar.esm.js +46 -58
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +46 -58
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +2 -2
- package/carousel/carousel.esm.js +43 -55
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +43 -55
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +40 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.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 +37 -49
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +2 -2
- package/chip/chip.esm.js +37 -49
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +37 -49
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +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 +33 -40
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +33 -40
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +33 -40
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +37 -49
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +37 -49
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +37 -49
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +37 -49
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +37 -49
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +37 -49
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +37 -49
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.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 +979 -1419
- 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 +26 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +2 -2
- package/datascroller/datascroller.esm.js +26 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +26 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +133 -120
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -5
- package/datatable/datatable.esm.js +133 -120
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +133 -120
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +46 -58
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +2 -2
- package/dataview/dataview.esm.js +46 -58
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +46 -58
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.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 -55
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +12 -12
- package/dialog/dialog.esm.js +43 -55
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +43 -55
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.d.ts +2 -2
- 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 +40 -55
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +10 -10
- package/dropdown/dropdown.esm.js +40 -55
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +40 -55
- 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 +48 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -4
- package/fileupload/fileupload.esm.js +48 -60
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +48 -60
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +17 -23
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +17 -23
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +17 -23
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +43 -55
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -2
- package/galleria/galleria.esm.js +43 -55
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +43 -55
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +37 -44
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +37 -44
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +37 -44
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +23 -34
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +23 -34
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +23 -34
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -11
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -11
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -11
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -11
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -11
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -11
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -11
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -11
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -11
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -11
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -11
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -11
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -11
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -11
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -11
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -11
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -11
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -11
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -11
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -11
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -11
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -11
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -11
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -11
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -11
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -11
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -11
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -11
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -11
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -11
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +6 -11
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -11
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -11
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +6 -11
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +6 -11
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +6 -11
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -11
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -11
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -11
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -11
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -11
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -11
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -11
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -11
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -11
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -11
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -11
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -11
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -11
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -11
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -11
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -11
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -11
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -11
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -11
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -11
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -11
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -11
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -11
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +6 -11
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -11
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -11
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -11
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -11
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -11
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -11
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -11
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -11
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -11
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -11
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +6 -11
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -11
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -11
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -11
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -11
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -11
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -11
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -11
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -11
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -11
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -11
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -11
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -11
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -11
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -11
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -11
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -11
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -11
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -11
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -11
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -11
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -11
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -11
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -11
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -11
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -11
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -11
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -11
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -11
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +6 -11
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -11
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -11
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -11
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -11
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -11
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -11
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -11
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -11
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -11
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -11
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -11
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -11
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -11
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -11
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +37 -49
- package/image/image.cjs.min.js +1 -1
- package/image/image.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 +6 -11
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +2 -2
- package/inputmask/inputmask.esm.js +6 -11
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +6 -11
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +44 -56
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +44 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +44 -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.d.ts +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 +37 -49
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +2 -2
- package/megamenu/megamenu.esm.js +37 -49
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +37 -49
- 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 +46 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -2
- package/menu/menu.esm.js +46 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +46 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +37 -49
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +8 -8
- package/menubar/menubar.esm.js +37 -49
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +37 -49
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +23 -34
- package/message/message.cjs.min.js +1 -1
- package/message/message.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 +63 -79
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -6
- package/multiselect/multiselect.esm.js +63 -79
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +63 -79
- 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 +43 -55
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +2 -2
- package/orderlist/orderlist.esm.js +43 -55
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +43 -55
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +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 +41 -56
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +41 -56
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -56
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +20 -26
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.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 +50 -65
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +2 -2
- package/picklist/picklist.esm.js +50 -65
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +50 -65
- 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 +217 -205
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +217 -205
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +217 -205
- 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 +37 -49
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +6 -6
- package/sidebar/sidebar.esm.js +37 -49
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +37 -49
- 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 +43 -55
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -2
- package/speeddial/speeddial.esm.js +43 -55
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -55
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -49
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +37 -49
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +37 -49
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +43 -55
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.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 +8 -3
- 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 +37 -44
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +2 -2
- package/tabview/tabview.esm.js +37 -44
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +37 -44
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +17 -23
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.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 +23 -34
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +2 -2
- package/togglebutton/togglebutton.esm.js +23 -34
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +23 -34
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.d.ts +2 -2
- package/tooltip/tooltip.cjs.js +43 -55
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +3 -3
- package/tooltip/tooltip.esm.js +43 -55
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +43 -55
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +51 -63
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +2 -2
- package/tree/tree.esm.js +51 -63
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +51 -63
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +46 -58
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -2
- package/treeselect/treeselect.esm.js +46 -58
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +46 -58
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +56 -68
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +2 -2
- package/treetable/treetable.esm.js +56 -68
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +56 -68
- 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 +61 -81
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +61 -81
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +61 -81
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +37 -49
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +37 -49
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +37 -49
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +18 -9
package/scrolltop/scrolltop.js
CHANGED
|
@@ -26,18 +26,13 @@ this.primereact.scrolltop = (function (exports, React, PrimeReact, componentbase
|
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
28
|
function _extends() {
|
|
29
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
30
|
-
for (var
|
|
31
|
-
var
|
|
32
|
-
for (var
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
-
target[key] = source[key];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
29
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
30
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
31
|
+
var t = arguments[e];
|
|
32
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
37
33
|
}
|
|
38
|
-
return
|
|
39
|
-
};
|
|
40
|
-
return _extends.apply(this, arguments);
|
|
34
|
+
return n;
|
|
35
|
+
}, _extends.apply(null, arguments);
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
function _typeof(o) {
|
|
@@ -50,39 +45,33 @@ this.primereact.scrolltop = (function (exports, React, PrimeReact, componentbase
|
|
|
50
45
|
}, _typeof(o);
|
|
51
46
|
}
|
|
52
47
|
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
55
|
-
var
|
|
56
|
-
if (
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
48
|
+
function toPrimitive(t, r) {
|
|
49
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
50
|
+
var e = t[Symbol.toPrimitive];
|
|
51
|
+
if (void 0 !== e) {
|
|
52
|
+
var i = e.call(t, r || "default");
|
|
53
|
+
if ("object" != _typeof(i)) return i;
|
|
59
54
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60
55
|
}
|
|
61
|
-
return (
|
|
56
|
+
return ("string" === r ? String : Number)(t);
|
|
62
57
|
}
|
|
63
58
|
|
|
64
|
-
function
|
|
65
|
-
var
|
|
66
|
-
return _typeof(
|
|
59
|
+
function toPropertyKey(t) {
|
|
60
|
+
var i = toPrimitive(t, "string");
|
|
61
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
67
62
|
}
|
|
68
63
|
|
|
69
|
-
function _defineProperty(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
writable: true
|
|
77
|
-
});
|
|
78
|
-
} else {
|
|
79
|
-
obj[key] = value;
|
|
80
|
-
}
|
|
81
|
-
return obj;
|
|
64
|
+
function _defineProperty(e, r, t) {
|
|
65
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
66
|
+
value: t,
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
configurable: !0,
|
|
69
|
+
writable: !0
|
|
70
|
+
}) : e[r] = t, e;
|
|
82
71
|
}
|
|
83
72
|
|
|
84
|
-
function _arrayWithHoles(
|
|
85
|
-
if (Array.isArray(
|
|
73
|
+
function _arrayWithHoles(r) {
|
|
74
|
+
if (Array.isArray(r)) return r;
|
|
86
75
|
}
|
|
87
76
|
|
|
88
77
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -113,27 +102,26 @@ this.primereact.scrolltop = (function (exports, React, PrimeReact, componentbase
|
|
|
113
102
|
}
|
|
114
103
|
}
|
|
115
104
|
|
|
116
|
-
function _arrayLikeToArray(
|
|
117
|
-
|
|
118
|
-
for (var
|
|
119
|
-
return
|
|
105
|
+
function _arrayLikeToArray(r, a) {
|
|
106
|
+
(null == a || a > r.length) && (a = r.length);
|
|
107
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
108
|
+
return n;
|
|
120
109
|
}
|
|
121
110
|
|
|
122
|
-
function _unsupportedIterableToArray(
|
|
123
|
-
if (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
111
|
+
function _unsupportedIterableToArray(r, a) {
|
|
112
|
+
if (r) {
|
|
113
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
114
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
115
|
+
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;
|
|
116
|
+
}
|
|
129
117
|
}
|
|
130
118
|
|
|
131
119
|
function _nonIterableRest() {
|
|
132
120
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
133
121
|
}
|
|
134
122
|
|
|
135
|
-
function _slicedToArray(
|
|
136
|
-
return _arrayWithHoles(
|
|
123
|
+
function _slicedToArray(r, e) {
|
|
124
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
137
125
|
}
|
|
138
126
|
|
|
139
127
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.scrolltop=function(t,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.scrolltop=function(e,t,n,r,o,i,l,c,a){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}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 p=u(t),f=s(n);function y(){return y=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},y.apply(null,arguments)}function m(e){return m="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},m(e)}function d(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){var t=d(e,"string");return"symbol"==m(t)?t:t+""}function v(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){if(Array.isArray(e))return e}function h(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,c=[],a=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw o}}return c}}function O(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 w(e,t){if(e){if("string"==typeof e)return O(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)?O(e,t):void 0}}function j(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){return g(e)||h(e,t)||w(e,t)||j()}var E=r.ComponentBase.extend({defaultProps:{__TYPE:"ScrollTop",target:"window",threshold:400,icon:null,behavior:"smooth",className:null,style:null,transitionOptions:null,onShow:null,onHide:null,children:void 0},css:{classes:{root:function(e){return a.classNames("p-scrolltop p-link p-component",{"p-scrolltop-sticky":"window"!==e.props.target})},icon:"p-scrolltop-icon",transition:"p-scrolltop"},styles:"\n@layer primereact {\n .p-scrolltop {\n position: fixed;\n bottom: 20px;\n right: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-scrolltop-sticky {\n position: sticky;\n }\n \n .p-scrolltop-sticky.p-link {\n margin-left: auto;\n }\n \n .p-scrolltop-helper {\n display: none;\n }\n \n .p-scrolltop-enter {\n opacity: 0;\n }\n \n .p-scrolltop-enter-active {\n opacity: 1;\n transition: opacity .15s;\n }\n \n .p-scrolltop-exit {\n opacity: 1;\n }\n \n .p-scrolltop-exit-active {\n opacity: 0;\n transition: opacity .15s;\n }\n}\n"}});function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=p.memo(p.forwardRef((function(e,t){var s=S(p.useState(!1),2),u=s[0],m=s[1],d=i.useMergeProps(),b=p.useContext(n.PrimeReactContext),v=E.getProps(e,b),g=E.setMetaData({props:v,state:{visible:u}}),h=g.ptm,O=g.cx;r.useHandleStyle(E.css.styles,g.isUnstyled,{name:"scrolltop"});var w=p.useRef(null),j=p.useRef(null),x="parent"===v.target,I=S(i.useEventListener({target:function(){return j.current&&j.current.parentElement},type:"scroll",listener:function(e){k(e.currentTarget.scrollTop)}}),1)[0],T=S(i.useEventListener({target:"window",type:"scroll",listener:function(e){e&&k(a.DomHandler.getWindowScrollTop())}}),1)[0],k=function(e){m(e>v.threshold)};p.useImperativeHandle(t,(function(){return{props:v,getElement:function(){return elementRef.current}}})),p.useEffect((function(){"window"===v.target?T():"parent"===v.target&&I()}),[]),i.useUnmountEffect((function(){a.ZIndexUtils.clear(w.current)}));var N=d({className:O("icon")},h("icon")),R=a.IconUtils.getJSXIcon(v.icon||p.createElement(l.ChevronUpIcon,N),P({},N),{props:v}),U=n.localeOption("aria")?n.localeOption("aria").scrollTop:void 0,C=d({ref:w,type:"button",className:a.classNames(v.className,O("root")),style:v.style,onClick:function(){("window"===v.target?window:j.current.parentElement).scroll({top:0,behavior:v.behavior})},"aria-label":U},E.getOtherProps(v),h("root")),D=d({classNames:O("transition"),in:u,timeout:{enter:150,exit:150},options:v.transitionOptions,unmountOnExit:!0,onEnter:function(){a.ZIndexUtils.set("overlay",w.current,b&&b.autoZIndex||f.default.autoZIndex,b&&b.zIndex.overlay||f.default.zIndex.overlay)},onEntered:function(){v.onShow&&v.onShow()},onExited:function(){a.ZIndexUtils.clear(w.current),v.onHide&&v.onHide()}},h("transition"));return p.createElement(p.Fragment,null,p.createElement(o.CSSTransition,y({nodeRef:w},D),p.createElement("button",C,R,p.createElement(c.Ripple,null))),x&&p.createElement("span",{ref:j,className:"p-scrolltop-helper"}))})));return I.displayName="ScrollTop",e.ScrollTop=I,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.csstransition,primereact.hooks,primereact.icons.chevronup,primereact.ripple,primereact.utils);
|
|
@@ -32,53 +32,47 @@ function _interopNamespace(e) {
|
|
|
32
32
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
33
|
|
|
34
34
|
function _extends() {
|
|
35
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
36
|
-
for (var
|
|
37
|
-
var
|
|
38
|
-
for (var
|
|
39
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40
|
-
target[key] = source[key];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
35
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
36
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
37
|
+
var t = arguments[e];
|
|
38
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
43
39
|
}
|
|
44
|
-
return
|
|
45
|
-
};
|
|
46
|
-
return _extends.apply(this, arguments);
|
|
40
|
+
return n;
|
|
41
|
+
}, _extends.apply(null, arguments);
|
|
47
42
|
}
|
|
48
43
|
|
|
49
|
-
function _arrayLikeToArray(
|
|
50
|
-
|
|
51
|
-
for (var
|
|
52
|
-
return
|
|
44
|
+
function _arrayLikeToArray(r, a) {
|
|
45
|
+
(null == a || a > r.length) && (a = r.length);
|
|
46
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
47
|
+
return n;
|
|
53
48
|
}
|
|
54
49
|
|
|
55
|
-
function _arrayWithoutHoles(
|
|
56
|
-
if (Array.isArray(
|
|
50
|
+
function _arrayWithoutHoles(r) {
|
|
51
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
57
52
|
}
|
|
58
53
|
|
|
59
|
-
function _iterableToArray(
|
|
60
|
-
if (typeof Symbol
|
|
54
|
+
function _iterableToArray(r) {
|
|
55
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
61
56
|
}
|
|
62
57
|
|
|
63
|
-
function _unsupportedIterableToArray(
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
58
|
+
function _unsupportedIterableToArray(r, a) {
|
|
59
|
+
if (r) {
|
|
60
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
61
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
62
|
+
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;
|
|
63
|
+
}
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
function _nonIterableSpread() {
|
|
73
67
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
74
68
|
}
|
|
75
69
|
|
|
76
|
-
function _toConsumableArray(
|
|
77
|
-
return _arrayWithoutHoles(
|
|
70
|
+
function _toConsumableArray(r) {
|
|
71
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
78
72
|
}
|
|
79
73
|
|
|
80
|
-
function _arrayWithHoles(
|
|
81
|
-
if (Array.isArray(
|
|
74
|
+
function _arrayWithHoles(r) {
|
|
75
|
+
if (Array.isArray(r)) return r;
|
|
82
76
|
}
|
|
83
77
|
|
|
84
78
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -113,8 +107,8 @@ function _nonIterableRest() {
|
|
|
113
107
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
114
108
|
}
|
|
115
109
|
|
|
116
|
-
function _slicedToArray(
|
|
117
|
-
return _arrayWithHoles(
|
|
110
|
+
function _slicedToArray(r, e) {
|
|
111
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
118
112
|
}
|
|
119
113
|
|
|
120
114
|
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"),l=require("primereact/tooltip"),o=require("primereact/utils"),a=require("primereact/ripple");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=i(e);function s(){return s=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"),l=require("primereact/tooltip"),o=require("primereact/utils"),a=require("primereact/ripple");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=i(e);function s(){return s=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},s.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 p(e){if(Array.isArray(e))return c(e)}function d(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 m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e){return p(e)||d(e)||f(e)||m()}function v(e){if(Array.isArray(e))return e}function y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,a,i=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){s=!0,l=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw l}}return i}}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,t){return v(e)||y(e,t)||f(e,t)||g()}var x=n.ComponentBase.extend({defaultProps:{__TYPE:"SelectButton",id:null,value:null,options:null,optionLabel:null,optionValue:null,optionDisabled:null,tabIndex:null,multiple:!1,invalid:!1,unselectable:!0,allowEmpty:!0,disabled:!1,style:null,className:null,dataKey:null,tooltip:null,tooltipOptions:null,itemTemplate:null,onChange:null,children:void 0},css:{classes:{root:function(e){return o.classNames("p-selectbutton p-button-group p-component",{"p-invalid":e.props.invalid})},button:function(e){var t=e.itemProps;return o.classNames("p-button p-component",{"p-highlight":t.selected,"p-disabled":t.disabled,"p-focus":e.focusedState})},label:"p-button-label p-c"}}}),O=u.memo((function(e){var t,n=h(u.useState(!1),2),l=n[0],i=n[1],s=r.useMergeProps(),c=e.ptm,p=e.cx,d=function(t){return c(t,{hostName:e.hostName,context:{selected:e.selected,disabled:e.disabled,option:e.option}})},f=function(t,n){e.setFocusedIndex(n),e.onClick&&e.onClick({originalEvent:t,option:e.option})},m=function(e,t){switch(e.code){case"Space":f(e,t),e.preventDefault();break;case"ArrowDown":case"ArrowRight":b(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":b(e,"prev"),e.preventDefault()}},b=function(t,n){for(var r,l,o=0;o<=e.elementRef.current.children.length-1;o++)"0"===e.elementRef.current.children[o].getAttribute("tabindex")&&(r={elem:e.elementRef.current.children[o],index:o});e.setFocusedIndex(l="prev"===n?0===r.index?e.elementRef.current.children.length-1:r.index-1:r.index===e.elementRef.current.children.length-1?0:r.index+1),e.elementRef.current.children[l].focus()},v=(t=s({className:p("label")},d("label")),e.template?o.ObjectUtils.getJSXElement(e.template,e.option):u.createElement("span",t,e.label)),y=s({className:o.classNames(e.className,p("button",{itemProps:e,focusedState:l})),role:"button","aria-label":e.label,"aria-pressed":e.selected,onClick:function(t){return f(t,e.index)},onKeyDown:function(t){return m(t,e.index)},tabIndex:e.tabIndex,"aria-disabled":e.disabled,onFocus:function(){i(!0)},onBlur:function(){i(!1)}},d("button"));return u.createElement("div",y,v,!e.disabled&&u.createElement(a.Ripple,null))}));O.displayName="SelectButtonItem";var j=u.memo(u.forwardRef((function(e,a){var i=r.useMergeProps(),c=u.useContext(t.PrimeReactContext),p=x.getProps(e,c),d=h(u.useState(0),2),f=d[0],m=d[1],v=u.useRef(null),y=x.setMetaData({props:p}),g=y.ptm,j=y.cx;n.useHandleStyle(x.css.styles,y.isUnstyled,{name:"selectbutton",styled:!0});var E=function(e){if(!p.disabled&&!N(e.option)){var t=w(e.option);if(!t||p.unselectable&&p.allowEmpty){var n,r=D(e.option);if(p.multiple){var l=p.value?b(p.value):[];n=t?l.filter((function(e){return!o.ObjectUtils.equals(e,r,p.dataKey)})):[].concat(b(l),[r])}else n=t?null:r;p.onChange&&p.onChange({originalEvent:e.originalEvent,value:n,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:p.name,id:p.id,value:n}})}}},S=function(e){return p.optionLabel?o.ObjectUtils.resolveFieldData(e,p.optionLabel):e&&void 0!==e.label?e.label:e},D=function(e){return p.optionValue?o.ObjectUtils.resolveFieldData(e,p.optionValue):e&&void 0!==e.value?e.value:e},N=function(e){return p.optionDisabled?o.ObjectUtils.isFunction(p.optionDisabled)?p.optionDisabled(e):o.ObjectUtils.resolveFieldData(e,p.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled},w=function(e){var t=D(e);return p.multiple?!(!p.value||!p.value.length)&&p.value.some((function(e){return o.ObjectUtils.equals(e,t,p.dataKey)})):o.ObjectUtils.equals(p.value,t,p.dataKey)};u.useImperativeHandle(a,(function(){return{props:p,focus:function(){return o.DomHandler.focusFirstElement(v.current)},getElement:function(){return v.current}}}));var P=o.ObjectUtils.isNotEmpty(p.tooltip),A=p.options&&p.options.length?p.options.map((function(e,t){var n=p.disabled||N(e),r=S(e),l=p.disabled||t!==f?"-1":"0",o=w(e);return u.createElement(O,{hostName:"SelectButton",key:r+"_"+t,label:r,className:e.className,option:e,setFocusedIndex:m,onClick:E,template:p.itemTemplate,selected:o,tabIndex:l,index:t,disabled:n,ptm:g,cx:j,elementRef:v})})):null,I=i({ref:v,id:p.id,className:o.classNames(p.className,j("root")),style:p.style,role:"group"},x.getOtherProps(p),g("root"));return u.createElement(u.Fragment,null,u.createElement("div",I,A,p.children),P&&u.createElement(l.Tooltip,s({target:v,content:p.tooltip,pt:g("tooltip")},p.tooltipOptions)))})));j.displayName="SelectButton",exports.SelectButton=j;
|
|
@@ -200,9 +200,9 @@ export interface SelectButtonProps extends Omit<React.DetailedHTMLProps<React.In
|
|
|
200
200
|
export declare class SelectButton extends React.Component<SelectButtonProps, any> {
|
|
201
201
|
/**
|
|
202
202
|
* Used to get container element.
|
|
203
|
-
* @return {HTMLDivElement} Container element
|
|
203
|
+
* @return {HTMLDivElement | null} Container element
|
|
204
204
|
*/
|
|
205
|
-
public getElement(): HTMLDivElement;
|
|
205
|
+
public getElement(): HTMLDivElement | null;
|
|
206
206
|
/**
|
|
207
207
|
* Used to focus the component.
|
|
208
208
|
*/
|
|
@@ -8,53 +8,47 @@ import { classNames, ObjectUtils, DomHandler } from 'primereact/utils';
|
|
|
8
8
|
import { Ripple } from 'primereact/ripple';
|
|
9
9
|
|
|
10
10
|
function _extends() {
|
|
11
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
12
|
-
for (var
|
|
13
|
-
var
|
|
14
|
-
for (var
|
|
15
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16
|
-
target[key] = source[key];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
11
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
12
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
13
|
+
var t = arguments[e];
|
|
14
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
19
15
|
}
|
|
20
|
-
return
|
|
21
|
-
};
|
|
22
|
-
return _extends.apply(this, arguments);
|
|
16
|
+
return n;
|
|
17
|
+
}, _extends.apply(null, arguments);
|
|
23
18
|
}
|
|
24
19
|
|
|
25
|
-
function _arrayLikeToArray(
|
|
26
|
-
|
|
27
|
-
for (var
|
|
28
|
-
return
|
|
20
|
+
function _arrayLikeToArray(r, a) {
|
|
21
|
+
(null == a || a > r.length) && (a = r.length);
|
|
22
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
23
|
+
return n;
|
|
29
24
|
}
|
|
30
25
|
|
|
31
|
-
function _arrayWithoutHoles(
|
|
32
|
-
if (Array.isArray(
|
|
26
|
+
function _arrayWithoutHoles(r) {
|
|
27
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
33
28
|
}
|
|
34
29
|
|
|
35
|
-
function _iterableToArray(
|
|
36
|
-
if (typeof Symbol
|
|
30
|
+
function _iterableToArray(r) {
|
|
31
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
37
32
|
}
|
|
38
33
|
|
|
39
|
-
function _unsupportedIterableToArray(
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
34
|
+
function _unsupportedIterableToArray(r, a) {
|
|
35
|
+
if (r) {
|
|
36
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
37
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
38
|
+
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;
|
|
39
|
+
}
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
function _nonIterableSpread() {
|
|
49
43
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
50
44
|
}
|
|
51
45
|
|
|
52
|
-
function _toConsumableArray(
|
|
53
|
-
return _arrayWithoutHoles(
|
|
46
|
+
function _toConsumableArray(r) {
|
|
47
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
54
48
|
}
|
|
55
49
|
|
|
56
|
-
function _arrayWithHoles(
|
|
57
|
-
if (Array.isArray(
|
|
50
|
+
function _arrayWithHoles(r) {
|
|
51
|
+
if (Array.isArray(r)) return r;
|
|
58
52
|
}
|
|
59
53
|
|
|
60
54
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -89,8 +83,8 @@ function _nonIterableRest() {
|
|
|
89
83
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
90
84
|
}
|
|
91
85
|
|
|
92
|
-
function _slicedToArray(
|
|
93
|
-
return _arrayWithHoles(
|
|
86
|
+
function _slicedToArray(r, e) {
|
|
87
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
94
88
|
}
|
|
95
89
|
|
|
96
90
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as l}from"primereact/hooks";import{Tooltip as o}from"primereact/tooltip";import{classNames as a,ObjectUtils as i,DomHandler as u}from"primereact/utils";import{Ripple as c}from"primereact/ripple";function s(){return s=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},s.apply(null,arguments)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e){if(Array.isArray(e))return p(e)}function m(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 p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function 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 v(e){return d(e)||m(e)||f(e)||b()}function y(e){if(Array.isArray(e))return e}function h(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,a,i=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.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&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw l}}return i}}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 x(e,t){return y(e)||h(e,t)||f(e,t)||g()}var E=n.extend({defaultProps:{__TYPE:"SelectButton",id:null,value:null,options:null,optionLabel:null,optionValue:null,optionDisabled:null,tabIndex:null,multiple:!1,invalid:!1,unselectable:!0,allowEmpty:!0,disabled:!1,style:null,className:null,dataKey:null,tooltip:null,tooltipOptions:null,itemTemplate:null,onChange:null,children:void 0},css:{classes:{root:function(e){return a("p-selectbutton p-button-group p-component",{"p-invalid":e.props.invalid})},button:function(e){var t=e.itemProps;return a("p-button p-component",{"p-highlight":t.selected,"p-disabled":t.disabled,"p-focus":e.focusedState})},label:"p-button-label p-c"}}}),S=e.memo((function(t){var n,r=x(e.useState(!1),2),o=r[0],u=r[1],s=l(),p=t.ptm,d=t.cx,m=function(e){return p(e,{hostName:t.hostName,context:{selected:t.selected,disabled:t.disabled,option:t.option}})},f=function(e,n){t.setFocusedIndex(n),t.onClick&&t.onClick({originalEvent:e,option:t.option})},b=function(e,t){switch(e.code){case"Space":f(e,t),e.preventDefault();break;case"ArrowDown":case"ArrowRight":v(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":v(e,"prev"),e.preventDefault()}},v=function(e,n){for(var r,l,o=0;o<=t.elementRef.current.children.length-1;o++)"0"===t.elementRef.current.children[o].getAttribute("tabindex")&&(r={elem:t.elementRef.current.children[o],index:o});t.setFocusedIndex(l="prev"===n?0===r.index?t.elementRef.current.children.length-1:r.index-1:r.index===t.elementRef.current.children.length-1?0:r.index+1),t.elementRef.current.children[l].focus()},y=(n=s({className:d("label")},m("label")),t.template?i.getJSXElement(t.template,t.option):e.createElement("span",n,t.label)),h=s({className:a(t.className,d("button",{itemProps:t,focusedState:o})),role:"button","aria-label":t.label,"aria-pressed":t.selected,onClick:function(e){return f(e,t.index)},onKeyDown:function(e){return b(e,t.index)},tabIndex:t.tabIndex,"aria-disabled":t.disabled,onFocus:function(){u(!0)},onBlur:function(){u(!1)}},m("button"));return e.createElement("div",h,y,!t.disabled&&e.createElement(c,null))}));S.displayName="SelectButtonItem";var w=e.memo(e.forwardRef((function(n,c){var p=l(),d=e.useContext(t),m=E.getProps(n,d),f=x(e.useState(0),2),b=f[0],y=f[1],h=e.useRef(null),g=E.setMetaData({props:m}),w=g.ptm,D=g.cx;r(E.css.styles,g.isUnstyled,{name:"selectbutton",styled:!0});var A=function(e){if(!m.disabled&&!F(e.option)){var t=R(e.option);if(!t||m.unselectable&&m.allowEmpty){var n,r=N(e.option);if(m.multiple){var l=m.value?v(m.value):[];n=t?l.filter((function(e){return!i.equals(e,r,m.dataKey)})):[].concat(v(l),[r])}else n=t?null:r;m.onChange&&m.onChange({originalEvent:e.originalEvent,value:n,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:m.name,id:m.id,value:n}})}}},I=function(e){return m.optionLabel?i.resolveFieldData(e,m.optionLabel):e&&void 0!==e.label?e.label:e},N=function(e){return m.optionValue?i.resolveFieldData(e,m.optionValue):e&&void 0!==e.value?e.value:e},F=function(e){return m.optionDisabled?i.isFunction(m.optionDisabled)?m.optionDisabled(e):i.resolveFieldData(e,m.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled},R=function(e){var t=N(e);return m.multiple?!(!m.value||!m.value.length)&&m.value.some((function(e){return i.equals(e,t,m.dataKey)})):i.equals(m.value,t,m.dataKey)};e.useImperativeHandle(c,(function(){return{props:m,focus:function(){return u.focusFirstElement(h.current)},getElement:function(){return h.current}}}));var C=i.isNotEmpty(m.tooltip),O=m.options&&m.options.length?m.options.map((function(t,n){var r=m.disabled||F(t),l=I(t),o=m.disabled||n!==b?"-1":"0",a=R(t);return e.createElement(S,{hostName:"SelectButton",key:l+"_"+n,label:l,className:t.className,option:t,setFocusedIndex:y,onClick:A,template:m.itemTemplate,selected:a,tabIndex:o,index:n,disabled:r,ptm:w,cx:D,elementRef:h})})):null,P=p({ref:h,id:m.id,className:a(m.className,D("root")),style:m.style,role:"group"},E.getOtherProps(m),w("root"));return e.createElement(e.Fragment,null,e.createElement("div",P,O,m.children),C&&e.createElement(o,s({target:h,content:m.tooltip,pt:w("tooltip")},m.tooltipOptions)))})));w.displayName="SelectButton";export{w as SelectButton};
|
|
@@ -23,53 +23,47 @@ this.primereact.selectbutton = (function (exports, React, api, componentbase, ho
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
25
25
|
function _extends() {
|
|
26
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
27
|
-
for (var
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
26
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
27
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
28
|
+
var t = arguments[e];
|
|
29
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
34
30
|
}
|
|
35
|
-
return
|
|
36
|
-
};
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
31
|
+
return n;
|
|
32
|
+
}, _extends.apply(null, arguments);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
function _arrayLikeToArray(
|
|
41
|
-
|
|
42
|
-
for (var
|
|
43
|
-
return
|
|
35
|
+
function _arrayLikeToArray(r, a) {
|
|
36
|
+
(null == a || a > r.length) && (a = r.length);
|
|
37
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
+
return n;
|
|
44
39
|
}
|
|
45
40
|
|
|
46
|
-
function _arrayWithoutHoles(
|
|
47
|
-
if (Array.isArray(
|
|
41
|
+
function _arrayWithoutHoles(r) {
|
|
42
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
function _iterableToArray(
|
|
51
|
-
if (typeof Symbol
|
|
45
|
+
function _iterableToArray(r) {
|
|
46
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
52
47
|
}
|
|
53
48
|
|
|
54
|
-
function _unsupportedIterableToArray(
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
49
|
+
function _unsupportedIterableToArray(r, a) {
|
|
50
|
+
if (r) {
|
|
51
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
52
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
53
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
54
|
+
}
|
|
61
55
|
}
|
|
62
56
|
|
|
63
57
|
function _nonIterableSpread() {
|
|
64
58
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
59
|
}
|
|
66
60
|
|
|
67
|
-
function _toConsumableArray(
|
|
68
|
-
return _arrayWithoutHoles(
|
|
61
|
+
function _toConsumableArray(r) {
|
|
62
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
69
63
|
}
|
|
70
64
|
|
|
71
|
-
function _arrayWithHoles(
|
|
72
|
-
if (Array.isArray(
|
|
65
|
+
function _arrayWithHoles(r) {
|
|
66
|
+
if (Array.isArray(r)) return r;
|
|
73
67
|
}
|
|
74
68
|
|
|
75
69
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -104,8 +98,8 @@ this.primereact.selectbutton = (function (exports, React, api, componentbase, ho
|
|
|
104
98
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
105
99
|
}
|
|
106
100
|
|
|
107
|
-
function _slicedToArray(
|
|
108
|
-
return _arrayWithHoles(
|
|
101
|
+
function _slicedToArray(r, e) {
|
|
102
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
109
103
|
}
|
|
110
104
|
|
|
111
105
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.selectbutton=function(e,t,n,r,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.selectbutton=function(e,t,n,l,r,o,a,i){"use strict";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 l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s=u(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 l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},c.apply(null,arguments)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}function d(e){if(Array.isArray(e))return p(e)}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function 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 v(e){return d(e)||f(e)||m(e)||b()}function y(e){if(Array.isArray(e))return e}function h(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var l,r,o,a,i=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(l=o.call(n)).done)&&(i.push(l.value),i.length!==t);u=!0);}catch(e){s=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return i}}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 x(e,t){return y(e)||h(e,t)||m(e,t)||g()}var O=l.ComponentBase.extend({defaultProps:{__TYPE:"SelectButton",id:null,value:null,options:null,optionLabel:null,optionValue:null,optionDisabled:null,tabIndex:null,multiple:!1,invalid:!1,unselectable:!0,allowEmpty:!0,disabled:!1,style:null,className:null,dataKey:null,tooltip:null,tooltipOptions:null,itemTemplate:null,onChange:null,children:void 0},css:{classes:{root:function(e){return a.classNames("p-selectbutton p-button-group p-component",{"p-invalid":e.props.invalid})},button:function(e){var t=e.itemProps;return a.classNames("p-button p-component",{"p-highlight":t.selected,"p-disabled":t.disabled,"p-focus":e.focusedState})},label:"p-button-label p-c"}}}),j=s.memo((function(e){var t,n=x(s.useState(!1),2),l=n[0],o=n[1],u=r.useMergeProps(),c=e.ptm,p=e.cx,d=function(t){return c(t,{hostName:e.hostName,context:{selected:e.selected,disabled:e.disabled,option:e.option}})},f=function(t,n){e.setFocusedIndex(n),e.onClick&&e.onClick({originalEvent:t,option:e.option})},m=function(e,t){switch(e.code){case"Space":f(e,t),e.preventDefault();break;case"ArrowDown":case"ArrowRight":b(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":b(e,"prev"),e.preventDefault()}},b=function(t,n){for(var l,r,o=0;o<=e.elementRef.current.children.length-1;o++)"0"===e.elementRef.current.children[o].getAttribute("tabindex")&&(l={elem:e.elementRef.current.children[o],index:o});e.setFocusedIndex(r="prev"===n?0===l.index?e.elementRef.current.children.length-1:l.index-1:l.index===e.elementRef.current.children.length-1?0:l.index+1),e.elementRef.current.children[r].focus()},v=(t=u({className:p("label")},d("label")),e.template?a.ObjectUtils.getJSXElement(e.template,e.option):s.createElement("span",t,e.label)),y=u({className:a.classNames(e.className,p("button",{itemProps:e,focusedState:l})),role:"button","aria-label":e.label,"aria-pressed":e.selected,onClick:function(t){return f(t,e.index)},onKeyDown:function(t){return m(t,e.index)},tabIndex:e.tabIndex,"aria-disabled":e.disabled,onFocus:function(){o(!0)},onBlur:function(){o(!1)}},d("button"));return s.createElement("div",y,v,!e.disabled&&s.createElement(i.Ripple,null))}));j.displayName="SelectButtonItem";var E=s.memo(s.forwardRef((function(e,t){var i=r.useMergeProps(),u=s.useContext(n.PrimeReactContext),p=O.getProps(e,u),d=x(s.useState(0),2),f=d[0],m=d[1],b=s.useRef(null),y=O.setMetaData({props:p}),h=y.ptm,g=y.cx;l.useHandleStyle(O.css.styles,y.isUnstyled,{name:"selectbutton",styled:!0});var E=function(e){if(!p.disabled&&!N(e.option)){var t=w(e.option);if(!t||p.unselectable&&p.allowEmpty){var n,l=D(e.option);if(p.multiple){var r=p.value?v(p.value):[];n=t?r.filter((function(e){return!a.ObjectUtils.equals(e,l,p.dataKey)})):[].concat(v(r),[l])}else n=t?null:l;p.onChange&&p.onChange({originalEvent:e.originalEvent,value:n,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:p.name,id:p.id,value:n}})}}},S=function(e){return p.optionLabel?a.ObjectUtils.resolveFieldData(e,p.optionLabel):e&&void 0!==e.label?e.label:e},D=function(e){return p.optionValue?a.ObjectUtils.resolveFieldData(e,p.optionValue):e&&void 0!==e.value?e.value:e},N=function(e){return p.optionDisabled?a.ObjectUtils.isFunction(p.optionDisabled)?p.optionDisabled(e):a.ObjectUtils.resolveFieldData(e,p.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled},w=function(e){var t=D(e);return p.multiple?!(!p.value||!p.value.length)&&p.value.some((function(e){return a.ObjectUtils.equals(e,t,p.dataKey)})):a.ObjectUtils.equals(p.value,t,p.dataKey)};s.useImperativeHandle(t,(function(){return{props:p,focus:function(){return a.DomHandler.focusFirstElement(b.current)},getElement:function(){return b.current}}}));var P=a.ObjectUtils.isNotEmpty(p.tooltip),A=p.options&&p.options.length?p.options.map((function(e,t){var n=p.disabled||N(e),l=S(e),r=p.disabled||t!==f?"-1":"0",o=w(e);return s.createElement(j,{hostName:"SelectButton",key:l+"_"+t,label:l,className:e.className,option:e,setFocusedIndex:m,onClick:E,template:p.itemTemplate,selected:o,tabIndex:r,index:t,disabled:n,ptm:h,cx:g,elementRef:b})})):null,I=i({ref:b,id:p.id,className:a.classNames(p.className,g("root")),style:p.style,role:"group"},O.getOtherProps(p),h("root"));return s.createElement(s.Fragment,null,s.createElement("div",I,A,p.children),P&&s.createElement(o.Tooltip,c({target:b,content:p.tooltip,pt:h("tooltip")},p.tooltipOptions)))})));return E.displayName="SelectButton",e.SelectButton=E,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.tooltip,primereact.utils,primereact.ripple);
|