[6a3a178] | 1 | import * as o from '../../output/output_ast';
|
---|
| 2 | import { R3CompiledExpression } from '../util';
|
---|
| 3 | import { R3ComponentMetadata } from '../view/api';
|
---|
| 4 | import { ParsedTemplate } from '../view/template';
|
---|
| 5 | import { DefinitionMap } from '../view/util';
|
---|
| 6 | import { R3DeclareComponentMetadata } from './api';
|
---|
| 7 | export interface DeclareComponentTemplateInfo {
|
---|
| 8 | /**
|
---|
| 9 | * The string contents of the template.
|
---|
| 10 | *
|
---|
| 11 | * This is the "logical" template string, after expansion of any escaped characters (for inline
|
---|
| 12 | * templates). This may differ from the actual template bytes as they appear in the .ts file.
|
---|
| 13 | */
|
---|
| 14 | content: string;
|
---|
| 15 | /**
|
---|
| 16 | * A full path to the file which contains the template.
|
---|
| 17 | *
|
---|
| 18 | * This can be either the original .ts file if the template is inline, or the .html file if an
|
---|
| 19 | * external file was used.
|
---|
| 20 | */
|
---|
| 21 | sourceUrl: string;
|
---|
| 22 | /**
|
---|
| 23 | * Whether the template was inline (using `template`) or external (using `templateUrl`).
|
---|
| 24 | */
|
---|
| 25 | isInline: boolean;
|
---|
| 26 | /**
|
---|
| 27 | * If the template was defined inline by a direct string literal, then this is that literal
|
---|
| 28 | * expression. Otherwise `null`, if the template was not defined inline or was not a literal.
|
---|
| 29 | */
|
---|
| 30 | inlineTemplateLiteralExpression: o.Expression | null;
|
---|
| 31 | }
|
---|
| 32 | /**
|
---|
| 33 | * Compile a component declaration defined by the `R3ComponentMetadata`.
|
---|
| 34 | */
|
---|
| 35 | export declare function compileDeclareComponentFromMetadata(meta: R3ComponentMetadata, template: ParsedTemplate, additionalTemplateInfo: DeclareComponentTemplateInfo): R3CompiledExpression;
|
---|
| 36 | /**
|
---|
| 37 | * Gathers the declaration fields for a component into a `DefinitionMap`.
|
---|
| 38 | */
|
---|
| 39 | export declare function createComponentDefinitionMap(meta: R3ComponentMetadata, template: ParsedTemplate, templateInfo: DeclareComponentTemplateInfo): DefinitionMap<R3DeclareComponentMetadata>;
|
---|