primereact 10.9.3 → 10.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +43 -55
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.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 +56 -56
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +27 -25
- package/autocomplete/autocomplete.esm.js +57 -57
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +56 -56
- 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 +39 -50
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +2 -2
- package/breadcrumb/breadcrumb.esm.js +39 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +39 -50
- 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 +56 -60
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -6
- package/calendar/calendar.esm.js +57 -61
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +56 -60
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.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 +49 -54
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +17 -8
- package/cascadeselect/cascadeselect.esm.js +49 -54
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +49 -54
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.d.ts +2 -2
- package/checkbox/checkbox.cjs.js +38 -50
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +4 -4
- package/checkbox/checkbox.esm.js +38 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +38 -50
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +52 -51
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +2 -2
- package/chip/chip.esm.js +54 -53
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +52 -51
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +44 -56
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +2 -2
- package/chips/chips.esm.js +44 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +44 -56
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +47 -51
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +6 -6
- package/colorpicker/colorpicker.esm.js +47 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +47 -51
- 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 +47 -51
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +47 -51
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +47 -51
- 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 +1151 -1449
- 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 +411 -358
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -5
- package/datatable/datatable.esm.js +412 -359
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +411 -358
- 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 +53 -57
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +14 -10
- package/dropdown/dropdown.esm.js +53 -57
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +53 -57
- 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 +53 -50
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +53 -50
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +53 -50
- 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 +7 -12
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +2 -2
- package/inputmask/inputmask.esm.js +7 -12
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +7 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +49 -58
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +49 -58
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +49 -58
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +65 -56
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +65 -56
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +65 -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 +61 -64
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +11 -6
- package/mention/mention.esm.js +61 -64
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +61 -64
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +57 -58
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -2
- package/menu/menu.esm.js +58 -59
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +57 -58
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +43 -58
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +8 -8
- package/menubar/menubar.esm.js +43 -58
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +43 -58
- 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 +70 -82
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -6
- package/multiselect/multiselect.esm.js +70 -82
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +70 -82
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +38 -50
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +38 -50
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +38 -50
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +77 -58
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +2 -2
- package/orderlist/orderlist.esm.js +77 -58
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +77 -58
- 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 +46 -59
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +2 -2
- package/overlaypanel/overlaypanel.esm.js +46 -59
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +46 -59
- 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 +46 -51
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +6 -6
- package/password/password.esm.js +47 -52
- package/password/password.esm.min.js +1 -1
- package/password/password.js +46 -51
- 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 +858 -539
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +859 -540
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +858 -539
- 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 +25 -36
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +5 -5
- package/radiobutton/radiobutton.esm.js +25 -36
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +25 -36
- 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 +46 -51
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +2 -2
- package/slidemenu/slidemenu.esm.js +47 -52
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +46 -51
- 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 +52 -64
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +2 -2
- package/tree/tree.esm.js +52 -64
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +52 -64
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +61 -66
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -2
- package/treeselect/treeselect.esm.js +61 -66
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +61 -66
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +57 -69
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +2 -2
- package/treetable/treetable.esm.js +57 -69
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +57 -69
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +43 -55
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +2 -2
- package/tristatecheckbox/tristatecheckbox.esm.js +43 -55
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +43 -55
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +197 -99
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +5 -1
- package/utils/utils.esm.js +197 -99
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +197 -99
- 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 +46 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default from 'react';
|
|
3
|
+
import React__default, { Fragment } from 'react';
|
|
4
4
|
import PrimeReact$1, { FilterMatchMode as FilterMatchMode$1, PrimeReactContext, ariaLabel as ariaLabel$1, localeOption, FilterOperator, FilterService } from 'primereact/api';
|
|
5
5
|
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
6
6
|
import { ObjectUtils, classNames, DomHandler, IconUtils, UniqueComponentId, ZIndexUtils } from 'primereact/utils';
|
|
@@ -33,18 +33,13 @@ import { SortAmountDownIcon } from 'primereact/icons/sortamountdown';
|
|
|
33
33
|
import { SortAmountUpAltIcon } from 'primereact/icons/sortamountupalt';
|
|
34
34
|
|
|
35
35
|
function _extends() {
|
|
36
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
37
|
-
for (var
|
|
38
|
-
var
|
|
39
|
-
for (var
|
|
40
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
41
|
-
target[key] = source[key];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
36
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
37
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
38
|
+
var t = arguments[e];
|
|
39
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
44
40
|
}
|
|
45
|
-
return
|
|
46
|
-
};
|
|
47
|
-
return _extends.apply(this, arguments);
|
|
41
|
+
return n;
|
|
42
|
+
}, _extends.apply(null, arguments);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
function _typeof(o) {
|
|
@@ -57,70 +52,63 @@ function _typeof(o) {
|
|
|
57
52
|
}, _typeof(o);
|
|
58
53
|
}
|
|
59
54
|
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
62
|
-
var
|
|
63
|
-
if (
|
|
64
|
-
var
|
|
65
|
-
if (
|
|
55
|
+
function toPrimitive(t, r) {
|
|
56
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
57
|
+
var e = t[Symbol.toPrimitive];
|
|
58
|
+
if (void 0 !== e) {
|
|
59
|
+
var i = e.call(t, r || "default");
|
|
60
|
+
if ("object" != _typeof(i)) return i;
|
|
66
61
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
67
62
|
}
|
|
68
|
-
return (
|
|
63
|
+
return ("string" === r ? String : Number)(t);
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
function
|
|
72
|
-
var
|
|
73
|
-
return _typeof(
|
|
66
|
+
function toPropertyKey(t) {
|
|
67
|
+
var i = toPrimitive(t, "string");
|
|
68
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
74
69
|
}
|
|
75
70
|
|
|
76
|
-
function _defineProperty(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
writable: true
|
|
84
|
-
});
|
|
85
|
-
} else {
|
|
86
|
-
obj[key] = value;
|
|
87
|
-
}
|
|
88
|
-
return obj;
|
|
71
|
+
function _defineProperty(e, r, t) {
|
|
72
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
73
|
+
value: t,
|
|
74
|
+
enumerable: !0,
|
|
75
|
+
configurable: !0,
|
|
76
|
+
writable: !0
|
|
77
|
+
}) : e[r] = t, e;
|
|
89
78
|
}
|
|
90
79
|
|
|
91
|
-
function _arrayLikeToArray$1(
|
|
92
|
-
|
|
93
|
-
for (var
|
|
94
|
-
return
|
|
80
|
+
function _arrayLikeToArray$1(r, a) {
|
|
81
|
+
(null == a || a > r.length) && (a = r.length);
|
|
82
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
83
|
+
return n;
|
|
95
84
|
}
|
|
96
85
|
|
|
97
|
-
function _arrayWithoutHoles(
|
|
98
|
-
if (Array.isArray(
|
|
86
|
+
function _arrayWithoutHoles(r) {
|
|
87
|
+
if (Array.isArray(r)) return _arrayLikeToArray$1(r);
|
|
99
88
|
}
|
|
100
89
|
|
|
101
|
-
function _iterableToArray(
|
|
102
|
-
if (typeof Symbol
|
|
90
|
+
function _iterableToArray(r) {
|
|
91
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
103
92
|
}
|
|
104
93
|
|
|
105
|
-
function _unsupportedIterableToArray$1(
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
94
|
+
function _unsupportedIterableToArray$1(r, a) {
|
|
95
|
+
if (r) {
|
|
96
|
+
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
|
97
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
98
|
+
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$1(r, a) : void 0;
|
|
99
|
+
}
|
|
112
100
|
}
|
|
113
101
|
|
|
114
102
|
function _nonIterableSpread() {
|
|
115
103
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
104
|
}
|
|
117
105
|
|
|
118
|
-
function _toConsumableArray(
|
|
119
|
-
return _arrayWithoutHoles(
|
|
106
|
+
function _toConsumableArray(r) {
|
|
107
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
|
|
120
108
|
}
|
|
121
109
|
|
|
122
|
-
function _arrayWithHoles(
|
|
123
|
-
if (Array.isArray(
|
|
110
|
+
function _arrayWithHoles(r) {
|
|
111
|
+
if (Array.isArray(r)) return r;
|
|
124
112
|
}
|
|
125
113
|
|
|
126
114
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -155,8 +143,8 @@ function _nonIterableRest() {
|
|
|
155
143
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
144
|
}
|
|
157
145
|
|
|
158
|
-
function _slicedToArray(
|
|
159
|
-
return _arrayWithHoles(
|
|
146
|
+
function _slicedToArray(r, e) {
|
|
147
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
160
148
|
}
|
|
161
149
|
|
|
162
150
|
var getStorage = function getStorage(stateStorageProp) {
|
|
@@ -622,33 +610,26 @@ var DataTableBase = ComponentBase.extend({
|
|
|
622
610
|
}
|
|
623
611
|
});
|
|
624
612
|
|
|
625
|
-
function _objectWithoutPropertiesLoose(
|
|
626
|
-
if (
|
|
627
|
-
var
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
key = sourceKeys[i];
|
|
632
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
633
|
-
target[key] = source[key];
|
|
613
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
614
|
+
if (null == r) return {};
|
|
615
|
+
var t = {};
|
|
616
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
617
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
618
|
+
t[n] = r[n];
|
|
634
619
|
}
|
|
635
|
-
return
|
|
620
|
+
return t;
|
|
636
621
|
}
|
|
637
622
|
|
|
638
|
-
function _objectWithoutProperties(
|
|
639
|
-
if (
|
|
640
|
-
var
|
|
641
|
-
|
|
623
|
+
function _objectWithoutProperties(e, t) {
|
|
624
|
+
if (null == e) return {};
|
|
625
|
+
var o,
|
|
626
|
+
r,
|
|
627
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
642
628
|
if (Object.getOwnPropertySymbols) {
|
|
643
|
-
var
|
|
644
|
-
for (
|
|
645
|
-
key = sourceSymbolKeys[i];
|
|
646
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
647
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
648
|
-
target[key] = source[key];
|
|
649
|
-
}
|
|
629
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
630
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
650
631
|
}
|
|
651
|
-
return
|
|
632
|
+
return i;
|
|
652
633
|
}
|
|
653
634
|
|
|
654
635
|
var classes$1 = {
|
|
@@ -732,7 +713,7 @@ var Checkbox = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
732
713
|
return props.checked === props.trueValue;
|
|
733
714
|
};
|
|
734
715
|
var _onChange = function onChange(event) {
|
|
735
|
-
if (props.disabled || props.
|
|
716
|
+
if (props.disabled || props.readOnly) {
|
|
736
717
|
return;
|
|
737
718
|
}
|
|
738
719
|
if (props.onChange) {
|
|
@@ -991,7 +972,7 @@ var RadioButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
|
|
|
991
972
|
onChange(event);
|
|
992
973
|
};
|
|
993
974
|
var onChange = function onChange(event) {
|
|
994
|
-
if (props.disabled || props.
|
|
975
|
+
if (props.disabled || props.readOnly) {
|
|
995
976
|
return;
|
|
996
977
|
}
|
|
997
978
|
if (props.onChange) {
|
|
@@ -1094,7 +1075,7 @@ var RadioButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
|
|
|
1094
1075
|
onBlur: onBlur,
|
|
1095
1076
|
onChange: onChange,
|
|
1096
1077
|
disabled: props.disabled,
|
|
1097
|
-
readOnly: props.
|
|
1078
|
+
readOnly: props.readOnly,
|
|
1098
1079
|
required: props.required,
|
|
1099
1080
|
tabIndex: props.tabIndex,
|
|
1100
1081
|
className: cx('input')
|
|
@@ -1167,7 +1148,7 @@ RowRadioButton.displayName = 'RowRadioButton';
|
|
|
1167
1148
|
|
|
1168
1149
|
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1169
1150
|
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1170
|
-
var
|
|
1151
|
+
var Cell = function Cell(props) {
|
|
1171
1152
|
var mergeProps = useMergeProps();
|
|
1172
1153
|
var _React$useState = React.useState(props.editing),
|
|
1173
1154
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -1195,13 +1176,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1195
1176
|
var getColumnProp = function getColumnProp(name) {
|
|
1196
1177
|
return ColumnBase.getCProp(props.column, name);
|
|
1197
1178
|
};
|
|
1198
|
-
var getColumnProps = function getColumnProps() {
|
|
1199
|
-
return ColumnBase.getCProps(props.column);
|
|
1200
|
-
};
|
|
1201
1179
|
var getColumnPTOptions = function getColumnPTOptions(key) {
|
|
1202
|
-
var cProps = getColumnProps();
|
|
1203
1180
|
var columnMetaData = {
|
|
1204
|
-
props: cProps,
|
|
1181
|
+
props: props.cProps,
|
|
1205
1182
|
parent: props.metaData,
|
|
1206
1183
|
hostName: props.hostName,
|
|
1207
1184
|
state: {
|
|
@@ -1217,10 +1194,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1217
1194
|
};
|
|
1218
1195
|
return mergeProps(ptm("column.".concat(key), {
|
|
1219
1196
|
column: columnMetaData
|
|
1220
|
-
}), ptm("column.".concat(key), columnMetaData), ptmo(cProps, key, columnMetaData));
|
|
1197
|
+
}), ptm("column.".concat(key), columnMetaData), ptmo(props.cProps, key, columnMetaData));
|
|
1221
1198
|
};
|
|
1222
|
-
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
1223
|
-
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
1224
1199
|
var isEditable = function isEditable() {
|
|
1225
1200
|
return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
1226
1201
|
};
|
|
@@ -1245,34 +1220,22 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1245
1220
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
1246
1221
|
bindDocumentClickListener = _useEventListener2[0],
|
|
1247
1222
|
unbindDocumentClickListener = _useEventListener2[1];
|
|
1248
|
-
var isSelected = function isSelected() {
|
|
1249
|
-
return props.selection ? props.selection instanceof Array ? findIndex(props.selection) > -1 : equals(props.selection) : false;
|
|
1250
|
-
};
|
|
1251
|
-
var equalsData = function equalsData(data) {
|
|
1252
|
-
return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
1253
|
-
};
|
|
1254
|
-
var equals = function equals(selectedCell) {
|
|
1255
|
-
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
|
|
1256
|
-
};
|
|
1257
1223
|
var isOutsideClicked = function isOutsideClicked(target) {
|
|
1258
1224
|
return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
|
|
1259
1225
|
};
|
|
1260
|
-
var getVirtualScrollerOption = function getVirtualScrollerOption(option) {
|
|
1261
|
-
return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
|
|
1262
|
-
};
|
|
1263
1226
|
var getStyle = function getStyle() {
|
|
1264
1227
|
var bodyStyle = getColumnProp('bodyStyle');
|
|
1265
1228
|
var columnStyle = getColumnProp('style');
|
|
1266
|
-
return
|
|
1229
|
+
return props.frozenCol ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
|
|
1267
1230
|
};
|
|
1268
1231
|
var getCellParams = function getCellParams() {
|
|
1269
1232
|
return {
|
|
1270
|
-
value: resolveFieldData(),
|
|
1271
|
-
field: field,
|
|
1233
|
+
value: props.resolveFieldData(),
|
|
1234
|
+
field: props.field,
|
|
1272
1235
|
rowData: props.rowData,
|
|
1273
1236
|
rowIndex: props.rowIndex,
|
|
1274
1237
|
cellIndex: props.index,
|
|
1275
|
-
selected:
|
|
1238
|
+
selected: props.isCellSelected,
|
|
1276
1239
|
column: props.column,
|
|
1277
1240
|
props: props
|
|
1278
1241
|
};
|
|
@@ -1283,20 +1246,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1283
1246
|
originalEvent: event
|
|
1284
1247
|
}, params);
|
|
1285
1248
|
};
|
|
1286
|
-
var resolveFieldData = function resolveFieldData(data) {
|
|
1287
|
-
return ObjectUtils.resolveFieldData(data || props.rowData, field);
|
|
1288
|
-
};
|
|
1289
|
-
var getEditingRowData = function getEditingRowData() {
|
|
1290
|
-
return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
|
|
1291
|
-
};
|
|
1292
|
-
var getTabIndex = function getTabIndex(cellSelected) {
|
|
1293
|
-
return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && props.index === 0 ? props.tabIndex : -1 : null;
|
|
1294
|
-
};
|
|
1295
|
-
var findIndex = function findIndex(collection) {
|
|
1296
|
-
return (collection || []).findIndex(function (data) {
|
|
1297
|
-
return equals(data);
|
|
1298
|
-
});
|
|
1299
|
-
};
|
|
1300
1249
|
var closeCell = function closeCell(event) {
|
|
1301
1250
|
var params = getCellCallbackParams(event);
|
|
1302
1251
|
var onBeforeCellEditHide = getColumnProp('onBeforeCellEditHide');
|
|
@@ -1317,7 +1266,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1317
1266
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
1318
1267
|
var callbackParams = getCellCallbackParams(event);
|
|
1319
1268
|
var newRowData = _objectSpread$b({}, editingRowDataStateRef.current);
|
|
1320
|
-
var newValue = resolveFieldData(newRowData);
|
|
1269
|
+
var newValue = props.resolveFieldData(newRowData);
|
|
1321
1270
|
var params = _objectSpread$b(_objectSpread$b({}, callbackParams), {}, {
|
|
1322
1271
|
newRowData: newRowData,
|
|
1323
1272
|
newValue: newValue
|
|
@@ -1342,128 +1291,20 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1342
1291
|
}
|
|
1343
1292
|
setEditingRowDataState(newRowData);
|
|
1344
1293
|
};
|
|
1345
|
-
var _findNextSelectableCell = function findNextSelectableCell(cell) {
|
|
1346
|
-
var nextCell = cell.nextElementSibling;
|
|
1347
|
-
return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : _findNextSelectableCell(nextCell) : null;
|
|
1348
|
-
};
|
|
1349
|
-
var _findPrevSelectableCell = function findPrevSelectableCell(cell) {
|
|
1350
|
-
var prevCell = cell.previousElementSibling;
|
|
1351
|
-
return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : _findPrevSelectableCell(prevCell) : null;
|
|
1352
|
-
};
|
|
1353
|
-
var _findDownSelectableCell = function findDownSelectableCell(cell) {
|
|
1354
|
-
var downRow = cell.parentElement.nextElementSibling;
|
|
1355
|
-
var downCell = downRow ? downRow.children[props.index] : null;
|
|
1356
|
-
return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : _findDownSelectableCell(downCell) : null;
|
|
1357
|
-
};
|
|
1358
|
-
var _findUpSelectableCell = function findUpSelectableCell(cell) {
|
|
1359
|
-
var upRow = cell.parentElement.previousElementSibling;
|
|
1360
|
-
var upCell = upRow ? upRow.children[props.index] : null;
|
|
1361
|
-
return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : _findUpSelectableCell(upCell) : null;
|
|
1362
|
-
};
|
|
1363
|
-
var changeTabIndex = function changeTabIndex(currentCell, nextCell) {
|
|
1364
|
-
if (currentCell && nextCell) {
|
|
1365
|
-
currentCell.tabIndex = -1;
|
|
1366
|
-
nextCell.tabIndex = props.tabIndex;
|
|
1367
|
-
}
|
|
1368
|
-
};
|
|
1369
|
-
var focusOnElement = function focusOnElement() {
|
|
1370
|
-
clearTimeout(focusTimeout.current);
|
|
1371
|
-
focusTimeout.current = setTimeout(function () {
|
|
1372
|
-
if (editingState) {
|
|
1373
|
-
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
1374
|
-
focusableEl && focusableEl.focus();
|
|
1375
|
-
}
|
|
1376
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1377
|
-
}, 1);
|
|
1378
|
-
};
|
|
1379
|
-
var focusOnInit = function focusOnInit() {
|
|
1380
|
-
clearTimeout(initFocusTimeout.current);
|
|
1381
|
-
initFocusTimeout.current = setTimeout(function () {
|
|
1382
|
-
var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
|
|
1383
|
-
focusableEl && focusableEl.focus();
|
|
1384
|
-
}, 1);
|
|
1385
|
-
};
|
|
1386
|
-
var updateStickyPosition = function updateStickyPosition() {
|
|
1387
|
-
if (getColumnProp('frozen')) {
|
|
1388
|
-
var styleObject = _objectSpread$b({}, styleObjectState);
|
|
1389
|
-
var align = getColumnProp('alignFrozen');
|
|
1390
|
-
if (align === 'right') {
|
|
1391
|
-
var right = 0;
|
|
1392
|
-
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
1393
|
-
if (next && next.classList.contains('p-frozen-column')) {
|
|
1394
|
-
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
1395
|
-
}
|
|
1396
|
-
styleObject.right = right + 'px';
|
|
1397
|
-
} else {
|
|
1398
|
-
var left = 0;
|
|
1399
|
-
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
1400
|
-
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
1401
|
-
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
1402
|
-
}
|
|
1403
|
-
styleObject.left = left + 'px';
|
|
1404
|
-
}
|
|
1405
|
-
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
1406
|
-
!isSameStyle && setStyleObjectState(styleObject);
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
1294
|
var editorCallback = function editorCallback(val) {
|
|
1410
1295
|
var editingRowData = _objectSpread$b({}, editingRowDataState);
|
|
1411
|
-
ObjectUtils.mutateFieldData(editingRowData, field, val);
|
|
1296
|
+
ObjectUtils.mutateFieldData(editingRowData, props.field, val);
|
|
1412
1297
|
setEditingRowDataState(editingRowData);
|
|
1413
1298
|
|
|
1414
1299
|
// update editing meta for complete methods on row mode
|
|
1415
|
-
var currentData = getEditingRowData();
|
|
1300
|
+
var currentData = props.getEditingRowData();
|
|
1416
1301
|
if (currentData) {
|
|
1417
|
-
ObjectUtils.mutateFieldData(currentData, field, val);
|
|
1302
|
+
ObjectUtils.mutateFieldData(currentData, props.field, val);
|
|
1418
1303
|
}
|
|
1419
1304
|
editingRowDataStateRef.current = editingRowData;
|
|
1420
1305
|
};
|
|
1421
1306
|
var _onClick = function onClick(event) {
|
|
1422
|
-
|
|
1423
|
-
if (props.editMode !== 'row' && isEditable() && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.selected)) {
|
|
1424
|
-
selfClick.current = true;
|
|
1425
|
-
var onBeforeCellEditShow = getColumnProp('onBeforeCellEditShow');
|
|
1426
|
-
var onCellEditInit = getColumnProp('onCellEditInit');
|
|
1427
|
-
var cellEditValidatorEvent = getColumnProp('cellEditValidatorEvent');
|
|
1428
|
-
if (onBeforeCellEditShow) {
|
|
1429
|
-
// if user returns false do not show the editor
|
|
1430
|
-
if (onBeforeCellEditShow(params) === false) {
|
|
1431
|
-
return;
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
// if user prevents default stop the editor
|
|
1435
|
-
if (event && event.defaultPrevented) {
|
|
1436
|
-
return;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
// If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.
|
|
1441
|
-
setTimeout(function () {
|
|
1442
|
-
setEditingState(true);
|
|
1443
|
-
if (onCellEditInit) {
|
|
1444
|
-
if (onCellEditInit(params) === false) {
|
|
1445
|
-
return;
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
// if user prevents default stop the editor
|
|
1449
|
-
if (event && event.defaultPrevented) {
|
|
1450
|
-
return;
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
if (cellEditValidatorEvent === 'click') {
|
|
1454
|
-
bindDocumentClickListener();
|
|
1455
|
-
overlayEventListener.current = function (e) {
|
|
1456
|
-
if (!isOutsideClicked(e.target)) {
|
|
1457
|
-
selfClick.current = true;
|
|
1458
|
-
}
|
|
1459
|
-
};
|
|
1460
|
-
OverlayService.on('overlay-click', overlayEventListener.current);
|
|
1461
|
-
}
|
|
1462
|
-
}, 1);
|
|
1463
|
-
}
|
|
1464
|
-
if (props.allowCellSelection && props.onClick) {
|
|
1465
|
-
props.onClick(params);
|
|
1466
|
-
}
|
|
1307
|
+
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, selfClick, props.column, bindDocumentClickListener, overlayEventListener);
|
|
1467
1308
|
};
|
|
1468
1309
|
var _onMouseDown = function onMouseDown(event) {
|
|
1469
1310
|
var params = getCellCallbackParams(event);
|
|
@@ -1487,7 +1328,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1487
1328
|
cell = event.currentTarget;
|
|
1488
1329
|
switch (event.code) {
|
|
1489
1330
|
case 'ArrowLeft':
|
|
1490
|
-
var prevCell =
|
|
1331
|
+
var prevCell = props.findPrevSelectableCell(cell);
|
|
1491
1332
|
if (prevCell) {
|
|
1492
1333
|
changeTabIndex(cell, prevCell);
|
|
1493
1334
|
prevCell.focus();
|
|
@@ -1495,7 +1336,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1495
1336
|
event.preventDefault();
|
|
1496
1337
|
break;
|
|
1497
1338
|
case 'ArrowRight':
|
|
1498
|
-
var nextCell =
|
|
1339
|
+
var nextCell = props.findNextSelectableCell(cell);
|
|
1499
1340
|
if (nextCell) {
|
|
1500
1341
|
changeTabIndex(cell, nextCell);
|
|
1501
1342
|
nextCell.focus();
|
|
@@ -1503,7 +1344,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1503
1344
|
event.preventDefault();
|
|
1504
1345
|
break;
|
|
1505
1346
|
case 'ArrowUp':
|
|
1506
|
-
var upCell =
|
|
1347
|
+
var upCell = props.findUpSelectableCell(cell, index);
|
|
1507
1348
|
if (upCell) {
|
|
1508
1349
|
changeTabIndex(cell, upCell);
|
|
1509
1350
|
upCell.focus();
|
|
@@ -1511,7 +1352,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1511
1352
|
event.preventDefault();
|
|
1512
1353
|
break;
|
|
1513
1354
|
case 'ArrowDown':
|
|
1514
|
-
var downCell =
|
|
1355
|
+
var downCell = props.findDownSelectableCell(cell, index);
|
|
1515
1356
|
if (downCell) {
|
|
1516
1357
|
changeTabIndex(cell, downCell);
|
|
1517
1358
|
downCell.focus();
|
|
@@ -1550,13 +1391,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1550
1391
|
index: props.rowIndex
|
|
1551
1392
|
});
|
|
1552
1393
|
};
|
|
1553
|
-
var onCheckboxChange = function onCheckboxChange(event) {
|
|
1554
|
-
props.onCheckboxChange({
|
|
1555
|
-
originalEvent: event,
|
|
1556
|
-
data: props.rowData,
|
|
1557
|
-
index: props.rowIndex
|
|
1558
|
-
});
|
|
1559
|
-
};
|
|
1560
1394
|
var onRowToggle = function onRowToggle(event) {
|
|
1561
1395
|
props.onRowToggle({
|
|
1562
1396
|
originalEvent: event,
|
|
@@ -1569,8 +1403,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1569
1403
|
props.onRowEditInit({
|
|
1570
1404
|
originalEvent: event,
|
|
1571
1405
|
data: props.rowData,
|
|
1572
|
-
newData: getEditingRowData(),
|
|
1573
|
-
field: field,
|
|
1406
|
+
newData: props.getEditingRowData(),
|
|
1407
|
+
field: props.field,
|
|
1574
1408
|
index: props.rowIndex
|
|
1575
1409
|
});
|
|
1576
1410
|
};
|
|
@@ -1578,32 +1412,26 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1578
1412
|
props.onRowEditSave({
|
|
1579
1413
|
originalEvent: event,
|
|
1580
1414
|
data: props.rowData,
|
|
1581
|
-
newData: getEditingRowData(),
|
|
1582
|
-
field: field,
|
|
1415
|
+
newData: props.getEditingRowData(),
|
|
1416
|
+
field: props.field,
|
|
1583
1417
|
index: props.rowIndex
|
|
1584
1418
|
});
|
|
1585
|
-
focusOnInit();
|
|
1419
|
+
props.focusOnInit(initFocusTimeout, elementRef);
|
|
1586
1420
|
};
|
|
1587
1421
|
var onRowEditCancel = function onRowEditCancel(event) {
|
|
1588
1422
|
props.onRowEditCancel({
|
|
1589
1423
|
originalEvent: event,
|
|
1590
1424
|
data: props.rowData,
|
|
1591
|
-
newData: getEditingRowData(),
|
|
1592
|
-
field: field,
|
|
1425
|
+
newData: props.getEditingRowData(),
|
|
1426
|
+
field: props.field,
|
|
1593
1427
|
index: props.rowIndex
|
|
1594
1428
|
});
|
|
1595
|
-
focusOnInit();
|
|
1429
|
+
props.focusOnInit();
|
|
1596
1430
|
};
|
|
1597
1431
|
React.useEffect(function () {
|
|
1598
|
-
if (
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
});
|
|
1602
|
-
React.useEffect(function () {
|
|
1603
|
-
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1604
|
-
focusOnElement();
|
|
1605
|
-
}
|
|
1606
|
-
}, [props.editMode, props.editing, editingState]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
1432
|
+
if (props.frozenCol) props.updateStickyPosition(elementRef, props.frozenCol, props.alignFrozenCol, styleObjectState, setStyleObjectState);
|
|
1433
|
+
if (props.editMode === 'cell' || props.editMode === 'row') props.focusOnElement(focusTimeout, editingState, elementRef, keyHelperRef);
|
|
1434
|
+
}, [props.editMode, props.editing, editingState, props.frozenCol, props.alignFrozenCol]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
1607
1435
|
|
|
1608
1436
|
React.useEffect(function () {
|
|
1609
1437
|
if (props.editMode === 'row' && props.editing !== editingState) {
|
|
@@ -1612,7 +1440,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1612
1440
|
}, [props.editMode, props.editing, editingState]);
|
|
1613
1441
|
useUpdateEffect(function () {
|
|
1614
1442
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1615
|
-
var editingRowData = getEditingRowData();
|
|
1443
|
+
var editingRowData = props.getEditingRowData();
|
|
1616
1444
|
setEditingRowDataState(editingRowData);
|
|
1617
1445
|
editingRowDataStateRef.current = editingRowData;
|
|
1618
1446
|
}
|
|
@@ -1622,7 +1450,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1622
1450
|
var callbackParams = getCellCallbackParams();
|
|
1623
1451
|
var params = _objectSpread$b(_objectSpread$b({}, callbackParams), {}, {
|
|
1624
1452
|
editing: editingState,
|
|
1625
|
-
editingKey: editingKey
|
|
1453
|
+
editingKey: props.editingKey
|
|
1626
1454
|
});
|
|
1627
1455
|
props.onEditingMetaChange(params);
|
|
1628
1456
|
}
|
|
@@ -1635,16 +1463,16 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1635
1463
|
}
|
|
1636
1464
|
});
|
|
1637
1465
|
var createLoading = function createLoading() {
|
|
1638
|
-
var options = getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
|
|
1466
|
+
var options = props.getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
|
|
1639
1467
|
cellIndex: props.index,
|
|
1640
1468
|
cellFirst: props.index === 0,
|
|
1641
|
-
cellLast: props.index === getVirtualScrollerOption('columns').length - 1,
|
|
1469
|
+
cellLast: props.index === props.getVirtualScrollerOption('columns').length - 1,
|
|
1642
1470
|
cellEven: props.index % 2 === 0,
|
|
1643
1471
|
cellOdd: props.index % 2 !== 0,
|
|
1644
1472
|
column: props.column,
|
|
1645
|
-
field: field
|
|
1473
|
+
field: props.field
|
|
1646
1474
|
});
|
|
1647
|
-
var content = ObjectUtils.getJSXElement(getVirtualScrollerOption('loadingTemplate'), options);
|
|
1475
|
+
var content = ObjectUtils.getJSXElement(props.getVirtualScrollerOption('loadingTemplate'), options);
|
|
1648
1476
|
var bodyCellProps = mergeProps(getColumnPTOptions('bodyCell'), {
|
|
1649
1477
|
role: 'cell'
|
|
1650
1478
|
});
|
|
@@ -1653,20 +1481,20 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1653
1481
|
var createElement = function createElement() {
|
|
1654
1482
|
var content;
|
|
1655
1483
|
var editorKeyHelper;
|
|
1656
|
-
var cellSelected = props.allowCellSelection &&
|
|
1484
|
+
var cellSelected = props.allowCellSelection && props.isCellSelected;
|
|
1657
1485
|
var isRowEditor = props.editMode === 'row';
|
|
1658
|
-
var tabIndex = getTabIndex(cellSelected);
|
|
1486
|
+
var tabIndex = props.getTabIndex(cellSelected, props.index);
|
|
1659
1487
|
var selectionMode = getColumnProp('selectionMode');
|
|
1660
1488
|
var rowReorder = getColumnProp('rowReorder');
|
|
1661
1489
|
var header = getColumnProp('header');
|
|
1662
1490
|
var body = getColumnProp('body');
|
|
1663
1491
|
var editor = getColumnProp('editor');
|
|
1664
|
-
var frozen =
|
|
1492
|
+
var frozen = props.frozenCol;
|
|
1665
1493
|
var align = getColumnProp('align');
|
|
1666
|
-
var value = resolveFieldData();
|
|
1494
|
+
var value = props.resolveFieldData();
|
|
1667
1495
|
var columnBodyOptions = {
|
|
1668
1496
|
column: props.column,
|
|
1669
|
-
field: field,
|
|
1497
|
+
field: props.field,
|
|
1670
1498
|
rowIndex: props.rowIndex,
|
|
1671
1499
|
frozenRow: props.frozenRow,
|
|
1672
1500
|
props: props.tableProps
|
|
@@ -1691,12 +1519,12 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1691
1519
|
if (showSelection) {
|
|
1692
1520
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
1693
1521
|
var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
1694
|
-
label = "".concat(props.
|
|
1522
|
+
label = "".concat(props.isRowSelected ? ariaLabel$1('unselectRow') : ariaLabel$1('selectRow'), " ").concat(ariaLabelText);
|
|
1695
1523
|
}
|
|
1696
1524
|
content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
|
|
1697
1525
|
hostName: props.hostName,
|
|
1698
1526
|
column: props.column,
|
|
1699
|
-
checked: props.
|
|
1527
|
+
checked: props.isRowSelected,
|
|
1700
1528
|
disabled: !props.isSelectable({
|
|
1701
1529
|
data: props.rowData,
|
|
1702
1530
|
index: props.rowIndex
|
|
@@ -1711,12 +1539,12 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1711
1539
|
}), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
|
|
1712
1540
|
hostName: props.hostName,
|
|
1713
1541
|
column: props.column,
|
|
1714
|
-
checked: props.
|
|
1542
|
+
checked: props.isRowSelected,
|
|
1715
1543
|
disabled: !props.isSelectable({
|
|
1716
1544
|
data: props.rowData,
|
|
1717
1545
|
index: props.rowIndex
|
|
1718
1546
|
}),
|
|
1719
|
-
onChange: onCheckboxChange,
|
|
1547
|
+
onChange: props.onCheckboxChange,
|
|
1720
1548
|
tabIndex: props.tabIndex,
|
|
1721
1549
|
ariaLabel: label,
|
|
1722
1550
|
checkIcon: props.checkIcon,
|
|
@@ -1766,7 +1594,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1766
1594
|
expanderProps.element = content;
|
|
1767
1595
|
content = ObjectUtils.getJSXElement(body, props.rowData, {
|
|
1768
1596
|
column: props.column,
|
|
1769
|
-
field: field,
|
|
1597
|
+
field: props.field,
|
|
1770
1598
|
rowIndex: props.rowIndex,
|
|
1771
1599
|
frozenRow: props.frozenRow,
|
|
1772
1600
|
props: props.tableProps,
|
|
@@ -1840,7 +1668,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1840
1668
|
rowEditorProps.element = content;
|
|
1841
1669
|
content = ObjectUtils.getJSXElement(body, props.rowData, {
|
|
1842
1670
|
column: props.column,
|
|
1843
|
-
field: field,
|
|
1671
|
+
field: props.field,
|
|
1844
1672
|
rowIndex: props.rowIndex,
|
|
1845
1673
|
frozenRow: props.frozenRow,
|
|
1846
1674
|
props: props.tableProps,
|
|
@@ -1850,7 +1678,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1850
1678
|
} else if (body && (!editingState || !editor)) {
|
|
1851
1679
|
content = body ? ObjectUtils.getJSXElement(body, props.rowData, {
|
|
1852
1680
|
column: props.column,
|
|
1853
|
-
field: field,
|
|
1681
|
+
field: props.field,
|
|
1854
1682
|
rowIndex: props.rowIndex,
|
|
1855
1683
|
frozenRow: props.frozenRow,
|
|
1856
1684
|
props: props.tableProps
|
|
@@ -1858,9 +1686,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1858
1686
|
} else if (editor && editingState) {
|
|
1859
1687
|
content = ObjectUtils.getJSXElement(editor, {
|
|
1860
1688
|
rowData: editingRowDataState,
|
|
1861
|
-
value: resolveFieldData(editingRowDataState),
|
|
1689
|
+
value: props.resolveFieldData(editingRowDataState),
|
|
1862
1690
|
column: props.column,
|
|
1863
|
-
field: field,
|
|
1691
|
+
field: props.field,
|
|
1864
1692
|
rowIndex: props.rowIndex,
|
|
1865
1693
|
frozenRow: props.frozenRow,
|
|
1866
1694
|
props: props.tableProps,
|
|
@@ -1928,7 +1756,22 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
1928
1756
|
ref: elementRef
|
|
1929
1757
|
}, bodyCellProps), editorKeyHelper, title, content);
|
|
1930
1758
|
};
|
|
1931
|
-
return getVirtualScrollerOption('loading') ? createLoading() : createElement();
|
|
1759
|
+
return props.getVirtualScrollerOption('loading') ? createLoading() : createElement();
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
// RadioCheckCell is used for the Radio and Checkbox selection and has the isRowSelected dependency
|
|
1763
|
+
var RadioCheckCell = /*#__PURE__*/React.memo(function (props) {
|
|
1764
|
+
return /*#__PURE__*/React.createElement(Cell, props);
|
|
1765
|
+
}, function (prevProps, nextProps) {
|
|
1766
|
+
var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
|
|
1767
|
+
return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
1768
|
+
});
|
|
1769
|
+
RadioCheckCell.displayName = 'RadioCheckCell';
|
|
1770
|
+
var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
1771
|
+
return /*#__PURE__*/React.createElement(Cell, props);
|
|
1772
|
+
}, function (prevProps, nextProps) {
|
|
1773
|
+
var keysToCompare = ['field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData', 'frozenCol', 'alignFrozenCol'];
|
|
1774
|
+
return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
1932
1775
|
});
|
|
1933
1776
|
BodyCell.displayName = 'BodyCell';
|
|
1934
1777
|
|
|
@@ -1944,6 +1787,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
1944
1787
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
1945
1788
|
ptm = _props$ptCallbacks.ptm,
|
|
1946
1789
|
cx = _props$ptCallbacks.cx;
|
|
1790
|
+
var isRowSelected = !props.allowCellSelection && props.selected || props.contextMenuSelected;
|
|
1947
1791
|
var getBodyRowPTOptions = function getBodyRowPTOptions(key) {
|
|
1948
1792
|
return ptm(key, {
|
|
1949
1793
|
parent: props.metaData,
|
|
@@ -1957,7 +1801,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
1957
1801
|
data: props.rowData,
|
|
1958
1802
|
index: props.rowIndex
|
|
1959
1803
|
}),
|
|
1960
|
-
selected:
|
|
1804
|
+
selected: isRowSelected,
|
|
1961
1805
|
stripedRows: props.metaData.props.stripedRows
|
|
1962
1806
|
}
|
|
1963
1807
|
});
|
|
@@ -1986,10 +1830,10 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
1986
1830
|
return equals(rowData, data);
|
|
1987
1831
|
});
|
|
1988
1832
|
};
|
|
1989
|
-
var changeTabIndex = function changeTabIndex(
|
|
1990
|
-
if (
|
|
1991
|
-
|
|
1992
|
-
|
|
1833
|
+
var changeTabIndex = function changeTabIndex(currentElement, nextElement) {
|
|
1834
|
+
if (currentElement && nextElement) {
|
|
1835
|
+
currentElement.tabIndex = -1;
|
|
1836
|
+
nextElement.tabIndex = props.tabIndex;
|
|
1993
1837
|
}
|
|
1994
1838
|
};
|
|
1995
1839
|
var findFirstSelectableRow = function findFirstSelectableRow(row) {
|
|
@@ -2316,32 +2160,176 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2316
2160
|
onEditChange(e, false);
|
|
2317
2161
|
event.preventDefault();
|
|
2318
2162
|
};
|
|
2163
|
+
var equalsDataCell = function equalsDataCell(data) {
|
|
2164
|
+
return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
2165
|
+
};
|
|
2166
|
+
var equalsCell = function equalsCell(selectedCell, field, colIndex) {
|
|
2167
|
+
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsDataCell(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === colIndex);
|
|
2168
|
+
};
|
|
2169
|
+
var findIndexCell = function findIndexCell(collection, field, colIndex) {
|
|
2170
|
+
return (collection || []).findIndex(function (data) {
|
|
2171
|
+
return equalsCell(data, field, colIndex);
|
|
2172
|
+
});
|
|
2173
|
+
};
|
|
2174
|
+
var isCellSelected = function isCellSelected(selection, field, colIndex) {
|
|
2175
|
+
return selection ? selection instanceof Array ? findIndexCell(selection, field, colIndex) > -1 : equalsCell(selection, field, colIndex) : false;
|
|
2176
|
+
};
|
|
2177
|
+
var onCheckboxChange = function onCheckboxChange(event) {
|
|
2178
|
+
props.onCheckboxChange({
|
|
2179
|
+
originalEvent: event,
|
|
2180
|
+
data: props.rowData,
|
|
2181
|
+
index: props.rowIndex
|
|
2182
|
+
});
|
|
2183
|
+
};
|
|
2184
|
+
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
2185
|
+
var getVirtualScrollerOption = React.useCallback(function (option) {
|
|
2186
|
+
return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
|
|
2187
|
+
}, [props.virtualScrollerOptions]);
|
|
2188
|
+
var getEditingRowData = function getEditingRowData() {
|
|
2189
|
+
return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
|
|
2190
|
+
};
|
|
2191
|
+
var getTabIndexCell = React.useCallback(function (cellSelected, cellIndex) {
|
|
2192
|
+
return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && cellIndex === 0 ? props.tabIndex : -1 : null;
|
|
2193
|
+
}, [props.allowCellSelection, props.rowIndex, props.tabIndex]);
|
|
2194
|
+
var findNextSelectableCell = React.useCallback(function (cell) {
|
|
2195
|
+
var nextCell = cell.nextElementSibling;
|
|
2196
|
+
return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : findNextSelectableCell(nextCell) : null;
|
|
2197
|
+
}, []);
|
|
2198
|
+
var findPrevSelectableCell = React.useCallback(function (cell) {
|
|
2199
|
+
var prevCell = cell.previousElementSibling;
|
|
2200
|
+
return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : findPrevSelectableCell(prevCell) : null;
|
|
2201
|
+
}, []);
|
|
2202
|
+
var findDownSelectableCell = React.useCallback(function (cell, cellIndex) {
|
|
2203
|
+
var downRow = cell.parentElement.nextElementSibling;
|
|
2204
|
+
var downCell = downRow ? downRow.children[cellIndex] : null;
|
|
2205
|
+
return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : findDownSelectableCell(downCell) : null;
|
|
2206
|
+
}, []);
|
|
2207
|
+
var findUpSelectableCell = React.useCallback(function (cell, cellIndex) {
|
|
2208
|
+
var upRow = cell.parentElement.previousElementSibling;
|
|
2209
|
+
var upCell = upRow ? upRow.children[cellIndex] : null;
|
|
2210
|
+
return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : findUpSelectableCell(upCell) : null;
|
|
2211
|
+
}, []);
|
|
2212
|
+
var focusOnElement = React.useCallback(function (focusTimeoutRef, editingState, elementRef, keyHelperRef) {
|
|
2213
|
+
clearTimeout(focusTimeoutRef.current);
|
|
2214
|
+
focusTimeoutRef.current = setTimeout(function () {
|
|
2215
|
+
if (editingState) {
|
|
2216
|
+
var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
2217
|
+
focusableEl && focusableEl.focus();
|
|
2218
|
+
}
|
|
2219
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
2220
|
+
}, 1);
|
|
2221
|
+
}, [props.editMode]);
|
|
2222
|
+
var focusOnInit = React.useCallback(function (initFocusTimeoutRef, elementRef) {
|
|
2223
|
+
clearTimeout(initFocusTimeoutRef.current);
|
|
2224
|
+
initFocusTimeoutRef.current = setTimeout(function () {
|
|
2225
|
+
var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
|
|
2226
|
+
focusableEl && focusableEl.focus();
|
|
2227
|
+
}, 1);
|
|
2228
|
+
}, [props.editMode]);
|
|
2229
|
+
var updateStickyPosition = React.useCallback(function (elementRef, frozen, alignFrozen, styleObjectState, setStyleObjectState) {
|
|
2230
|
+
if (frozen) {
|
|
2231
|
+
var styleObject = _objectSpread$a({}, styleObjectState);
|
|
2232
|
+
if (alignFrozen === 'right') {
|
|
2233
|
+
var right = 0;
|
|
2234
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
2235
|
+
if (next && next.classList.contains('p-frozen-column')) {
|
|
2236
|
+
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
2237
|
+
}
|
|
2238
|
+
styleObject.right = right + 'px';
|
|
2239
|
+
} else {
|
|
2240
|
+
var left = 0;
|
|
2241
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
2242
|
+
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
2243
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
2244
|
+
}
|
|
2245
|
+
styleObject.left = left + 'px';
|
|
2246
|
+
}
|
|
2247
|
+
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
2248
|
+
!isSameStyle && setStyleObjectState(styleObject);
|
|
2249
|
+
}
|
|
2250
|
+
}, []);
|
|
2251
|
+
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, selfClick, column, bindDocumentClickListener, overlayEventListener) {
|
|
2252
|
+
if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
|
|
2253
|
+
selfClick.current = true;
|
|
2254
|
+
var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
|
|
2255
|
+
var onCellEditInit = getColumnProp(column, 'onCellEditInit');
|
|
2256
|
+
var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
|
|
2257
|
+
if (onBeforeCellEditShow) {
|
|
2258
|
+
// if user returns false do not show the editor
|
|
2259
|
+
if (onBeforeCellEditShow(params) === false) {
|
|
2260
|
+
return;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
// if user prevents default stop the editor
|
|
2264
|
+
if (event && event.defaultPrevented) {
|
|
2265
|
+
return;
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
// If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.
|
|
2270
|
+
setTimeout(function () {
|
|
2271
|
+
setEditingState(true);
|
|
2272
|
+
if (onCellEditInit) {
|
|
2273
|
+
if (onCellEditInit(params) === false) {
|
|
2274
|
+
return;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
// if user prevents default stop the editor
|
|
2278
|
+
if (event && event.defaultPrevented) {
|
|
2279
|
+
return;
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
if (cellEditValidatorEvent === 'click') {
|
|
2283
|
+
bindDocumentClickListener();
|
|
2284
|
+
overlayEventListener.current = function (e) {
|
|
2285
|
+
if (!isOutsideClicked(e.target)) {
|
|
2286
|
+
selfClick.current = true;
|
|
2287
|
+
}
|
|
2288
|
+
};
|
|
2289
|
+
OverlayService.on('overlay-click', overlayEventListener.current);
|
|
2290
|
+
}
|
|
2291
|
+
}, 1);
|
|
2292
|
+
}
|
|
2293
|
+
if (props.allowCellSelection && props.onCellClick) {
|
|
2294
|
+
props.onCellClick(params);
|
|
2295
|
+
}
|
|
2296
|
+
};
|
|
2319
2297
|
var createContent = function createContent() {
|
|
2320
2298
|
return props.columns.map(function (col, i) {
|
|
2321
2299
|
if (shouldRenderBodyCell(props.value, col, props.index)) {
|
|
2322
2300
|
var key = "".concat(props.rowIndex, "_").concat(getColumnProp(col, 'columnKey') || getColumnProp(col, 'field'), "_").concat(i);
|
|
2323
2301
|
var rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;
|
|
2324
|
-
|
|
2302
|
+
var field = getColumnProp(col, 'field') || "field_".concat(i);
|
|
2303
|
+
var resolveFieldData = function resolveFieldData(data) {
|
|
2304
|
+
return ObjectUtils.resolveFieldData(data || props.rowData, field);
|
|
2305
|
+
};
|
|
2306
|
+
var selectionMode = getColumnProp(col, 'selectionMode');
|
|
2307
|
+
var cellProps = mergeProps({
|
|
2325
2308
|
hostName: props.hostName,
|
|
2326
|
-
key: key,
|
|
2327
2309
|
allowCellSelection: props.allowCellSelection,
|
|
2328
2310
|
cellClassName: props.cellClassName,
|
|
2329
2311
|
checkIcon: props.checkIcon,
|
|
2330
2312
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
2313
|
+
field: field,
|
|
2314
|
+
resolveFieldData: resolveFieldData,
|
|
2331
2315
|
column: col,
|
|
2332
|
-
|
|
2316
|
+
cProps: props.colsProps[i],
|
|
2333
2317
|
dataKey: props.dataKey,
|
|
2334
2318
|
editMode: props.editMode,
|
|
2335
2319
|
editing: editing,
|
|
2336
2320
|
editingMeta: props.editingMeta,
|
|
2321
|
+
onEditingMetaChange: props.onEditingMetaChange,
|
|
2322
|
+
editingKey: editingKey,
|
|
2323
|
+
getEditingRowData: getEditingRowData,
|
|
2337
2324
|
expanded: props.expanded,
|
|
2338
2325
|
expandedRowIcon: props.expandedRowIcon,
|
|
2339
2326
|
frozenRow: props.frozenRow,
|
|
2327
|
+
frozenCol: getColumnProp(col, 'frozen'),
|
|
2328
|
+
alignFrozenCol: getColumnProp(col, 'alignFrozen'),
|
|
2340
2329
|
index: i,
|
|
2341
2330
|
isSelectable: props.isSelectable,
|
|
2342
|
-
onCheckboxChange:
|
|
2343
|
-
onClick:
|
|
2344
|
-
onEditingMetaChange: props.onEditingMetaChange,
|
|
2331
|
+
onCheckboxChange: onCheckboxChange,
|
|
2332
|
+
onClick: onCellClick,
|
|
2345
2333
|
onMouseDown: props.onCellMouseDown,
|
|
2346
2334
|
onMouseUp: props.onCellMouseUp,
|
|
2347
2335
|
onRadioChange: props.onRadioChange,
|
|
@@ -2357,20 +2345,31 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
2357
2345
|
rowIndex: props.rowIndex,
|
|
2358
2346
|
rowSpan: rowSpan,
|
|
2359
2347
|
selectOnEdit: props.selectOnEdit,
|
|
2360
|
-
|
|
2361
|
-
|
|
2348
|
+
isRowSelected: isRowSelected,
|
|
2349
|
+
isCellSelected: isCellSelected(props.selection, field, i),
|
|
2362
2350
|
selectionAriaLabel: props.tableProps.selectionAriaLabel,
|
|
2363
2351
|
showRowReorderElement: props.showRowReorderElement,
|
|
2364
2352
|
showSelectionElement: props.showSelectionElement,
|
|
2365
2353
|
tabIndex: props.tabIndex,
|
|
2354
|
+
getTabIndex: getTabIndexCell,
|
|
2366
2355
|
tableProps: props.tableProps,
|
|
2367
2356
|
tableSelector: props.tableSelector,
|
|
2368
2357
|
value: props.value,
|
|
2369
|
-
|
|
2358
|
+
getVirtualScrollerOption: getVirtualScrollerOption,
|
|
2370
2359
|
ptCallbacks: props.ptCallbacks,
|
|
2371
2360
|
metaData: props.metaData,
|
|
2372
|
-
unstyled: props.unstyled
|
|
2361
|
+
unstyled: props.unstyled,
|
|
2362
|
+
findNextSelectableCell: findNextSelectableCell,
|
|
2363
|
+
findPrevSelectableCell: findPrevSelectableCell,
|
|
2364
|
+
findDownSelectableCell: findDownSelectableCell,
|
|
2365
|
+
findUpSelectableCell: findUpSelectableCell,
|
|
2366
|
+
focusOnElement: focusOnElement,
|
|
2367
|
+
focusOnInit: focusOnInit,
|
|
2368
|
+
updateStickyPosition: updateStickyPosition
|
|
2373
2369
|
});
|
|
2370
|
+
return /*#__PURE__*/React.createElement(Fragment, {
|
|
2371
|
+
key: key
|
|
2372
|
+
}, selectionMode ? /*#__PURE__*/React.createElement(RadioCheckCell, cellProps) : /*#__PURE__*/React.createElement(BodyCell, cellProps));
|
|
2374
2373
|
}
|
|
2375
2374
|
return null;
|
|
2376
2375
|
});
|
|
@@ -2520,8 +2519,11 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2520
2519
|
var getColumnProps = function getColumnProps(column) {
|
|
2521
2520
|
return ColumnBase.getCProps(column);
|
|
2522
2521
|
};
|
|
2522
|
+
var cProps = getColumnProps(props.column);
|
|
2523
|
+
var colsProps = props.columns ? props.columns.map(function (col) {
|
|
2524
|
+
return getColumnProps(col);
|
|
2525
|
+
}) : [];
|
|
2523
2526
|
var getColumnPTOptions = function getColumnPTOptions(key) {
|
|
2524
|
-
var cProps = getColumnProps(props.column);
|
|
2525
2527
|
var columnMetaData = {
|
|
2526
2528
|
props: cProps,
|
|
2527
2529
|
parent: props.metaData,
|
|
@@ -2646,8 +2648,12 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2646
2648
|
var allowSelection = function allowSelection(event) {
|
|
2647
2649
|
return !DomHandler.isClickable(event.originalEvent.target);
|
|
2648
2650
|
};
|
|
2651
|
+
var metaKeySelectionRef = React.useRef(props.metaKeySelection);
|
|
2652
|
+
React.useEffect(function () {
|
|
2653
|
+
metaKeySelectionRef.current = props.metaKeySelection;
|
|
2654
|
+
}, [props.metaKeySelection]);
|
|
2649
2655
|
var allowMetaKeySelection = function allowMetaKeySelection(event) {
|
|
2650
|
-
return !rowTouched.current && (!
|
|
2656
|
+
return !rowTouched.current && (!metaKeySelectionRef.current || metaKeySelectionRef.current && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
|
|
2651
2657
|
};
|
|
2652
2658
|
var allowRangeSelection = function allowRangeSelection(event) {
|
|
2653
2659
|
return isMultipleSelection() && event.originalEvent.shiftKey && anchorRowIndex.current !== null;
|
|
@@ -2668,6 +2674,9 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2668
2674
|
options = options || props.virtualScrollerOptions;
|
|
2669
2675
|
return options ? options[option] : null;
|
|
2670
2676
|
};
|
|
2677
|
+
var getProcessedDataIndex = function getProcessedDataIndex(rowIndex) {
|
|
2678
|
+
return props.lazy ? rowIndex - props.first : rowIndex;
|
|
2679
|
+
};
|
|
2671
2680
|
var findIndex = function findIndex(collection, rowData) {
|
|
2672
2681
|
return (collection || []).findIndex(function (data) {
|
|
2673
2682
|
return equals(rowData, data);
|
|
@@ -2717,6 +2726,10 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2717
2726
|
});
|
|
2718
2727
|
}
|
|
2719
2728
|
};
|
|
2729
|
+
var selectionRef = React.useRef(props.selection);
|
|
2730
|
+
React.useEffect(function () {
|
|
2731
|
+
selectionRef.current = props.selection;
|
|
2732
|
+
}, [props.selection]);
|
|
2720
2733
|
var onSingleSelection = function onSingleSelection(_ref) {
|
|
2721
2734
|
var originalEvent = _ref.originalEvent,
|
|
2722
2735
|
data = _ref.data,
|
|
@@ -2730,10 +2743,11 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2730
2743
|
return;
|
|
2731
2744
|
}
|
|
2732
2745
|
var selected = isSelected(data);
|
|
2733
|
-
var
|
|
2746
|
+
var currentSelection = selectionRef.current || [];
|
|
2747
|
+
var newSelection = currentSelection;
|
|
2734
2748
|
if (selected) {
|
|
2735
2749
|
if (toggleable) {
|
|
2736
|
-
|
|
2750
|
+
newSelection = null;
|
|
2737
2751
|
onUnselect({
|
|
2738
2752
|
originalEvent: originalEvent,
|
|
2739
2753
|
data: data,
|
|
@@ -2741,7 +2755,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2741
2755
|
});
|
|
2742
2756
|
}
|
|
2743
2757
|
} else {
|
|
2744
|
-
|
|
2758
|
+
newSelection = data;
|
|
2745
2759
|
onSelect({
|
|
2746
2760
|
originalEvent: originalEvent,
|
|
2747
2761
|
data: data,
|
|
@@ -2749,10 +2763,10 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2749
2763
|
});
|
|
2750
2764
|
}
|
|
2751
2765
|
focusOnElement(originalEvent, true);
|
|
2752
|
-
if (props.onSelectionChange &&
|
|
2766
|
+
if (props.onSelectionChange && newSelection !== currentSelection) {
|
|
2753
2767
|
props.onSelectionChange({
|
|
2754
2768
|
originalEvent: originalEvent,
|
|
2755
|
-
value:
|
|
2769
|
+
value: newSelection,
|
|
2756
2770
|
type: type
|
|
2757
2771
|
});
|
|
2758
2772
|
}
|
|
@@ -2770,11 +2784,12 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2770
2784
|
return;
|
|
2771
2785
|
}
|
|
2772
2786
|
var selected = isSelected(data);
|
|
2773
|
-
var
|
|
2787
|
+
var currentSelection = selectionRef.current || [];
|
|
2788
|
+
var newSelection = currentSelection;
|
|
2774
2789
|
if (selected) {
|
|
2775
2790
|
if (toggleable) {
|
|
2776
|
-
var selectionIndex = findIndex(
|
|
2777
|
-
|
|
2791
|
+
var selectionIndex = findIndex(currentSelection, data);
|
|
2792
|
+
newSelection = currentSelection.filter(function (val, i) {
|
|
2778
2793
|
return i !== selectionIndex;
|
|
2779
2794
|
});
|
|
2780
2795
|
onUnselect({
|
|
@@ -2782,15 +2797,15 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2782
2797
|
data: data,
|
|
2783
2798
|
type: type
|
|
2784
2799
|
});
|
|
2785
|
-
} else if (
|
|
2786
|
-
|
|
2800
|
+
} else if (currentSelection.length) {
|
|
2801
|
+
currentSelection.forEach(function (d) {
|
|
2787
2802
|
return onUnselect({
|
|
2788
2803
|
originalEvent: originalEvent,
|
|
2789
2804
|
data: d,
|
|
2790
2805
|
type: type
|
|
2791
2806
|
});
|
|
2792
2807
|
});
|
|
2793
|
-
|
|
2808
|
+
newSelection = [data];
|
|
2794
2809
|
onSelect({
|
|
2795
2810
|
originalEvent: originalEvent,
|
|
2796
2811
|
data: data,
|
|
@@ -2798,18 +2813,18 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2798
2813
|
});
|
|
2799
2814
|
}
|
|
2800
2815
|
} else {
|
|
2801
|
-
|
|
2802
|
-
|
|
2816
|
+
newSelection = ObjectUtils.isObject(currentSelection) ? [currentSelection] : currentSelection;
|
|
2817
|
+
newSelection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(newSelection), [data]) : [data];
|
|
2803
2818
|
onSelect({
|
|
2804
2819
|
originalEvent: originalEvent,
|
|
2805
2820
|
data: data,
|
|
2806
2821
|
type: type
|
|
2807
2822
|
});
|
|
2808
2823
|
}
|
|
2809
|
-
if (props.onSelectionChange &&
|
|
2824
|
+
if (props.onSelectionChange && newSelection !== currentSelection) {
|
|
2810
2825
|
props.onSelectionChange({
|
|
2811
2826
|
originalEvent: originalEvent,
|
|
2812
|
-
value:
|
|
2827
|
+
value: newSelection,
|
|
2813
2828
|
type: type
|
|
2814
2829
|
});
|
|
2815
2830
|
}
|
|
@@ -2832,14 +2847,16 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2832
2847
|
var rangeStart;
|
|
2833
2848
|
var rangeEnd;
|
|
2834
2849
|
var isAllowCellSelection = allowCellSelection();
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2850
|
+
var rangeRowIndexInProcessedData = getProcessedDataIndex(rangeRowIndex.current);
|
|
2851
|
+
var anchorRowIndexInProcessedData = getProcessedDataIndex(anchorRowIndex.current);
|
|
2852
|
+
if (rangeRowIndexInProcessedData > anchorRowIndexInProcessedData) {
|
|
2853
|
+
rangeStart = anchorRowIndexInProcessedData;
|
|
2854
|
+
rangeEnd = rangeRowIndexInProcessedData;
|
|
2855
|
+
} else if (rangeRowIndexInProcessedData < anchorRowIndexInProcessedData) {
|
|
2856
|
+
rangeStart = rangeRowIndexInProcessedData;
|
|
2857
|
+
rangeEnd = anchorRowIndexInProcessedData;
|
|
2841
2858
|
} else {
|
|
2842
|
-
rangeStart = rangeEnd =
|
|
2859
|
+
rangeStart = rangeEnd = rangeRowIndexInProcessedData;
|
|
2843
2860
|
}
|
|
2844
2861
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
2845
2862
|
};
|
|
@@ -2880,7 +2897,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
2880
2897
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
2881
2898
|
var rowData = value[i];
|
|
2882
2899
|
var columns = props.columns;
|
|
2883
|
-
var rowIndex = props.
|
|
2900
|
+
var rowIndex = props.lazy ? i + props.first : i;
|
|
2884
2901
|
for (var j = cellRangeStart; j <= cellRangeEnd; j++) {
|
|
2885
2902
|
var field = getColumnProp(columns[j], 'field');
|
|
2886
2903
|
var _value = ObjectUtils.resolveFieldData(rowData, field);
|
|
@@ -3345,7 +3362,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3345
3362
|
var emptyMessageProps = mergeProps({
|
|
3346
3363
|
className: cx('emptyMessage'),
|
|
3347
3364
|
role: 'row'
|
|
3348
|
-
},
|
|
3365
|
+
}, ptm('emptyMessage'));
|
|
3349
3366
|
var bodyCellProps = mergeProps({
|
|
3350
3367
|
colSpan: colSpan,
|
|
3351
3368
|
role: 'cell'
|
|
@@ -3355,7 +3372,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3355
3372
|
return null;
|
|
3356
3373
|
};
|
|
3357
3374
|
var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
|
|
3358
|
-
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex
|
|
3375
|
+
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, getProcessedDataIndex(rowIndex))) {
|
|
3359
3376
|
var style = rowGroupHeaderStyle();
|
|
3360
3377
|
var toggler = props.expandableRowGroups && /*#__PURE__*/React.createElement(RowTogglerButton, {
|
|
3361
3378
|
hostName: props.hostName,
|
|
@@ -3382,14 +3399,14 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3382
3399
|
}, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
|
|
3383
3400
|
var rowGroupHeaderNameProps = mergeProps({
|
|
3384
3401
|
className: cx('rowGroupHeaderName')
|
|
3385
|
-
},
|
|
3402
|
+
}, ptm('rowGroupHeaderName'));
|
|
3386
3403
|
_content2 = /*#__PURE__*/React.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React.createElement("span", rowGroupHeaderNameProps, _content2));
|
|
3387
3404
|
}
|
|
3388
3405
|
var rowGroupHeaderProps = mergeProps({
|
|
3389
3406
|
className: cx('rowGroupHeader'),
|
|
3390
3407
|
style: style,
|
|
3391
3408
|
role: 'row'
|
|
3392
|
-
},
|
|
3409
|
+
}, ptm('rowGroupHeader'));
|
|
3393
3410
|
return /*#__PURE__*/React.createElement("tr", rowGroupHeaderProps, _content2);
|
|
3394
3411
|
}
|
|
3395
3412
|
return null;
|
|
@@ -3409,6 +3426,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3409
3426
|
checkIcon: props.checkIcon,
|
|
3410
3427
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
3411
3428
|
columns: props.columns,
|
|
3429
|
+
colsProps: colsProps,
|
|
3412
3430
|
compareSelectionBy: props.compareSelectionBy,
|
|
3413
3431
|
contextMenuSelected: contextMenuSelected,
|
|
3414
3432
|
dataKey: props.dataKey,
|
|
@@ -3497,7 +3515,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3497
3515
|
id: id,
|
|
3498
3516
|
className: cx('rowExpansion'),
|
|
3499
3517
|
role: 'row'
|
|
3500
|
-
},
|
|
3518
|
+
}, ptm('rowExpansion'));
|
|
3501
3519
|
return /*#__PURE__*/React.createElement("tr", rowExpansionProps, _content3);
|
|
3502
3520
|
}
|
|
3503
3521
|
return null;
|
|
@@ -3512,7 +3530,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
|
|
|
3512
3530
|
var rowGroupFooterProps = mergeProps({
|
|
3513
3531
|
className: cx('rowGroupFooter'),
|
|
3514
3532
|
role: 'row'
|
|
3515
|
-
},
|
|
3533
|
+
}, ptm('rowGroupFooter'));
|
|
3516
3534
|
return /*#__PURE__*/React.createElement("tr", rowGroupFooterProps, _content4);
|
|
3517
3535
|
}
|
|
3518
3536
|
return null;
|
|
@@ -3772,28 +3790,20 @@ var TableFooter = /*#__PURE__*/React.memo(function (props) {
|
|
|
3772
3790
|
});
|
|
3773
3791
|
TableFooter.displayName = 'TableFooter';
|
|
3774
3792
|
|
|
3775
|
-
function _defineProperties(
|
|
3776
|
-
for (var
|
|
3777
|
-
var
|
|
3778
|
-
|
|
3779
|
-
descriptor.configurable = true;
|
|
3780
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
3781
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
3793
|
+
function _defineProperties(e, r) {
|
|
3794
|
+
for (var t = 0; t < r.length; t++) {
|
|
3795
|
+
var o = r[t];
|
|
3796
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
3782
3797
|
}
|
|
3783
3798
|
}
|
|
3784
|
-
function _createClass(
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
writable: false
|
|
3789
|
-
});
|
|
3790
|
-
return Constructor;
|
|
3799
|
+
function _createClass(e, r, t) {
|
|
3800
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
3801
|
+
writable: !1
|
|
3802
|
+
}), e;
|
|
3791
3803
|
}
|
|
3792
3804
|
|
|
3793
|
-
function _classCallCheck(
|
|
3794
|
-
if (!(
|
|
3795
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3796
|
-
}
|
|
3805
|
+
function _classCallCheck(a, n) {
|
|
3806
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3797
3807
|
}
|
|
3798
3808
|
|
|
3799
3809
|
var FilterMatchMode = Object.freeze({
|
|
@@ -4200,9 +4210,17 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
4200
4210
|
var type = _ref.type,
|
|
4201
4211
|
valid = _ref.valid;
|
|
4202
4212
|
if (valid) {
|
|
4203
|
-
type === 'outside'
|
|
4213
|
+
if (type === 'outside') {
|
|
4214
|
+
if (!selfClick.current && !isTargetClicked(event.target)) {
|
|
4215
|
+
hide();
|
|
4216
|
+
}
|
|
4217
|
+
selfClick.current = false;
|
|
4218
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
4219
|
+
hide();
|
|
4220
|
+
} else if (!DomHandler.isDocument(event.target)) {
|
|
4221
|
+
DomHandler.alignOverlay(overlayRef.current, iconRef.current, context && context.appendTo || PrimeReact$1.appendTo, false);
|
|
4222
|
+
}
|
|
4204
4223
|
}
|
|
4205
|
-
selfClick.current = false;
|
|
4206
4224
|
},
|
|
4207
4225
|
when: overlayVisibleState
|
|
4208
4226
|
}),
|
|
@@ -5692,9 +5710,9 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
5692
5710
|
});
|
|
5693
5711
|
TableHeader.displayName = 'TableHeader';
|
|
5694
5712
|
|
|
5695
|
-
function _createForOfIteratorHelper(
|
|
5696
|
-
function _unsupportedIterableToArray(
|
|
5697
|
-
function _arrayLikeToArray(
|
|
5713
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
5714
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } }
|
|
5715
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5698
5716
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5699
5717
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5700
5718
|
var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
@@ -5737,14 +5755,18 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5737
5755
|
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
5738
5756
|
editingMetaState = _React$useState18[0],
|
|
5739
5757
|
setEditingMetaState = _React$useState18[1];
|
|
5740
|
-
var _React$useState19 = React.useState(
|
|
5758
|
+
var _React$useState19 = React.useState({}),
|
|
5741
5759
|
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
var _React$useState21 = React.useState(
|
|
5760
|
+
frozenEditingMetaState = _React$useState20[0],
|
|
5761
|
+
setFrozenEditingMetaState = _React$useState20[1];
|
|
5762
|
+
var _React$useState21 = React.useState(props.rows),
|
|
5745
5763
|
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
5746
|
-
|
|
5747
|
-
|
|
5764
|
+
d_rowsState = _React$useState22[0],
|
|
5765
|
+
setD_rowsState = _React$useState22[1];
|
|
5766
|
+
var _React$useState23 = React.useState({}),
|
|
5767
|
+
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
5768
|
+
d_filtersState = _React$useState24[0],
|
|
5769
|
+
setD_filtersState = _React$useState24[1];
|
|
5748
5770
|
var metaData = {
|
|
5749
5771
|
props: props,
|
|
5750
5772
|
state: {
|
|
@@ -5757,6 +5779,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5757
5779
|
columnOrder: columnOrderState,
|
|
5758
5780
|
groupRowsSortMeta: groupRowsSortMetaState,
|
|
5759
5781
|
editingMeta: editingMetaState,
|
|
5782
|
+
frozenEditingMeta: frozenEditingMetaState,
|
|
5760
5783
|
d_rows: d_rowsState,
|
|
5761
5784
|
d_filters: d_filtersState
|
|
5762
5785
|
},
|
|
@@ -6161,6 +6184,32 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6161
6184
|
setEditingMetaState({});
|
|
6162
6185
|
}
|
|
6163
6186
|
};
|
|
6187
|
+
var onFrozenEditingMetaChange = function onFrozenEditingMetaChange(e) {
|
|
6188
|
+
var rowData = e.rowData,
|
|
6189
|
+
field = e.field,
|
|
6190
|
+
editingKey = e.editingKey,
|
|
6191
|
+
editing = e.editing;
|
|
6192
|
+
var frozenEditingMeta = _objectSpread({}, frozenEditingMetaState);
|
|
6193
|
+
var meta = frozenEditingMeta[editingKey];
|
|
6194
|
+
if (editing) {
|
|
6195
|
+
!meta && (meta = frozenEditingMeta[editingKey] = {
|
|
6196
|
+
data: _objectSpread({}, rowData),
|
|
6197
|
+
fields: []
|
|
6198
|
+
});
|
|
6199
|
+
meta.fields.push(field);
|
|
6200
|
+
} else if (meta) {
|
|
6201
|
+
var fields = meta.fields.filter(function (f) {
|
|
6202
|
+
return f !== field;
|
|
6203
|
+
});
|
|
6204
|
+
!fields.length ? delete frozenEditingMeta[editingKey] : meta.fields = fields;
|
|
6205
|
+
}
|
|
6206
|
+
setFrozenEditingMetaState(frozenEditingMeta);
|
|
6207
|
+
};
|
|
6208
|
+
var clearFrozenEditingMetaData = function clearFrozenEditingMetaData() {
|
|
6209
|
+
if (props.editMode && ObjectUtils.isNotEmpty(frozenEditingMetaState)) {
|
|
6210
|
+
setFrozenEditingMetaState({});
|
|
6211
|
+
}
|
|
6212
|
+
};
|
|
6164
6213
|
var onColumnResizeStart = function onColumnResizeStart(e) {
|
|
6165
6214
|
createBeforeResizeStyleElement();
|
|
6166
6215
|
var event = e.originalEvent,
|
|
@@ -6451,6 +6500,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6451
6500
|
};
|
|
6452
6501
|
var onPageChange = function onPageChange(e) {
|
|
6453
6502
|
clearEditingMetaData();
|
|
6503
|
+
clearFrozenEditingMetaData();
|
|
6454
6504
|
if (props.onPage) {
|
|
6455
6505
|
props.onPage(createEvent(e));
|
|
6456
6506
|
} else {
|
|
@@ -6463,6 +6513,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6463
6513
|
};
|
|
6464
6514
|
var onSortChange = function onSortChange(e) {
|
|
6465
6515
|
clearEditingMetaData();
|
|
6516
|
+
clearFrozenEditingMetaData();
|
|
6466
6517
|
var event = e.originalEvent,
|
|
6467
6518
|
column = e.column,
|
|
6468
6519
|
sortableDisabledFields = e.sortableDisabledFields;
|
|
@@ -6640,6 +6691,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6640
6691
|
};
|
|
6641
6692
|
var onFilterChange = function onFilterChange(filters) {
|
|
6642
6693
|
clearEditingMetaData();
|
|
6694
|
+
clearFrozenEditingMetaData();
|
|
6643
6695
|
setD_filtersState(filters);
|
|
6644
6696
|
};
|
|
6645
6697
|
var onFilterApply = function onFilterApply(filtersToApply) {
|
|
@@ -6829,6 +6881,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
6829
6881
|
setD_filtersState(cloneFilters(props.filters));
|
|
6830
6882
|
setGroupRowsSortMetaState(null);
|
|
6831
6883
|
setEditingMetaState({});
|
|
6884
|
+
setFrozenEditingMetaState({});
|
|
6832
6885
|
if (!props.onPage) {
|
|
6833
6886
|
setFirstState(props.first);
|
|
6834
6887
|
setRowsState(props.rows);
|
|
@@ -7193,7 +7246,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7193
7246
|
dataKey: props.dataKey,
|
|
7194
7247
|
dragSelection: props.dragSelection,
|
|
7195
7248
|
editMode: props.editMode,
|
|
7196
|
-
editingMeta:
|
|
7249
|
+
editingMeta: frozenEditingMetaState,
|
|
7197
7250
|
editingRows: props.editingRows,
|
|
7198
7251
|
emptyMessage: props.emptyMessage,
|
|
7199
7252
|
expandableRowGroups: props.expandableRowGroups,
|
|
@@ -7212,7 +7265,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
7212
7265
|
onCellUnselect: props.onCellUnselect,
|
|
7213
7266
|
onContextMenu: props.onContextMenu,
|
|
7214
7267
|
onContextMenuSelectionChange: props.onContextMenuSelectionChange,
|
|
7215
|
-
onEditingMetaChange:
|
|
7268
|
+
onEditingMetaChange: onFrozenEditingMetaChange,
|
|
7216
7269
|
onRowClick: props.onRowClick,
|
|
7217
7270
|
onRowCollapse: props.onRowCollapse,
|
|
7218
7271
|
onRowDoubleClick: props.onRowDoubleClick,
|