parent
							
								
									853faf4c71
								
							
						
					
					
						commit
						bb0f95b6fb
					
				| @ -1,7 +1,5 @@ | |||||||
| /** @experimental */ |  | ||||||
| export declare function createCustomElement<P>(component: Type<any>, config: NgElementConfig): NgElementConstructor<P>; | export declare function createCustomElement<P>(component: Type<any>, config: NgElementConfig): NgElementConstructor<P>; | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export declare abstract class NgElement extends HTMLElement { | export declare abstract class NgElement extends HTMLElement { | ||||||
|     protected ngElementEventsSubscription: Subscription | null; |     protected ngElementEventsSubscription: Subscription | null; | ||||||
|     protected ngElementStrategy: NgElementStrategy; |     protected ngElementStrategy: NgElementStrategy; | ||||||
| @ -10,19 +8,16 @@ export declare abstract class NgElement extends HTMLElement { | |||||||
|     abstract disconnectedCallback(): void; |     abstract disconnectedCallback(): void; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export interface NgElementConfig { | export interface NgElementConfig { | ||||||
|     injector: Injector; |     injector: Injector; | ||||||
|     strategyFactory?: NgElementStrategyFactory; |     strategyFactory?: NgElementStrategyFactory; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export interface NgElementConstructor<P> { | export interface NgElementConstructor<P> { | ||||||
|     readonly observedAttributes: string[]; |     readonly observedAttributes: string[]; | ||||||
|     new (injector: Injector): NgElement & WithProperties<P>; |     new (injector: Injector): NgElement & WithProperties<P>; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export interface NgElementStrategy { | export interface NgElementStrategy { | ||||||
|     events: Observable<NgElementStrategyEvent>; |     events: Observable<NgElementStrategyEvent>; | ||||||
|     connect(element: HTMLElement): void; |     connect(element: HTMLElement): void; | ||||||
| @ -31,21 +26,17 @@ export interface NgElementStrategy { | |||||||
|     setInputValue(propName: string, value: string): void; |     setInputValue(propName: string, value: string): void; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export interface NgElementStrategyEvent { | export interface NgElementStrategyEvent { | ||||||
|     name: string; |     name: string; | ||||||
|     value: any; |     value: any; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export interface NgElementStrategyFactory { | export interface NgElementStrategyFactory { | ||||||
|     create(injector: Injector): NgElementStrategy; |     create(injector: Injector): NgElementStrategy; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export declare const VERSION: Version; | export declare const VERSION: Version; | ||||||
| 
 | 
 | ||||||
| /** @experimental */ |  | ||||||
| export declare type WithProperties<P> = { | export declare type WithProperties<P> = { | ||||||
|     [property in keyof P]: P[property]; |     [property in keyof P]: P[property]; | ||||||
| }; | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user