UNPKG

@lightweightform/theme-common

Version:

Common utilities for Lightweightform themes

41 lines (40 loc) 1.91 kB
/** * Removes the placeholder content generated by the Angular CLI (as long as it * is wrapped by the "placeholder comments" generated by the CLI). * @param content HTML file content. * @returns HTML file without the placeholder content. */ export declare function removeHtmlAppComponentPlaceholder(content: string): string; /** * Removes the `<router-outlet>` generated by the Angular CLI for the app * component (as long as it is in the expected position: at the end of the * file). * @param content HTML file content. * @returns HTML file content without the CLI generated router outlet. */ export declare function removeHtmlAppComponentRouterOutlet(content: string): string; /** * Removes the default CLI generated content in the HTML file of a module. * @param content HTML file content. * @param moduleName Name of the module. * @returns HTML file content without the CLI generated default content. */ export declare function removeHtmlModuleDefaultContent(content: string, moduleName: string): string; /** * Whether the provided HTML file is an unmodified version of the Angular CLI * generated app component (ignores added spaces and content modified within the * "template" comments). * @param content HTML file content. * @returns Whether the HTML file content is an unmodified version of the CLI * generated app component. */ export declare function isUnmodifiedHtmlAppComponent(content: string): boolean; /** * Whether the provided HTML file is an unmodified version of the Angular CLI * generated module content (ignores added spaces). * @param content HTML file content. * @param moduleName Name of the module. * @returns Whether the HTML file content is an unmodified version of the CLI * generated module content. */ export declare function isUnmodifiedHtmlModuleComponent(content: string, moduleName: string): boolean;