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
package/datatable/datatable.js
CHANGED
|
@@ -27,18 +27,13 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
27
27
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact$1);
|
|
28
28
|
|
|
29
29
|
function _extends() {
|
|
30
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
31
|
-
for (var
|
|
32
|
-
var
|
|
33
|
-
for (var
|
|
34
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
|
-
target[key] = source[key];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
30
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
31
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
32
|
+
var t = arguments[e];
|
|
33
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
38
34
|
}
|
|
39
|
-
return
|
|
40
|
-
};
|
|
41
|
-
return _extends.apply(this, arguments);
|
|
35
|
+
return n;
|
|
36
|
+
}, _extends.apply(null, arguments);
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
function _typeof(o) {
|
|
@@ -51,70 +46,63 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
51
46
|
}, _typeof(o);
|
|
52
47
|
}
|
|
53
48
|
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
56
|
-
var
|
|
57
|
-
if (
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
49
|
+
function toPrimitive(t, r) {
|
|
50
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
51
|
+
var e = t[Symbol.toPrimitive];
|
|
52
|
+
if (void 0 !== e) {
|
|
53
|
+
var i = e.call(t, r || "default");
|
|
54
|
+
if ("object" != _typeof(i)) return i;
|
|
60
55
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
61
56
|
}
|
|
62
|
-
return (
|
|
57
|
+
return ("string" === r ? String : Number)(t);
|
|
63
58
|
}
|
|
64
59
|
|
|
65
|
-
function
|
|
66
|
-
var
|
|
67
|
-
return _typeof(
|
|
60
|
+
function toPropertyKey(t) {
|
|
61
|
+
var i = toPrimitive(t, "string");
|
|
62
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
68
63
|
}
|
|
69
64
|
|
|
70
|
-
function _defineProperty(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
writable: true
|
|
78
|
-
});
|
|
79
|
-
} else {
|
|
80
|
-
obj[key] = value;
|
|
81
|
-
}
|
|
82
|
-
return obj;
|
|
65
|
+
function _defineProperty(e, r, t) {
|
|
66
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
67
|
+
value: t,
|
|
68
|
+
enumerable: !0,
|
|
69
|
+
configurable: !0,
|
|
70
|
+
writable: !0
|
|
71
|
+
}) : e[r] = t, e;
|
|
83
72
|
}
|
|
84
73
|
|
|
85
|
-
function _arrayLikeToArray$1(
|
|
86
|
-
|
|
87
|
-
for (var
|
|
88
|
-
return
|
|
74
|
+
function _arrayLikeToArray$1(r, a) {
|
|
75
|
+
(null == a || a > r.length) && (a = r.length);
|
|
76
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
77
|
+
return n;
|
|
89
78
|
}
|
|
90
79
|
|
|
91
|
-
function _arrayWithoutHoles(
|
|
92
|
-
if (Array.isArray(
|
|
80
|
+
function _arrayWithoutHoles(r) {
|
|
81
|
+
if (Array.isArray(r)) return _arrayLikeToArray$1(r);
|
|
93
82
|
}
|
|
94
83
|
|
|
95
|
-
function _iterableToArray(
|
|
96
|
-
if (typeof Symbol
|
|
84
|
+
function _iterableToArray(r) {
|
|
85
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
97
86
|
}
|
|
98
87
|
|
|
99
|
-
function _unsupportedIterableToArray$1(
|
|
100
|
-
if (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
88
|
+
function _unsupportedIterableToArray$1(r, a) {
|
|
89
|
+
if (r) {
|
|
90
|
+
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
|
91
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
92
|
+
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;
|
|
93
|
+
}
|
|
106
94
|
}
|
|
107
95
|
|
|
108
96
|
function _nonIterableSpread() {
|
|
109
97
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
110
98
|
}
|
|
111
99
|
|
|
112
|
-
function _toConsumableArray(
|
|
113
|
-
return _arrayWithoutHoles(
|
|
100
|
+
function _toConsumableArray(r) {
|
|
101
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
|
|
114
102
|
}
|
|
115
103
|
|
|
116
|
-
function _arrayWithHoles(
|
|
117
|
-
if (Array.isArray(
|
|
104
|
+
function _arrayWithHoles(r) {
|
|
105
|
+
if (Array.isArray(r)) return r;
|
|
118
106
|
}
|
|
119
107
|
|
|
120
108
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -149,8 +137,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
149
137
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
150
138
|
}
|
|
151
139
|
|
|
152
|
-
function _slicedToArray(
|
|
153
|
-
return _arrayWithHoles(
|
|
140
|
+
function _slicedToArray(r, e) {
|
|
141
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
154
142
|
}
|
|
155
143
|
|
|
156
144
|
var getStorage = function getStorage(stateStorageProp) {
|
|
@@ -616,33 +604,26 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
616
604
|
}
|
|
617
605
|
});
|
|
618
606
|
|
|
619
|
-
function _objectWithoutPropertiesLoose(
|
|
620
|
-
if (
|
|
621
|
-
var
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
key = sourceKeys[i];
|
|
626
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
627
|
-
target[key] = source[key];
|
|
607
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
608
|
+
if (null == r) return {};
|
|
609
|
+
var t = {};
|
|
610
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
611
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
612
|
+
t[n] = r[n];
|
|
628
613
|
}
|
|
629
|
-
return
|
|
614
|
+
return t;
|
|
630
615
|
}
|
|
631
616
|
|
|
632
|
-
function _objectWithoutProperties(
|
|
633
|
-
if (
|
|
634
|
-
var
|
|
635
|
-
|
|
617
|
+
function _objectWithoutProperties(e, t) {
|
|
618
|
+
if (null == e) return {};
|
|
619
|
+
var o,
|
|
620
|
+
r,
|
|
621
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
636
622
|
if (Object.getOwnPropertySymbols) {
|
|
637
|
-
var
|
|
638
|
-
for (
|
|
639
|
-
key = sourceSymbolKeys[i];
|
|
640
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
641
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
642
|
-
target[key] = source[key];
|
|
643
|
-
}
|
|
623
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
624
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
644
625
|
}
|
|
645
|
-
return
|
|
626
|
+
return i;
|
|
646
627
|
}
|
|
647
628
|
|
|
648
629
|
var classes$1 = {
|
|
@@ -726,7 +707,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
726
707
|
return props.checked === props.trueValue;
|
|
727
708
|
};
|
|
728
709
|
var _onChange = function onChange(event) {
|
|
729
|
-
if (props.disabled || props.
|
|
710
|
+
if (props.disabled || props.readOnly) {
|
|
730
711
|
return;
|
|
731
712
|
}
|
|
732
713
|
if (props.onChange) {
|
|
@@ -985,7 +966,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
985
966
|
onChange(event);
|
|
986
967
|
};
|
|
987
968
|
var onChange = function onChange(event) {
|
|
988
|
-
if (props.disabled || props.
|
|
969
|
+
if (props.disabled || props.readOnly) {
|
|
989
970
|
return;
|
|
990
971
|
}
|
|
991
972
|
if (props.onChange) {
|
|
@@ -1088,7 +1069,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1088
1069
|
onBlur: onBlur,
|
|
1089
1070
|
onChange: onChange,
|
|
1090
1071
|
disabled: props.disabled,
|
|
1091
|
-
readOnly: props.
|
|
1072
|
+
readOnly: props.readOnly,
|
|
1092
1073
|
required: props.required,
|
|
1093
1074
|
tabIndex: props.tabIndex,
|
|
1094
1075
|
className: cx('input')
|
|
@@ -1161,7 +1142,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1161
1142
|
|
|
1162
1143
|
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; }
|
|
1163
1144
|
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; }
|
|
1164
|
-
var
|
|
1145
|
+
var Cell = function Cell(props) {
|
|
1165
1146
|
var mergeProps = hooks.useMergeProps();
|
|
1166
1147
|
var _React$useState = React__namespace.useState(props.editing),
|
|
1167
1148
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -1189,13 +1170,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1189
1170
|
var getColumnProp = function getColumnProp(name) {
|
|
1190
1171
|
return ColumnBase.getCProp(props.column, name);
|
|
1191
1172
|
};
|
|
1192
|
-
var getColumnProps = function getColumnProps() {
|
|
1193
|
-
return ColumnBase.getCProps(props.column);
|
|
1194
|
-
};
|
|
1195
1173
|
var getColumnPTOptions = function getColumnPTOptions(key) {
|
|
1196
|
-
var cProps = getColumnProps();
|
|
1197
1174
|
var columnMetaData = {
|
|
1198
|
-
props: cProps,
|
|
1175
|
+
props: props.cProps,
|
|
1199
1176
|
parent: props.metaData,
|
|
1200
1177
|
hostName: props.hostName,
|
|
1201
1178
|
state: {
|
|
@@ -1211,10 +1188,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1211
1188
|
};
|
|
1212
1189
|
return mergeProps(ptm("column.".concat(key), {
|
|
1213
1190
|
column: columnMetaData
|
|
1214
|
-
}), ptm("column.".concat(key), columnMetaData), ptmo(cProps, key, columnMetaData));
|
|
1191
|
+
}), ptm("column.".concat(key), columnMetaData), ptmo(props.cProps, key, columnMetaData));
|
|
1215
1192
|
};
|
|
1216
|
-
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
1217
|
-
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
1218
1193
|
var isEditable = function isEditable() {
|
|
1219
1194
|
return utils.ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
|
|
1220
1195
|
};
|
|
@@ -1239,34 +1214,22 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1239
1214
|
_useEventListener2 = _slicedToArray(_useEventListener, 2),
|
|
1240
1215
|
bindDocumentClickListener = _useEventListener2[0],
|
|
1241
1216
|
unbindDocumentClickListener = _useEventListener2[1];
|
|
1242
|
-
var isSelected = function isSelected() {
|
|
1243
|
-
return props.selection ? props.selection instanceof Array ? findIndex(props.selection) > -1 : equals(props.selection) : false;
|
|
1244
|
-
};
|
|
1245
|
-
var equalsData = function equalsData(data) {
|
|
1246
|
-
return props.compareSelectionBy === 'equals' ? data === props.rowData : utils.ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
1247
|
-
};
|
|
1248
|
-
var equals = function equals(selectedCell) {
|
|
1249
|
-
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
|
|
1250
|
-
};
|
|
1251
1217
|
var isOutsideClicked = function isOutsideClicked(target) {
|
|
1252
1218
|
return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
|
|
1253
1219
|
};
|
|
1254
|
-
var getVirtualScrollerOption = function getVirtualScrollerOption(option) {
|
|
1255
|
-
return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
|
|
1256
|
-
};
|
|
1257
1220
|
var getStyle = function getStyle() {
|
|
1258
1221
|
var bodyStyle = getColumnProp('bodyStyle');
|
|
1259
1222
|
var columnStyle = getColumnProp('style');
|
|
1260
|
-
return
|
|
1223
|
+
return props.frozenCol ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
|
|
1261
1224
|
};
|
|
1262
1225
|
var getCellParams = function getCellParams() {
|
|
1263
1226
|
return {
|
|
1264
|
-
value: resolveFieldData(),
|
|
1265
|
-
field: field,
|
|
1227
|
+
value: props.resolveFieldData(),
|
|
1228
|
+
field: props.field,
|
|
1266
1229
|
rowData: props.rowData,
|
|
1267
1230
|
rowIndex: props.rowIndex,
|
|
1268
1231
|
cellIndex: props.index,
|
|
1269
|
-
selected:
|
|
1232
|
+
selected: props.isCellSelected,
|
|
1270
1233
|
column: props.column,
|
|
1271
1234
|
props: props
|
|
1272
1235
|
};
|
|
@@ -1277,20 +1240,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1277
1240
|
originalEvent: event
|
|
1278
1241
|
}, params);
|
|
1279
1242
|
};
|
|
1280
|
-
var resolveFieldData = function resolveFieldData(data) {
|
|
1281
|
-
return utils.ObjectUtils.resolveFieldData(data || props.rowData, field);
|
|
1282
|
-
};
|
|
1283
|
-
var getEditingRowData = function getEditingRowData() {
|
|
1284
|
-
return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
|
|
1285
|
-
};
|
|
1286
|
-
var getTabIndex = function getTabIndex(cellSelected) {
|
|
1287
|
-
return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && props.index === 0 ? props.tabIndex : -1 : null;
|
|
1288
|
-
};
|
|
1289
|
-
var findIndex = function findIndex(collection) {
|
|
1290
|
-
return (collection || []).findIndex(function (data) {
|
|
1291
|
-
return equals(data);
|
|
1292
|
-
});
|
|
1293
|
-
};
|
|
1294
1243
|
var closeCell = function closeCell(event) {
|
|
1295
1244
|
var params = getCellCallbackParams(event);
|
|
1296
1245
|
var onBeforeCellEditHide = getColumnProp('onBeforeCellEditHide');
|
|
@@ -1311,7 +1260,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1311
1260
|
var switchCellToViewMode = function switchCellToViewMode(event, submit) {
|
|
1312
1261
|
var callbackParams = getCellCallbackParams(event);
|
|
1313
1262
|
var newRowData = _objectSpread$b({}, editingRowDataStateRef.current);
|
|
1314
|
-
var newValue = resolveFieldData(newRowData);
|
|
1263
|
+
var newValue = props.resolveFieldData(newRowData);
|
|
1315
1264
|
var params = _objectSpread$b(_objectSpread$b({}, callbackParams), {}, {
|
|
1316
1265
|
newRowData: newRowData,
|
|
1317
1266
|
newValue: newValue
|
|
@@ -1336,128 +1285,20 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1336
1285
|
}
|
|
1337
1286
|
setEditingRowDataState(newRowData);
|
|
1338
1287
|
};
|
|
1339
|
-
var _findNextSelectableCell = function findNextSelectableCell(cell) {
|
|
1340
|
-
var nextCell = cell.nextElementSibling;
|
|
1341
|
-
return nextCell ? utils.DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : _findNextSelectableCell(nextCell) : null;
|
|
1342
|
-
};
|
|
1343
|
-
var _findPrevSelectableCell = function findPrevSelectableCell(cell) {
|
|
1344
|
-
var prevCell = cell.previousElementSibling;
|
|
1345
|
-
return prevCell ? utils.DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : _findPrevSelectableCell(prevCell) : null;
|
|
1346
|
-
};
|
|
1347
|
-
var _findDownSelectableCell = function findDownSelectableCell(cell) {
|
|
1348
|
-
var downRow = cell.parentElement.nextElementSibling;
|
|
1349
|
-
var downCell = downRow ? downRow.children[props.index] : null;
|
|
1350
|
-
return downRow && downCell ? utils.DomHandler.getAttribute(downRow, 'data-p-selectable-row') && utils.DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : _findDownSelectableCell(downCell) : null;
|
|
1351
|
-
};
|
|
1352
|
-
var _findUpSelectableCell = function findUpSelectableCell(cell) {
|
|
1353
|
-
var upRow = cell.parentElement.previousElementSibling;
|
|
1354
|
-
var upCell = upRow ? upRow.children[props.index] : null;
|
|
1355
|
-
return upRow && upCell ? utils.DomHandler.getAttribute(upRow, 'data-p-selectable-row') && utils.DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : _findUpSelectableCell(upCell) : null;
|
|
1356
|
-
};
|
|
1357
|
-
var changeTabIndex = function changeTabIndex(currentCell, nextCell) {
|
|
1358
|
-
if (currentCell && nextCell) {
|
|
1359
|
-
currentCell.tabIndex = -1;
|
|
1360
|
-
nextCell.tabIndex = props.tabIndex;
|
|
1361
|
-
}
|
|
1362
|
-
};
|
|
1363
|
-
var focusOnElement = function focusOnElement() {
|
|
1364
|
-
clearTimeout(focusTimeout.current);
|
|
1365
|
-
focusTimeout.current = setTimeout(function () {
|
|
1366
|
-
if (editingState) {
|
|
1367
|
-
var focusableEl = props.editMode === 'cell' ? utils.DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : utils.DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
1368
|
-
focusableEl && focusableEl.focus();
|
|
1369
|
-
}
|
|
1370
|
-
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
1371
|
-
}, 1);
|
|
1372
|
-
};
|
|
1373
|
-
var focusOnInit = function focusOnInit() {
|
|
1374
|
-
clearTimeout(initFocusTimeout.current);
|
|
1375
|
-
initFocusTimeout.current = setTimeout(function () {
|
|
1376
|
-
var focusableEl = props.editMode === 'row' ? utils.DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
|
|
1377
|
-
focusableEl && focusableEl.focus();
|
|
1378
|
-
}, 1);
|
|
1379
|
-
};
|
|
1380
|
-
var updateStickyPosition = function updateStickyPosition() {
|
|
1381
|
-
if (getColumnProp('frozen')) {
|
|
1382
|
-
var styleObject = _objectSpread$b({}, styleObjectState);
|
|
1383
|
-
var align = getColumnProp('alignFrozen');
|
|
1384
|
-
if (align === 'right') {
|
|
1385
|
-
var right = 0;
|
|
1386
|
-
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
1387
|
-
if (next && next.classList.contains('p-frozen-column')) {
|
|
1388
|
-
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
1389
|
-
}
|
|
1390
|
-
styleObject.right = right + 'px';
|
|
1391
|
-
} else {
|
|
1392
|
-
var left = 0;
|
|
1393
|
-
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
1394
|
-
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
1395
|
-
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
1396
|
-
}
|
|
1397
|
-
styleObject.left = left + 'px';
|
|
1398
|
-
}
|
|
1399
|
-
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
1400
|
-
!isSameStyle && setStyleObjectState(styleObject);
|
|
1401
|
-
}
|
|
1402
|
-
};
|
|
1403
1288
|
var editorCallback = function editorCallback(val) {
|
|
1404
1289
|
var editingRowData = _objectSpread$b({}, editingRowDataState);
|
|
1405
|
-
utils.ObjectUtils.mutateFieldData(editingRowData, field, val);
|
|
1290
|
+
utils.ObjectUtils.mutateFieldData(editingRowData, props.field, val);
|
|
1406
1291
|
setEditingRowDataState(editingRowData);
|
|
1407
1292
|
|
|
1408
1293
|
// update editing meta for complete methods on row mode
|
|
1409
|
-
var currentData = getEditingRowData();
|
|
1294
|
+
var currentData = props.getEditingRowData();
|
|
1410
1295
|
if (currentData) {
|
|
1411
|
-
utils.ObjectUtils.mutateFieldData(currentData, field, val);
|
|
1296
|
+
utils.ObjectUtils.mutateFieldData(currentData, props.field, val);
|
|
1412
1297
|
}
|
|
1413
1298
|
editingRowDataStateRef.current = editingRowData;
|
|
1414
1299
|
};
|
|
1415
1300
|
var _onClick = function onClick(event) {
|
|
1416
|
-
|
|
1417
|
-
if (props.editMode !== 'row' && isEditable() && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.selected)) {
|
|
1418
|
-
selfClick.current = true;
|
|
1419
|
-
var onBeforeCellEditShow = getColumnProp('onBeforeCellEditShow');
|
|
1420
|
-
var onCellEditInit = getColumnProp('onCellEditInit');
|
|
1421
|
-
var cellEditValidatorEvent = getColumnProp('cellEditValidatorEvent');
|
|
1422
|
-
if (onBeforeCellEditShow) {
|
|
1423
|
-
// if user returns false do not show the editor
|
|
1424
|
-
if (onBeforeCellEditShow(params) === false) {
|
|
1425
|
-
return;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
// if user prevents default stop the editor
|
|
1429
|
-
if (event && event.defaultPrevented) {
|
|
1430
|
-
return;
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
// 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.
|
|
1435
|
-
setTimeout(function () {
|
|
1436
|
-
setEditingState(true);
|
|
1437
|
-
if (onCellEditInit) {
|
|
1438
|
-
if (onCellEditInit(params) === false) {
|
|
1439
|
-
return;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
// if user prevents default stop the editor
|
|
1443
|
-
if (event && event.defaultPrevented) {
|
|
1444
|
-
return;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
if (cellEditValidatorEvent === 'click') {
|
|
1448
|
-
bindDocumentClickListener();
|
|
1449
|
-
overlayEventListener.current = function (e) {
|
|
1450
|
-
if (!isOutsideClicked(e.target)) {
|
|
1451
|
-
selfClick.current = true;
|
|
1452
|
-
}
|
|
1453
|
-
};
|
|
1454
|
-
overlayservice.OverlayService.on('overlay-click', overlayEventListener.current);
|
|
1455
|
-
}
|
|
1456
|
-
}, 1);
|
|
1457
|
-
}
|
|
1458
|
-
if (props.allowCellSelection && props.onClick) {
|
|
1459
|
-
props.onClick(params);
|
|
1460
|
-
}
|
|
1301
|
+
props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, selfClick, props.column, bindDocumentClickListener, overlayEventListener);
|
|
1461
1302
|
};
|
|
1462
1303
|
var _onMouseDown = function onMouseDown(event) {
|
|
1463
1304
|
var params = getCellCallbackParams(event);
|
|
@@ -1481,7 +1322,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1481
1322
|
cell = event.currentTarget;
|
|
1482
1323
|
switch (event.code) {
|
|
1483
1324
|
case 'ArrowLeft':
|
|
1484
|
-
var prevCell =
|
|
1325
|
+
var prevCell = props.findPrevSelectableCell(cell);
|
|
1485
1326
|
if (prevCell) {
|
|
1486
1327
|
changeTabIndex(cell, prevCell);
|
|
1487
1328
|
prevCell.focus();
|
|
@@ -1489,7 +1330,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1489
1330
|
event.preventDefault();
|
|
1490
1331
|
break;
|
|
1491
1332
|
case 'ArrowRight':
|
|
1492
|
-
var nextCell =
|
|
1333
|
+
var nextCell = props.findNextSelectableCell(cell);
|
|
1493
1334
|
if (nextCell) {
|
|
1494
1335
|
changeTabIndex(cell, nextCell);
|
|
1495
1336
|
nextCell.focus();
|
|
@@ -1497,7 +1338,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1497
1338
|
event.preventDefault();
|
|
1498
1339
|
break;
|
|
1499
1340
|
case 'ArrowUp':
|
|
1500
|
-
var upCell =
|
|
1341
|
+
var upCell = props.findUpSelectableCell(cell, index);
|
|
1501
1342
|
if (upCell) {
|
|
1502
1343
|
changeTabIndex(cell, upCell);
|
|
1503
1344
|
upCell.focus();
|
|
@@ -1505,7 +1346,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1505
1346
|
event.preventDefault();
|
|
1506
1347
|
break;
|
|
1507
1348
|
case 'ArrowDown':
|
|
1508
|
-
var downCell =
|
|
1349
|
+
var downCell = props.findDownSelectableCell(cell, index);
|
|
1509
1350
|
if (downCell) {
|
|
1510
1351
|
changeTabIndex(cell, downCell);
|
|
1511
1352
|
downCell.focus();
|
|
@@ -1544,13 +1385,6 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1544
1385
|
index: props.rowIndex
|
|
1545
1386
|
});
|
|
1546
1387
|
};
|
|
1547
|
-
var onCheckboxChange = function onCheckboxChange(event) {
|
|
1548
|
-
props.onCheckboxChange({
|
|
1549
|
-
originalEvent: event,
|
|
1550
|
-
data: props.rowData,
|
|
1551
|
-
index: props.rowIndex
|
|
1552
|
-
});
|
|
1553
|
-
};
|
|
1554
1388
|
var onRowToggle = function onRowToggle(event) {
|
|
1555
1389
|
props.onRowToggle({
|
|
1556
1390
|
originalEvent: event,
|
|
@@ -1563,8 +1397,8 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1563
1397
|
props.onRowEditInit({
|
|
1564
1398
|
originalEvent: event,
|
|
1565
1399
|
data: props.rowData,
|
|
1566
|
-
newData: getEditingRowData(),
|
|
1567
|
-
field: field,
|
|
1400
|
+
newData: props.getEditingRowData(),
|
|
1401
|
+
field: props.field,
|
|
1568
1402
|
index: props.rowIndex
|
|
1569
1403
|
});
|
|
1570
1404
|
};
|
|
@@ -1572,32 +1406,26 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1572
1406
|
props.onRowEditSave({
|
|
1573
1407
|
originalEvent: event,
|
|
1574
1408
|
data: props.rowData,
|
|
1575
|
-
newData: getEditingRowData(),
|
|
1576
|
-
field: field,
|
|
1409
|
+
newData: props.getEditingRowData(),
|
|
1410
|
+
field: props.field,
|
|
1577
1411
|
index: props.rowIndex
|
|
1578
1412
|
});
|
|
1579
|
-
focusOnInit();
|
|
1413
|
+
props.focusOnInit(initFocusTimeout, elementRef);
|
|
1580
1414
|
};
|
|
1581
1415
|
var onRowEditCancel = function onRowEditCancel(event) {
|
|
1582
1416
|
props.onRowEditCancel({
|
|
1583
1417
|
originalEvent: event,
|
|
1584
1418
|
data: props.rowData,
|
|
1585
|
-
newData: getEditingRowData(),
|
|
1586
|
-
field: field,
|
|
1419
|
+
newData: props.getEditingRowData(),
|
|
1420
|
+
field: props.field,
|
|
1587
1421
|
index: props.rowIndex
|
|
1588
1422
|
});
|
|
1589
|
-
focusOnInit();
|
|
1423
|
+
props.focusOnInit();
|
|
1590
1424
|
};
|
|
1591
1425
|
React__namespace.useEffect(function () {
|
|
1592
|
-
if (
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
});
|
|
1596
|
-
React__namespace.useEffect(function () {
|
|
1597
|
-
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1598
|
-
focusOnElement();
|
|
1599
|
-
}
|
|
1600
|
-
}, [props.editMode, props.editing, editingState]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
1426
|
+
if (props.frozenCol) props.updateStickyPosition(elementRef, props.frozenCol, props.alignFrozenCol, styleObjectState, setStyleObjectState);
|
|
1427
|
+
if (props.editMode === 'cell' || props.editMode === 'row') props.focusOnElement(focusTimeout, editingState, elementRef, keyHelperRef);
|
|
1428
|
+
}, [props.editMode, props.editing, editingState, props.frozenCol, props.alignFrozenCol]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
1601
1429
|
|
|
1602
1430
|
React__namespace.useEffect(function () {
|
|
1603
1431
|
if (props.editMode === 'row' && props.editing !== editingState) {
|
|
@@ -1606,7 +1434,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1606
1434
|
}, [props.editMode, props.editing, editingState]);
|
|
1607
1435
|
hooks.useUpdateEffect(function () {
|
|
1608
1436
|
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
1609
|
-
var editingRowData = getEditingRowData();
|
|
1437
|
+
var editingRowData = props.getEditingRowData();
|
|
1610
1438
|
setEditingRowDataState(editingRowData);
|
|
1611
1439
|
editingRowDataStateRef.current = editingRowData;
|
|
1612
1440
|
}
|
|
@@ -1616,7 +1444,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1616
1444
|
var callbackParams = getCellCallbackParams();
|
|
1617
1445
|
var params = _objectSpread$b(_objectSpread$b({}, callbackParams), {}, {
|
|
1618
1446
|
editing: editingState,
|
|
1619
|
-
editingKey: editingKey
|
|
1447
|
+
editingKey: props.editingKey
|
|
1620
1448
|
});
|
|
1621
1449
|
props.onEditingMetaChange(params);
|
|
1622
1450
|
}
|
|
@@ -1629,16 +1457,16 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1629
1457
|
}
|
|
1630
1458
|
});
|
|
1631
1459
|
var createLoading = function createLoading() {
|
|
1632
|
-
var options = getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
|
|
1460
|
+
var options = props.getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
|
|
1633
1461
|
cellIndex: props.index,
|
|
1634
1462
|
cellFirst: props.index === 0,
|
|
1635
|
-
cellLast: props.index === getVirtualScrollerOption('columns').length - 1,
|
|
1463
|
+
cellLast: props.index === props.getVirtualScrollerOption('columns').length - 1,
|
|
1636
1464
|
cellEven: props.index % 2 === 0,
|
|
1637
1465
|
cellOdd: props.index % 2 !== 0,
|
|
1638
1466
|
column: props.column,
|
|
1639
|
-
field: field
|
|
1467
|
+
field: props.field
|
|
1640
1468
|
});
|
|
1641
|
-
var content = utils.ObjectUtils.getJSXElement(getVirtualScrollerOption('loadingTemplate'), options);
|
|
1469
|
+
var content = utils.ObjectUtils.getJSXElement(props.getVirtualScrollerOption('loadingTemplate'), options);
|
|
1642
1470
|
var bodyCellProps = mergeProps(getColumnPTOptions('bodyCell'), {
|
|
1643
1471
|
role: 'cell'
|
|
1644
1472
|
});
|
|
@@ -1647,20 +1475,20 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1647
1475
|
var createElement = function createElement() {
|
|
1648
1476
|
var content;
|
|
1649
1477
|
var editorKeyHelper;
|
|
1650
|
-
var cellSelected = props.allowCellSelection &&
|
|
1478
|
+
var cellSelected = props.allowCellSelection && props.isCellSelected;
|
|
1651
1479
|
var isRowEditor = props.editMode === 'row';
|
|
1652
|
-
var tabIndex = getTabIndex(cellSelected);
|
|
1480
|
+
var tabIndex = props.getTabIndex(cellSelected, props.index);
|
|
1653
1481
|
var selectionMode = getColumnProp('selectionMode');
|
|
1654
1482
|
var rowReorder = getColumnProp('rowReorder');
|
|
1655
1483
|
var header = getColumnProp('header');
|
|
1656
1484
|
var body = getColumnProp('body');
|
|
1657
1485
|
var editor = getColumnProp('editor');
|
|
1658
|
-
var frozen =
|
|
1486
|
+
var frozen = props.frozenCol;
|
|
1659
1487
|
var align = getColumnProp('align');
|
|
1660
|
-
var value = resolveFieldData();
|
|
1488
|
+
var value = props.resolveFieldData();
|
|
1661
1489
|
var columnBodyOptions = {
|
|
1662
1490
|
column: props.column,
|
|
1663
|
-
field: field,
|
|
1491
|
+
field: props.field,
|
|
1664
1492
|
rowIndex: props.rowIndex,
|
|
1665
1493
|
frozenRow: props.frozenRow,
|
|
1666
1494
|
props: props.tableProps
|
|
@@ -1685,12 +1513,12 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1685
1513
|
if (showSelection) {
|
|
1686
1514
|
var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
|
|
1687
1515
|
var ariaLabelText = utils.ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
|
|
1688
|
-
label = "".concat(props.
|
|
1516
|
+
label = "".concat(props.isRowSelected ? PrimeReact$1.ariaLabel('unselectRow') : PrimeReact$1.ariaLabel('selectRow'), " ").concat(ariaLabelText);
|
|
1689
1517
|
}
|
|
1690
1518
|
content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
|
|
1691
1519
|
hostName: props.hostName,
|
|
1692
1520
|
column: props.column,
|
|
1693
|
-
checked: props.
|
|
1521
|
+
checked: props.isRowSelected,
|
|
1694
1522
|
disabled: !props.isSelectable({
|
|
1695
1523
|
data: props.rowData,
|
|
1696
1524
|
index: props.rowIndex
|
|
@@ -1705,12 +1533,12 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1705
1533
|
}), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
|
|
1706
1534
|
hostName: props.hostName,
|
|
1707
1535
|
column: props.column,
|
|
1708
|
-
checked: props.
|
|
1536
|
+
checked: props.isRowSelected,
|
|
1709
1537
|
disabled: !props.isSelectable({
|
|
1710
1538
|
data: props.rowData,
|
|
1711
1539
|
index: props.rowIndex
|
|
1712
1540
|
}),
|
|
1713
|
-
onChange: onCheckboxChange,
|
|
1541
|
+
onChange: props.onCheckboxChange,
|
|
1714
1542
|
tabIndex: props.tabIndex,
|
|
1715
1543
|
ariaLabel: label,
|
|
1716
1544
|
checkIcon: props.checkIcon,
|
|
@@ -1760,7 +1588,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1760
1588
|
expanderProps.element = content;
|
|
1761
1589
|
content = utils.ObjectUtils.getJSXElement(body, props.rowData, {
|
|
1762
1590
|
column: props.column,
|
|
1763
|
-
field: field,
|
|
1591
|
+
field: props.field,
|
|
1764
1592
|
rowIndex: props.rowIndex,
|
|
1765
1593
|
frozenRow: props.frozenRow,
|
|
1766
1594
|
props: props.tableProps,
|
|
@@ -1834,7 +1662,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1834
1662
|
rowEditorProps.element = content;
|
|
1835
1663
|
content = utils.ObjectUtils.getJSXElement(body, props.rowData, {
|
|
1836
1664
|
column: props.column,
|
|
1837
|
-
field: field,
|
|
1665
|
+
field: props.field,
|
|
1838
1666
|
rowIndex: props.rowIndex,
|
|
1839
1667
|
frozenRow: props.frozenRow,
|
|
1840
1668
|
props: props.tableProps,
|
|
@@ -1844,7 +1672,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1844
1672
|
} else if (body && (!editingState || !editor)) {
|
|
1845
1673
|
content = body ? utils.ObjectUtils.getJSXElement(body, props.rowData, {
|
|
1846
1674
|
column: props.column,
|
|
1847
|
-
field: field,
|
|
1675
|
+
field: props.field,
|
|
1848
1676
|
rowIndex: props.rowIndex,
|
|
1849
1677
|
frozenRow: props.frozenRow,
|
|
1850
1678
|
props: props.tableProps
|
|
@@ -1852,9 +1680,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1852
1680
|
} else if (editor && editingState) {
|
|
1853
1681
|
content = utils.ObjectUtils.getJSXElement(editor, {
|
|
1854
1682
|
rowData: editingRowDataState,
|
|
1855
|
-
value: resolveFieldData(editingRowDataState),
|
|
1683
|
+
value: props.resolveFieldData(editingRowDataState),
|
|
1856
1684
|
column: props.column,
|
|
1857
|
-
field: field,
|
|
1685
|
+
field: props.field,
|
|
1858
1686
|
rowIndex: props.rowIndex,
|
|
1859
1687
|
frozenRow: props.frozenRow,
|
|
1860
1688
|
props: props.tableProps,
|
|
@@ -1922,7 +1750,22 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1922
1750
|
ref: elementRef
|
|
1923
1751
|
}, bodyCellProps), editorKeyHelper, title, content);
|
|
1924
1752
|
};
|
|
1925
|
-
return getVirtualScrollerOption('loading') ? createLoading() : createElement();
|
|
1753
|
+
return props.getVirtualScrollerOption('loading') ? createLoading() : createElement();
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
// RadioCheckCell is used for the Radio and Checkbox selection and has the isRowSelected dependency
|
|
1757
|
+
var RadioCheckCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
1758
|
+
return /*#__PURE__*/React__namespace.createElement(Cell, props);
|
|
1759
|
+
}, function (prevProps, nextProps) {
|
|
1760
|
+
var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
|
|
1761
|
+
return utils.ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
1762
|
+
});
|
|
1763
|
+
RadioCheckCell.displayName = 'RadioCheckCell';
|
|
1764
|
+
var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
1765
|
+
return /*#__PURE__*/React__namespace.createElement(Cell, props);
|
|
1766
|
+
}, function (prevProps, nextProps) {
|
|
1767
|
+
var keysToCompare = ['field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData', 'frozenCol', 'alignFrozenCol'];
|
|
1768
|
+
return utils.ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
|
|
1926
1769
|
});
|
|
1927
1770
|
BodyCell.displayName = 'BodyCell';
|
|
1928
1771
|
|
|
@@ -1938,6 +1781,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1938
1781
|
var _props$ptCallbacks = props.ptCallbacks,
|
|
1939
1782
|
ptm = _props$ptCallbacks.ptm,
|
|
1940
1783
|
cx = _props$ptCallbacks.cx;
|
|
1784
|
+
var isRowSelected = !props.allowCellSelection && props.selected || props.contextMenuSelected;
|
|
1941
1785
|
var getBodyRowPTOptions = function getBodyRowPTOptions(key) {
|
|
1942
1786
|
return ptm(key, {
|
|
1943
1787
|
parent: props.metaData,
|
|
@@ -1951,7 +1795,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1951
1795
|
data: props.rowData,
|
|
1952
1796
|
index: props.rowIndex
|
|
1953
1797
|
}),
|
|
1954
|
-
selected:
|
|
1798
|
+
selected: isRowSelected,
|
|
1955
1799
|
stripedRows: props.metaData.props.stripedRows
|
|
1956
1800
|
}
|
|
1957
1801
|
});
|
|
@@ -1980,10 +1824,10 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
1980
1824
|
return equals(rowData, data);
|
|
1981
1825
|
});
|
|
1982
1826
|
};
|
|
1983
|
-
var changeTabIndex = function changeTabIndex(
|
|
1984
|
-
if (
|
|
1985
|
-
|
|
1986
|
-
|
|
1827
|
+
var changeTabIndex = function changeTabIndex(currentElement, nextElement) {
|
|
1828
|
+
if (currentElement && nextElement) {
|
|
1829
|
+
currentElement.tabIndex = -1;
|
|
1830
|
+
nextElement.tabIndex = props.tabIndex;
|
|
1987
1831
|
}
|
|
1988
1832
|
};
|
|
1989
1833
|
var findFirstSelectableRow = function findFirstSelectableRow(row) {
|
|
@@ -2310,32 +2154,176 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2310
2154
|
onEditChange(e, false);
|
|
2311
2155
|
event.preventDefault();
|
|
2312
2156
|
};
|
|
2157
|
+
var equalsDataCell = function equalsDataCell(data) {
|
|
2158
|
+
return props.compareSelectionBy === 'equals' ? data === props.rowData : utils.ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
2159
|
+
};
|
|
2160
|
+
var equalsCell = function equalsCell(selectedCell, field, colIndex) {
|
|
2161
|
+
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsDataCell(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === colIndex);
|
|
2162
|
+
};
|
|
2163
|
+
var findIndexCell = function findIndexCell(collection, field, colIndex) {
|
|
2164
|
+
return (collection || []).findIndex(function (data) {
|
|
2165
|
+
return equalsCell(data, field, colIndex);
|
|
2166
|
+
});
|
|
2167
|
+
};
|
|
2168
|
+
var isCellSelected = function isCellSelected(selection, field, colIndex) {
|
|
2169
|
+
return selection ? selection instanceof Array ? findIndexCell(selection, field, colIndex) > -1 : equalsCell(selection, field, colIndex) : false;
|
|
2170
|
+
};
|
|
2171
|
+
var onCheckboxChange = function onCheckboxChange(event) {
|
|
2172
|
+
props.onCheckboxChange({
|
|
2173
|
+
originalEvent: event,
|
|
2174
|
+
data: props.rowData,
|
|
2175
|
+
index: props.rowIndex
|
|
2176
|
+
});
|
|
2177
|
+
};
|
|
2178
|
+
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
2179
|
+
var getVirtualScrollerOption = React__namespace.useCallback(function (option) {
|
|
2180
|
+
return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
|
|
2181
|
+
}, [props.virtualScrollerOptions]);
|
|
2182
|
+
var getEditingRowData = function getEditingRowData() {
|
|
2183
|
+
return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
|
|
2184
|
+
};
|
|
2185
|
+
var getTabIndexCell = React__namespace.useCallback(function (cellSelected, cellIndex) {
|
|
2186
|
+
return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && cellIndex === 0 ? props.tabIndex : -1 : null;
|
|
2187
|
+
}, [props.allowCellSelection, props.rowIndex, props.tabIndex]);
|
|
2188
|
+
var findNextSelectableCell = React__namespace.useCallback(function (cell) {
|
|
2189
|
+
var nextCell = cell.nextElementSibling;
|
|
2190
|
+
return nextCell ? utils.DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : findNextSelectableCell(nextCell) : null;
|
|
2191
|
+
}, []);
|
|
2192
|
+
var findPrevSelectableCell = React__namespace.useCallback(function (cell) {
|
|
2193
|
+
var prevCell = cell.previousElementSibling;
|
|
2194
|
+
return prevCell ? utils.DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : findPrevSelectableCell(prevCell) : null;
|
|
2195
|
+
}, []);
|
|
2196
|
+
var findDownSelectableCell = React__namespace.useCallback(function (cell, cellIndex) {
|
|
2197
|
+
var downRow = cell.parentElement.nextElementSibling;
|
|
2198
|
+
var downCell = downRow ? downRow.children[cellIndex] : null;
|
|
2199
|
+
return downRow && downCell ? utils.DomHandler.getAttribute(downRow, 'data-p-selectable-row') && utils.DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : findDownSelectableCell(downCell) : null;
|
|
2200
|
+
}, []);
|
|
2201
|
+
var findUpSelectableCell = React__namespace.useCallback(function (cell, cellIndex) {
|
|
2202
|
+
var upRow = cell.parentElement.previousElementSibling;
|
|
2203
|
+
var upCell = upRow ? upRow.children[cellIndex] : null;
|
|
2204
|
+
return upRow && upCell ? utils.DomHandler.getAttribute(upRow, 'data-p-selectable-row') && utils.DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : findUpSelectableCell(upCell) : null;
|
|
2205
|
+
}, []);
|
|
2206
|
+
var focusOnElement = React__namespace.useCallback(function (focusTimeoutRef, editingState, elementRef, keyHelperRef) {
|
|
2207
|
+
clearTimeout(focusTimeoutRef.current);
|
|
2208
|
+
focusTimeoutRef.current = setTimeout(function () {
|
|
2209
|
+
if (editingState) {
|
|
2210
|
+
var focusableEl = props.editMode === 'cell' ? utils.DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : utils.DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
|
|
2211
|
+
focusableEl && focusableEl.focus();
|
|
2212
|
+
}
|
|
2213
|
+
keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
|
|
2214
|
+
}, 1);
|
|
2215
|
+
}, [props.editMode]);
|
|
2216
|
+
var focusOnInit = React__namespace.useCallback(function (initFocusTimeoutRef, elementRef) {
|
|
2217
|
+
clearTimeout(initFocusTimeoutRef.current);
|
|
2218
|
+
initFocusTimeoutRef.current = setTimeout(function () {
|
|
2219
|
+
var focusableEl = props.editMode === 'row' ? utils.DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
|
|
2220
|
+
focusableEl && focusableEl.focus();
|
|
2221
|
+
}, 1);
|
|
2222
|
+
}, [props.editMode]);
|
|
2223
|
+
var updateStickyPosition = React__namespace.useCallback(function (elementRef, frozen, alignFrozen, styleObjectState, setStyleObjectState) {
|
|
2224
|
+
if (frozen) {
|
|
2225
|
+
var styleObject = _objectSpread$a({}, styleObjectState);
|
|
2226
|
+
if (alignFrozen === 'right') {
|
|
2227
|
+
var right = 0;
|
|
2228
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
2229
|
+
if (next && next.classList.contains('p-frozen-column')) {
|
|
2230
|
+
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
2231
|
+
}
|
|
2232
|
+
styleObject.right = right + 'px';
|
|
2233
|
+
} else {
|
|
2234
|
+
var left = 0;
|
|
2235
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
2236
|
+
if (prev && prev.classList.contains('p-frozen-column')) {
|
|
2237
|
+
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
2238
|
+
}
|
|
2239
|
+
styleObject.left = left + 'px';
|
|
2240
|
+
}
|
|
2241
|
+
var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
|
|
2242
|
+
!isSameStyle && setStyleObjectState(styleObject);
|
|
2243
|
+
}
|
|
2244
|
+
}, []);
|
|
2245
|
+
var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, selfClick, column, bindDocumentClickListener, overlayEventListener) {
|
|
2246
|
+
if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
|
|
2247
|
+
selfClick.current = true;
|
|
2248
|
+
var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
|
|
2249
|
+
var onCellEditInit = getColumnProp(column, 'onCellEditInit');
|
|
2250
|
+
var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
|
|
2251
|
+
if (onBeforeCellEditShow) {
|
|
2252
|
+
// if user returns false do not show the editor
|
|
2253
|
+
if (onBeforeCellEditShow(params) === false) {
|
|
2254
|
+
return;
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
// if user prevents default stop the editor
|
|
2258
|
+
if (event && event.defaultPrevented) {
|
|
2259
|
+
return;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
// 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.
|
|
2264
|
+
setTimeout(function () {
|
|
2265
|
+
setEditingState(true);
|
|
2266
|
+
if (onCellEditInit) {
|
|
2267
|
+
if (onCellEditInit(params) === false) {
|
|
2268
|
+
return;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
// if user prevents default stop the editor
|
|
2272
|
+
if (event && event.defaultPrevented) {
|
|
2273
|
+
return;
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
if (cellEditValidatorEvent === 'click') {
|
|
2277
|
+
bindDocumentClickListener();
|
|
2278
|
+
overlayEventListener.current = function (e) {
|
|
2279
|
+
if (!isOutsideClicked(e.target)) {
|
|
2280
|
+
selfClick.current = true;
|
|
2281
|
+
}
|
|
2282
|
+
};
|
|
2283
|
+
overlayservice.OverlayService.on('overlay-click', overlayEventListener.current);
|
|
2284
|
+
}
|
|
2285
|
+
}, 1);
|
|
2286
|
+
}
|
|
2287
|
+
if (props.allowCellSelection && props.onCellClick) {
|
|
2288
|
+
props.onCellClick(params);
|
|
2289
|
+
}
|
|
2290
|
+
};
|
|
2313
2291
|
var createContent = function createContent() {
|
|
2314
2292
|
return props.columns.map(function (col, i) {
|
|
2315
2293
|
if (shouldRenderBodyCell(props.value, col, props.index)) {
|
|
2316
2294
|
var key = "".concat(props.rowIndex, "_").concat(getColumnProp(col, 'columnKey') || getColumnProp(col, 'field'), "_").concat(i);
|
|
2317
2295
|
var rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;
|
|
2318
|
-
|
|
2296
|
+
var field = getColumnProp(col, 'field') || "field_".concat(i);
|
|
2297
|
+
var resolveFieldData = function resolveFieldData(data) {
|
|
2298
|
+
return utils.ObjectUtils.resolveFieldData(data || props.rowData, field);
|
|
2299
|
+
};
|
|
2300
|
+
var selectionMode = getColumnProp(col, 'selectionMode');
|
|
2301
|
+
var cellProps = mergeProps({
|
|
2319
2302
|
hostName: props.hostName,
|
|
2320
|
-
key: key,
|
|
2321
2303
|
allowCellSelection: props.allowCellSelection,
|
|
2322
2304
|
cellClassName: props.cellClassName,
|
|
2323
2305
|
checkIcon: props.checkIcon,
|
|
2324
2306
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
2307
|
+
field: field,
|
|
2308
|
+
resolveFieldData: resolveFieldData,
|
|
2325
2309
|
column: col,
|
|
2326
|
-
|
|
2310
|
+
cProps: props.colsProps[i],
|
|
2327
2311
|
dataKey: props.dataKey,
|
|
2328
2312
|
editMode: props.editMode,
|
|
2329
2313
|
editing: editing,
|
|
2330
2314
|
editingMeta: props.editingMeta,
|
|
2315
|
+
onEditingMetaChange: props.onEditingMetaChange,
|
|
2316
|
+
editingKey: editingKey,
|
|
2317
|
+
getEditingRowData: getEditingRowData,
|
|
2331
2318
|
expanded: props.expanded,
|
|
2332
2319
|
expandedRowIcon: props.expandedRowIcon,
|
|
2333
2320
|
frozenRow: props.frozenRow,
|
|
2321
|
+
frozenCol: getColumnProp(col, 'frozen'),
|
|
2322
|
+
alignFrozenCol: getColumnProp(col, 'alignFrozen'),
|
|
2334
2323
|
index: i,
|
|
2335
2324
|
isSelectable: props.isSelectable,
|
|
2336
|
-
onCheckboxChange:
|
|
2337
|
-
onClick:
|
|
2338
|
-
onEditingMetaChange: props.onEditingMetaChange,
|
|
2325
|
+
onCheckboxChange: onCheckboxChange,
|
|
2326
|
+
onClick: onCellClick,
|
|
2339
2327
|
onMouseDown: props.onCellMouseDown,
|
|
2340
2328
|
onMouseUp: props.onCellMouseUp,
|
|
2341
2329
|
onRadioChange: props.onRadioChange,
|
|
@@ -2351,20 +2339,31 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2351
2339
|
rowIndex: props.rowIndex,
|
|
2352
2340
|
rowSpan: rowSpan,
|
|
2353
2341
|
selectOnEdit: props.selectOnEdit,
|
|
2354
|
-
|
|
2355
|
-
|
|
2342
|
+
isRowSelected: isRowSelected,
|
|
2343
|
+
isCellSelected: isCellSelected(props.selection, field, i),
|
|
2356
2344
|
selectionAriaLabel: props.tableProps.selectionAriaLabel,
|
|
2357
2345
|
showRowReorderElement: props.showRowReorderElement,
|
|
2358
2346
|
showSelectionElement: props.showSelectionElement,
|
|
2359
2347
|
tabIndex: props.tabIndex,
|
|
2348
|
+
getTabIndex: getTabIndexCell,
|
|
2360
2349
|
tableProps: props.tableProps,
|
|
2361
2350
|
tableSelector: props.tableSelector,
|
|
2362
2351
|
value: props.value,
|
|
2363
|
-
|
|
2352
|
+
getVirtualScrollerOption: getVirtualScrollerOption,
|
|
2364
2353
|
ptCallbacks: props.ptCallbacks,
|
|
2365
2354
|
metaData: props.metaData,
|
|
2366
|
-
unstyled: props.unstyled
|
|
2355
|
+
unstyled: props.unstyled,
|
|
2356
|
+
findNextSelectableCell: findNextSelectableCell,
|
|
2357
|
+
findPrevSelectableCell: findPrevSelectableCell,
|
|
2358
|
+
findDownSelectableCell: findDownSelectableCell,
|
|
2359
|
+
findUpSelectableCell: findUpSelectableCell,
|
|
2360
|
+
focusOnElement: focusOnElement,
|
|
2361
|
+
focusOnInit: focusOnInit,
|
|
2362
|
+
updateStickyPosition: updateStickyPosition
|
|
2367
2363
|
});
|
|
2364
|
+
return /*#__PURE__*/React__namespace.createElement(React.Fragment, {
|
|
2365
|
+
key: key
|
|
2366
|
+
}, selectionMode ? /*#__PURE__*/React__namespace.createElement(RadioCheckCell, cellProps) : /*#__PURE__*/React__namespace.createElement(BodyCell, cellProps));
|
|
2368
2367
|
}
|
|
2369
2368
|
return null;
|
|
2370
2369
|
});
|
|
@@ -2514,8 +2513,11 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2514
2513
|
var getColumnProps = function getColumnProps(column) {
|
|
2515
2514
|
return ColumnBase.getCProps(column);
|
|
2516
2515
|
};
|
|
2516
|
+
var cProps = getColumnProps(props.column);
|
|
2517
|
+
var colsProps = props.columns ? props.columns.map(function (col) {
|
|
2518
|
+
return getColumnProps(col);
|
|
2519
|
+
}) : [];
|
|
2517
2520
|
var getColumnPTOptions = function getColumnPTOptions(key) {
|
|
2518
|
-
var cProps = getColumnProps(props.column);
|
|
2519
2521
|
var columnMetaData = {
|
|
2520
2522
|
props: cProps,
|
|
2521
2523
|
parent: props.metaData,
|
|
@@ -2640,8 +2642,12 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2640
2642
|
var allowSelection = function allowSelection(event) {
|
|
2641
2643
|
return !utils.DomHandler.isClickable(event.originalEvent.target);
|
|
2642
2644
|
};
|
|
2645
|
+
var metaKeySelectionRef = React__namespace.useRef(props.metaKeySelection);
|
|
2646
|
+
React__namespace.useEffect(function () {
|
|
2647
|
+
metaKeySelectionRef.current = props.metaKeySelection;
|
|
2648
|
+
}, [props.metaKeySelection]);
|
|
2643
2649
|
var allowMetaKeySelection = function allowMetaKeySelection(event) {
|
|
2644
|
-
return !rowTouched.current && (!
|
|
2650
|
+
return !rowTouched.current && (!metaKeySelectionRef.current || metaKeySelectionRef.current && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
|
|
2645
2651
|
};
|
|
2646
2652
|
var allowRangeSelection = function allowRangeSelection(event) {
|
|
2647
2653
|
return isMultipleSelection() && event.originalEvent.shiftKey && anchorRowIndex.current !== null;
|
|
@@ -2662,6 +2668,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2662
2668
|
options = options || props.virtualScrollerOptions;
|
|
2663
2669
|
return options ? options[option] : null;
|
|
2664
2670
|
};
|
|
2671
|
+
var getProcessedDataIndex = function getProcessedDataIndex(rowIndex) {
|
|
2672
|
+
return props.lazy ? rowIndex - props.first : rowIndex;
|
|
2673
|
+
};
|
|
2665
2674
|
var findIndex = function findIndex(collection, rowData) {
|
|
2666
2675
|
return (collection || []).findIndex(function (data) {
|
|
2667
2676
|
return equals(rowData, data);
|
|
@@ -2711,6 +2720,10 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2711
2720
|
});
|
|
2712
2721
|
}
|
|
2713
2722
|
};
|
|
2723
|
+
var selectionRef = React__namespace.useRef(props.selection);
|
|
2724
|
+
React__namespace.useEffect(function () {
|
|
2725
|
+
selectionRef.current = props.selection;
|
|
2726
|
+
}, [props.selection]);
|
|
2714
2727
|
var onSingleSelection = function onSingleSelection(_ref) {
|
|
2715
2728
|
var originalEvent = _ref.originalEvent,
|
|
2716
2729
|
data = _ref.data,
|
|
@@ -2724,10 +2737,11 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2724
2737
|
return;
|
|
2725
2738
|
}
|
|
2726
2739
|
var selected = isSelected(data);
|
|
2727
|
-
var
|
|
2740
|
+
var currentSelection = selectionRef.current || [];
|
|
2741
|
+
var newSelection = currentSelection;
|
|
2728
2742
|
if (selected) {
|
|
2729
2743
|
if (toggleable) {
|
|
2730
|
-
|
|
2744
|
+
newSelection = null;
|
|
2731
2745
|
onUnselect({
|
|
2732
2746
|
originalEvent: originalEvent,
|
|
2733
2747
|
data: data,
|
|
@@ -2735,7 +2749,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2735
2749
|
});
|
|
2736
2750
|
}
|
|
2737
2751
|
} else {
|
|
2738
|
-
|
|
2752
|
+
newSelection = data;
|
|
2739
2753
|
onSelect({
|
|
2740
2754
|
originalEvent: originalEvent,
|
|
2741
2755
|
data: data,
|
|
@@ -2743,10 +2757,10 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2743
2757
|
});
|
|
2744
2758
|
}
|
|
2745
2759
|
focusOnElement(originalEvent, true);
|
|
2746
|
-
if (props.onSelectionChange &&
|
|
2760
|
+
if (props.onSelectionChange && newSelection !== currentSelection) {
|
|
2747
2761
|
props.onSelectionChange({
|
|
2748
2762
|
originalEvent: originalEvent,
|
|
2749
|
-
value:
|
|
2763
|
+
value: newSelection,
|
|
2750
2764
|
type: type
|
|
2751
2765
|
});
|
|
2752
2766
|
}
|
|
@@ -2764,11 +2778,12 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2764
2778
|
return;
|
|
2765
2779
|
}
|
|
2766
2780
|
var selected = isSelected(data);
|
|
2767
|
-
var
|
|
2781
|
+
var currentSelection = selectionRef.current || [];
|
|
2782
|
+
var newSelection = currentSelection;
|
|
2768
2783
|
if (selected) {
|
|
2769
2784
|
if (toggleable) {
|
|
2770
|
-
var selectionIndex = findIndex(
|
|
2771
|
-
|
|
2785
|
+
var selectionIndex = findIndex(currentSelection, data);
|
|
2786
|
+
newSelection = currentSelection.filter(function (val, i) {
|
|
2772
2787
|
return i !== selectionIndex;
|
|
2773
2788
|
});
|
|
2774
2789
|
onUnselect({
|
|
@@ -2776,15 +2791,15 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2776
2791
|
data: data,
|
|
2777
2792
|
type: type
|
|
2778
2793
|
});
|
|
2779
|
-
} else if (
|
|
2780
|
-
|
|
2794
|
+
} else if (currentSelection.length) {
|
|
2795
|
+
currentSelection.forEach(function (d) {
|
|
2781
2796
|
return onUnselect({
|
|
2782
2797
|
originalEvent: originalEvent,
|
|
2783
2798
|
data: d,
|
|
2784
2799
|
type: type
|
|
2785
2800
|
});
|
|
2786
2801
|
});
|
|
2787
|
-
|
|
2802
|
+
newSelection = [data];
|
|
2788
2803
|
onSelect({
|
|
2789
2804
|
originalEvent: originalEvent,
|
|
2790
2805
|
data: data,
|
|
@@ -2792,18 +2807,18 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2792
2807
|
});
|
|
2793
2808
|
}
|
|
2794
2809
|
} else {
|
|
2795
|
-
|
|
2796
|
-
|
|
2810
|
+
newSelection = utils.ObjectUtils.isObject(currentSelection) ? [currentSelection] : currentSelection;
|
|
2811
|
+
newSelection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(newSelection), [data]) : [data];
|
|
2797
2812
|
onSelect({
|
|
2798
2813
|
originalEvent: originalEvent,
|
|
2799
2814
|
data: data,
|
|
2800
2815
|
type: type
|
|
2801
2816
|
});
|
|
2802
2817
|
}
|
|
2803
|
-
if (props.onSelectionChange &&
|
|
2818
|
+
if (props.onSelectionChange && newSelection !== currentSelection) {
|
|
2804
2819
|
props.onSelectionChange({
|
|
2805
2820
|
originalEvent: originalEvent,
|
|
2806
|
-
value:
|
|
2821
|
+
value: newSelection,
|
|
2807
2822
|
type: type
|
|
2808
2823
|
});
|
|
2809
2824
|
}
|
|
@@ -2826,14 +2841,16 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2826
2841
|
var rangeStart;
|
|
2827
2842
|
var rangeEnd;
|
|
2828
2843
|
var isAllowCellSelection = allowCellSelection();
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2844
|
+
var rangeRowIndexInProcessedData = getProcessedDataIndex(rangeRowIndex.current);
|
|
2845
|
+
var anchorRowIndexInProcessedData = getProcessedDataIndex(anchorRowIndex.current);
|
|
2846
|
+
if (rangeRowIndexInProcessedData > anchorRowIndexInProcessedData) {
|
|
2847
|
+
rangeStart = anchorRowIndexInProcessedData;
|
|
2848
|
+
rangeEnd = rangeRowIndexInProcessedData;
|
|
2849
|
+
} else if (rangeRowIndexInProcessedData < anchorRowIndexInProcessedData) {
|
|
2850
|
+
rangeStart = rangeRowIndexInProcessedData;
|
|
2851
|
+
rangeEnd = anchorRowIndexInProcessedData;
|
|
2835
2852
|
} else {
|
|
2836
|
-
rangeStart = rangeEnd =
|
|
2853
|
+
rangeStart = rangeEnd = rangeRowIndexInProcessedData;
|
|
2837
2854
|
}
|
|
2838
2855
|
return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
|
|
2839
2856
|
};
|
|
@@ -2874,7 +2891,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
2874
2891
|
for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
|
|
2875
2892
|
var rowData = value[i];
|
|
2876
2893
|
var columns = props.columns;
|
|
2877
|
-
var rowIndex = props.
|
|
2894
|
+
var rowIndex = props.lazy ? i + props.first : i;
|
|
2878
2895
|
for (var j = cellRangeStart; j <= cellRangeEnd; j++) {
|
|
2879
2896
|
var field = getColumnProp(columns[j], 'field');
|
|
2880
2897
|
var _value = utils.ObjectUtils.resolveFieldData(rowData, field);
|
|
@@ -3339,7 +3356,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3339
3356
|
var emptyMessageProps = mergeProps({
|
|
3340
3357
|
className: cx('emptyMessage'),
|
|
3341
3358
|
role: 'row'
|
|
3342
|
-
},
|
|
3359
|
+
}, ptm('emptyMessage'));
|
|
3343
3360
|
var bodyCellProps = mergeProps({
|
|
3344
3361
|
colSpan: colSpan,
|
|
3345
3362
|
role: 'cell'
|
|
@@ -3349,7 +3366,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3349
3366
|
return null;
|
|
3350
3367
|
};
|
|
3351
3368
|
var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
|
|
3352
|
-
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex
|
|
3369
|
+
if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, getProcessedDataIndex(rowIndex))) {
|
|
3353
3370
|
var style = rowGroupHeaderStyle();
|
|
3354
3371
|
var toggler = props.expandableRowGroups && /*#__PURE__*/React__namespace.createElement(RowTogglerButton, {
|
|
3355
3372
|
hostName: props.hostName,
|
|
@@ -3376,14 +3393,14 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3376
3393
|
}, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
|
|
3377
3394
|
var rowGroupHeaderNameProps = mergeProps({
|
|
3378
3395
|
className: cx('rowGroupHeaderName')
|
|
3379
|
-
},
|
|
3396
|
+
}, ptm('rowGroupHeaderName'));
|
|
3380
3397
|
_content2 = /*#__PURE__*/React__namespace.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React__namespace.createElement("span", rowGroupHeaderNameProps, _content2));
|
|
3381
3398
|
}
|
|
3382
3399
|
var rowGroupHeaderProps = mergeProps({
|
|
3383
3400
|
className: cx('rowGroupHeader'),
|
|
3384
3401
|
style: style,
|
|
3385
3402
|
role: 'row'
|
|
3386
|
-
},
|
|
3403
|
+
}, ptm('rowGroupHeader'));
|
|
3387
3404
|
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupHeaderProps, _content2);
|
|
3388
3405
|
}
|
|
3389
3406
|
return null;
|
|
@@ -3403,6 +3420,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3403
3420
|
checkIcon: props.checkIcon,
|
|
3404
3421
|
collapsedRowIcon: props.collapsedRowIcon,
|
|
3405
3422
|
columns: props.columns,
|
|
3423
|
+
colsProps: colsProps,
|
|
3406
3424
|
compareSelectionBy: props.compareSelectionBy,
|
|
3407
3425
|
contextMenuSelected: contextMenuSelected,
|
|
3408
3426
|
dataKey: props.dataKey,
|
|
@@ -3491,7 +3509,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3491
3509
|
id: id,
|
|
3492
3510
|
className: cx('rowExpansion'),
|
|
3493
3511
|
role: 'row'
|
|
3494
|
-
},
|
|
3512
|
+
}, ptm('rowExpansion'));
|
|
3495
3513
|
return /*#__PURE__*/React__namespace.createElement("tr", rowExpansionProps, _content3);
|
|
3496
3514
|
}
|
|
3497
3515
|
return null;
|
|
@@ -3506,7 +3524,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3506
3524
|
var rowGroupFooterProps = mergeProps({
|
|
3507
3525
|
className: cx('rowGroupFooter'),
|
|
3508
3526
|
role: 'row'
|
|
3509
|
-
},
|
|
3527
|
+
}, ptm('rowGroupFooter'));
|
|
3510
3528
|
return /*#__PURE__*/React__namespace.createElement("tr", rowGroupFooterProps, _content4);
|
|
3511
3529
|
}
|
|
3512
3530
|
return null;
|
|
@@ -3766,28 +3784,20 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
3766
3784
|
});
|
|
3767
3785
|
TableFooter.displayName = 'TableFooter';
|
|
3768
3786
|
|
|
3769
|
-
function _defineProperties(
|
|
3770
|
-
for (var
|
|
3771
|
-
var
|
|
3772
|
-
|
|
3773
|
-
descriptor.configurable = true;
|
|
3774
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
3775
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
3787
|
+
function _defineProperties(e, r) {
|
|
3788
|
+
for (var t = 0; t < r.length; t++) {
|
|
3789
|
+
var o = r[t];
|
|
3790
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
3776
3791
|
}
|
|
3777
3792
|
}
|
|
3778
|
-
function _createClass(
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
writable: false
|
|
3783
|
-
});
|
|
3784
|
-
return Constructor;
|
|
3793
|
+
function _createClass(e, r, t) {
|
|
3794
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
3795
|
+
writable: !1
|
|
3796
|
+
}), e;
|
|
3785
3797
|
}
|
|
3786
3798
|
|
|
3787
|
-
function _classCallCheck(
|
|
3788
|
-
if (!(
|
|
3789
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3790
|
-
}
|
|
3799
|
+
function _classCallCheck(a, n) {
|
|
3800
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3791
3801
|
}
|
|
3792
3802
|
|
|
3793
3803
|
var FilterMatchMode = Object.freeze({
|
|
@@ -4194,9 +4204,17 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
4194
4204
|
var type = _ref.type,
|
|
4195
4205
|
valid = _ref.valid;
|
|
4196
4206
|
if (valid) {
|
|
4197
|
-
type === 'outside'
|
|
4207
|
+
if (type === 'outside') {
|
|
4208
|
+
if (!selfClick.current && !isTargetClicked(event.target)) {
|
|
4209
|
+
hide();
|
|
4210
|
+
}
|
|
4211
|
+
selfClick.current = false;
|
|
4212
|
+
} else if (context.hideOverlaysOnDocumentScrolling) {
|
|
4213
|
+
hide();
|
|
4214
|
+
} else if (!utils.DomHandler.isDocument(event.target)) {
|
|
4215
|
+
utils.DomHandler.alignOverlay(overlayRef.current, iconRef.current, context && context.appendTo || PrimeReact__default["default"].appendTo, false);
|
|
4216
|
+
}
|
|
4198
4217
|
}
|
|
4199
|
-
selfClick.current = false;
|
|
4200
4218
|
},
|
|
4201
4219
|
when: overlayVisibleState
|
|
4202
4220
|
}),
|
|
@@ -5686,9 +5704,9 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5686
5704
|
});
|
|
5687
5705
|
TableHeader.displayName = 'TableHeader';
|
|
5688
5706
|
|
|
5689
|
-
function _createForOfIteratorHelper(
|
|
5690
|
-
function _unsupportedIterableToArray(
|
|
5691
|
-
function _arrayLikeToArray(
|
|
5707
|
+
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; } } }; }
|
|
5708
|
+
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; } }
|
|
5709
|
+
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; }
|
|
5692
5710
|
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; }
|
|
5693
5711
|
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; }
|
|
5694
5712
|
var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -5731,14 +5749,18 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5731
5749
|
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
5732
5750
|
editingMetaState = _React$useState18[0],
|
|
5733
5751
|
setEditingMetaState = _React$useState18[1];
|
|
5734
|
-
var _React$useState19 = React__namespace.useState(
|
|
5752
|
+
var _React$useState19 = React__namespace.useState({}),
|
|
5735
5753
|
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
var _React$useState21 = React__namespace.useState(
|
|
5754
|
+
frozenEditingMetaState = _React$useState20[0],
|
|
5755
|
+
setFrozenEditingMetaState = _React$useState20[1];
|
|
5756
|
+
var _React$useState21 = React__namespace.useState(props.rows),
|
|
5739
5757
|
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
5740
|
-
|
|
5741
|
-
|
|
5758
|
+
d_rowsState = _React$useState22[0],
|
|
5759
|
+
setD_rowsState = _React$useState22[1];
|
|
5760
|
+
var _React$useState23 = React__namespace.useState({}),
|
|
5761
|
+
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
5762
|
+
d_filtersState = _React$useState24[0],
|
|
5763
|
+
setD_filtersState = _React$useState24[1];
|
|
5742
5764
|
var metaData = {
|
|
5743
5765
|
props: props,
|
|
5744
5766
|
state: {
|
|
@@ -5751,6 +5773,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
5751
5773
|
columnOrder: columnOrderState,
|
|
5752
5774
|
groupRowsSortMeta: groupRowsSortMetaState,
|
|
5753
5775
|
editingMeta: editingMetaState,
|
|
5776
|
+
frozenEditingMeta: frozenEditingMetaState,
|
|
5754
5777
|
d_rows: d_rowsState,
|
|
5755
5778
|
d_filters: d_filtersState
|
|
5756
5779
|
},
|
|
@@ -6155,6 +6178,32 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6155
6178
|
setEditingMetaState({});
|
|
6156
6179
|
}
|
|
6157
6180
|
};
|
|
6181
|
+
var onFrozenEditingMetaChange = function onFrozenEditingMetaChange(e) {
|
|
6182
|
+
var rowData = e.rowData,
|
|
6183
|
+
field = e.field,
|
|
6184
|
+
editingKey = e.editingKey,
|
|
6185
|
+
editing = e.editing;
|
|
6186
|
+
var frozenEditingMeta = _objectSpread({}, frozenEditingMetaState);
|
|
6187
|
+
var meta = frozenEditingMeta[editingKey];
|
|
6188
|
+
if (editing) {
|
|
6189
|
+
!meta && (meta = frozenEditingMeta[editingKey] = {
|
|
6190
|
+
data: _objectSpread({}, rowData),
|
|
6191
|
+
fields: []
|
|
6192
|
+
});
|
|
6193
|
+
meta.fields.push(field);
|
|
6194
|
+
} else if (meta) {
|
|
6195
|
+
var fields = meta.fields.filter(function (f) {
|
|
6196
|
+
return f !== field;
|
|
6197
|
+
});
|
|
6198
|
+
!fields.length ? delete frozenEditingMeta[editingKey] : meta.fields = fields;
|
|
6199
|
+
}
|
|
6200
|
+
setFrozenEditingMetaState(frozenEditingMeta);
|
|
6201
|
+
};
|
|
6202
|
+
var clearFrozenEditingMetaData = function clearFrozenEditingMetaData() {
|
|
6203
|
+
if (props.editMode && utils.ObjectUtils.isNotEmpty(frozenEditingMetaState)) {
|
|
6204
|
+
setFrozenEditingMetaState({});
|
|
6205
|
+
}
|
|
6206
|
+
};
|
|
6158
6207
|
var onColumnResizeStart = function onColumnResizeStart(e) {
|
|
6159
6208
|
createBeforeResizeStyleElement();
|
|
6160
6209
|
var event = e.originalEvent,
|
|
@@ -6445,6 +6494,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6445
6494
|
};
|
|
6446
6495
|
var onPageChange = function onPageChange(e) {
|
|
6447
6496
|
clearEditingMetaData();
|
|
6497
|
+
clearFrozenEditingMetaData();
|
|
6448
6498
|
if (props.onPage) {
|
|
6449
6499
|
props.onPage(createEvent(e));
|
|
6450
6500
|
} else {
|
|
@@ -6457,6 +6507,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6457
6507
|
};
|
|
6458
6508
|
var onSortChange = function onSortChange(e) {
|
|
6459
6509
|
clearEditingMetaData();
|
|
6510
|
+
clearFrozenEditingMetaData();
|
|
6460
6511
|
var event = e.originalEvent,
|
|
6461
6512
|
column = e.column,
|
|
6462
6513
|
sortableDisabledFields = e.sortableDisabledFields;
|
|
@@ -6634,6 +6685,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6634
6685
|
};
|
|
6635
6686
|
var onFilterChange = function onFilterChange(filters) {
|
|
6636
6687
|
clearEditingMetaData();
|
|
6688
|
+
clearFrozenEditingMetaData();
|
|
6637
6689
|
setD_filtersState(filters);
|
|
6638
6690
|
};
|
|
6639
6691
|
var onFilterApply = function onFilterApply(filtersToApply) {
|
|
@@ -6823,6 +6875,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
6823
6875
|
setD_filtersState(cloneFilters(props.filters));
|
|
6824
6876
|
setGroupRowsSortMetaState(null);
|
|
6825
6877
|
setEditingMetaState({});
|
|
6878
|
+
setFrozenEditingMetaState({});
|
|
6826
6879
|
if (!props.onPage) {
|
|
6827
6880
|
setFirstState(props.first);
|
|
6828
6881
|
setRowsState(props.rows);
|
|
@@ -7187,7 +7240,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7187
7240
|
dataKey: props.dataKey,
|
|
7188
7241
|
dragSelection: props.dragSelection,
|
|
7189
7242
|
editMode: props.editMode,
|
|
7190
|
-
editingMeta:
|
|
7243
|
+
editingMeta: frozenEditingMetaState,
|
|
7191
7244
|
editingRows: props.editingRows,
|
|
7192
7245
|
emptyMessage: props.emptyMessage,
|
|
7193
7246
|
expandableRowGroups: props.expandableRowGroups,
|
|
@@ -7206,7 +7259,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact$1, componentba
|
|
|
7206
7259
|
onCellUnselect: props.onCellUnselect,
|
|
7207
7260
|
onContextMenu: props.onContextMenu,
|
|
7208
7261
|
onContextMenuSelectionChange: props.onContextMenuSelectionChange,
|
|
7209
|
-
onEditingMetaChange:
|
|
7262
|
+
onEditingMetaChange: onFrozenEditingMetaChange,
|
|
7210
7263
|
onRowClick: props.onRowClick,
|
|
7211
7264
|
onRowCollapse: props.onRowCollapse,
|
|
7212
7265
|
onRowDoubleClick: props.onRowDoubleClick,
|