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