1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. 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 { ElementSchemaRegistry } from '@angular/compiler';
|
9
|
import { SchemaMetadata, SecurityContext } from '@angular/core';
|
10
|
export declare class MockSchemaRegistry implements ElementSchemaRegistry {
|
11
|
existingProperties: {
|
12
|
[key: string]: boolean;
|
13
|
};
|
14
|
attrPropMapping: {
|
15
|
[key: string]: string;
|
16
|
};
|
17
|
existingElements: {
|
18
|
[key: string]: boolean;
|
19
|
};
|
20
|
invalidProperties: Array<string>;
|
21
|
invalidAttributes: Array<string>;
|
22
|
constructor(existingProperties: {
|
23
|
[key: string]: boolean;
|
24
|
}, attrPropMapping: {
|
25
|
[key: string]: string;
|
26
|
}, existingElements: {
|
27
|
[key: string]: boolean;
|
28
|
}, invalidProperties: Array<string>, invalidAttributes: Array<string>);
|
29
|
hasProperty(tagName: string, property: string, schemas: SchemaMetadata[]): boolean;
|
30
|
hasElement(tagName: string, schemaMetas: SchemaMetadata[]): boolean;
|
31
|
allKnownElementNames(): string[];
|
32
|
securityContext(selector: string, property: string, isAttribute: boolean): SecurityContext;
|
33
|
getMappedPropName(attrName: string): string;
|
34
|
getDefaultComponentElementName(): string;
|
35
|
validateProperty(name: string): {
|
36
|
error: boolean;
|
37
|
msg?: string;
|
38
|
};
|
39
|
validateAttribute(name: string): {
|
40
|
error: boolean;
|
41
|
msg?: string;
|
42
|
};
|
43
|
normalizeAnimationStyleProperty(propName: string): string;
|
44
|
normalizeAnimationStyleValue(camelCaseProp: string, userProvidedProp: string, val: string | number): {
|
45
|
error: string;
|
46
|
value: string;
|
47
|
};
|
48
|
}
|