CMS-1484 TypeScript: Convert DeleteSpacesDialog to TypeScript