CMS-1501 TypeScript: Convert ContextMenu to TypeScript