CMS-1657 Improve TypeScript-ed api DetailPanel