[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { CompileDirectiveMetadata, CompileTemplateMetadata } from './compile_metadata';
|
---|
| 9 | import { CompilerConfig } from './config';
|
---|
| 10 | import { ViewEncapsulation } from './core';
|
---|
| 11 | import { HtmlParser } from './ml_parser/html_parser';
|
---|
| 12 | import { ResourceLoader } from './resource_loader';
|
---|
| 13 | import { UrlResolver } from './url_resolver';
|
---|
| 14 | import { SyncAsync } from './util';
|
---|
| 15 | export interface PrenormalizedTemplateMetadata {
|
---|
| 16 | ngModuleType: any;
|
---|
| 17 | componentType: any;
|
---|
| 18 | moduleUrl: string;
|
---|
| 19 | template: string | null;
|
---|
| 20 | templateUrl: string | null;
|
---|
| 21 | styles: string[];
|
---|
| 22 | styleUrls: string[];
|
---|
| 23 | interpolation: [string, string] | null;
|
---|
| 24 | encapsulation: ViewEncapsulation | null;
|
---|
| 25 | animations: any[];
|
---|
| 26 | preserveWhitespaces: boolean | null;
|
---|
| 27 | }
|
---|
| 28 | export declare class DirectiveNormalizer {
|
---|
| 29 | private _resourceLoader;
|
---|
| 30 | private _urlResolver;
|
---|
| 31 | private _htmlParser;
|
---|
| 32 | private _config;
|
---|
| 33 | private _resourceLoaderCache;
|
---|
| 34 | constructor(_resourceLoader: ResourceLoader, _urlResolver: UrlResolver, _htmlParser: HtmlParser, _config: CompilerConfig);
|
---|
| 35 | clearCache(): void;
|
---|
| 36 | clearCacheFor(normalizedDirective: CompileDirectiveMetadata): void;
|
---|
| 37 | private _fetch;
|
---|
| 38 | normalizeTemplate(prenormData: PrenormalizedTemplateMetadata): SyncAsync<CompileTemplateMetadata>;
|
---|
| 39 | private _preParseTemplate;
|
---|
| 40 | private _preparseLoadedTemplate;
|
---|
| 41 | private _normalizeTemplateMetadata;
|
---|
| 42 | private _normalizeLoadedTemplateMetadata;
|
---|
| 43 | private _inlineStyles;
|
---|
| 44 | private _loadMissingExternalStylesheets;
|
---|
| 45 | private _normalizeStylesheet;
|
---|
| 46 | }
|
---|