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