function onBeforeDelete({
    cellSelectionRangeData,
    selectionRangeData,
    colgroups,
    allRowKeys,
}) {
    const { leftColKey, rightColKey, topRowKey, bottomRowKey } =
        cellSelectionRangeData;

    const selectionRangeIndexes = {
        startColIndex: colgroups.findIndex((x) => x.key === leftColKey),
        endColIndex: colgroups.findIndex((x) => x.key === rightColKey),
        startRowIndex: allRowKeys.indexOf(topRowKey),
        endRowIndex: allRowKeys.indexOf(bottomRowKey),
    };

    const selectionRangeKeys = {
        startColKey: leftColKey,
        endColKey: rightColKey,
        startRowKey: topRowKey,
        endRowKey: bottomRowKey,
    };

    const response = {
        selectionRangeIndexes,
        selectionRangeKeys,
        data: selectionRangeData,
    };

    return response;
}
@onBeforeDelete
@desc on before delete
@param {Event} event
@return {selectionRangeIndexes,selectionRangeKeys,data}