@@ -134,6 +134,9 @@ export const Compiler: {
134134 aggregate(parts : (string | ViewBehaviorFactory )[], policy ? : DOMPolicy ): ViewBehaviorFactory ;
135135};
136136
137+ // @public
138+ export type ComposableStyles = string | ElementStyles | CSSStyleSheet ;
139+
137140// @public
138141export type Constructable <T = {}> = {
139142 new (... args : any []): T ;
@@ -196,15 +199,12 @@ export interface DOMPolicy {
196199// @public
197200export type DOMSink = (target : Node , aspectName : string , value : any , ... args : any []) => void ;
198201
199- // Warning: (ae-forgotten-export) The symbol "HostController" needs to be exported by the entry point index.d.ts
200- //
201202// @public
202203export class ElementController <TElement extends HTMLElement = HTMLElement > implements Notifier , HostController <TElement > {
203204 // @internal
204205 constructor (element : TElement , definition : FASTElementDefinition );
205206 addBehavior(behavior : HostBehavior <TElement >): void ;
206207 addStyles(styles : ElementStyles | HTMLStyleElement | null | undefined ): void ;
207- // Warning: (ae-forgotten-export) The symbol "HostBehavior" needs to be exported by the entry point index.d.ts
208208 protected behaviors: Map <HostBehavior <TElement >, number > | null ;
209209 protected bindObservables(): void ;
210210 protected captureBoundObservables(): void ;
@@ -223,7 +223,6 @@ export class ElementController<TElement extends HTMLElement = HTMLElement> imple
223223 get isConnected(): boolean ;
224224 readonly isHydrated: Promise <boolean >;
225225 readonly isPrerendered: Promise <boolean >;
226- // Warning: (ae-forgotten-export) The symbol "ElementStyles" needs to be exported by the entry point index.d.ts
227226 get mainStyles(): ElementStyles | null ;
228227 set mainStyles(value : ElementStyles | null );
229228 protected needsInitialization: boolean ;
@@ -263,6 +262,25 @@ export const elements: (selector?: string) => ElementsFilter;
263262// @public
264263export type ElementsFilter = (value : Node , index ? : number , array ? : Node []) => boolean ;
265264
265+ // @public
266+ export class ElementStyles {
267+ constructor (styles : ReadonlyArray <ComposableStyles >);
268+ // @internal (undocumented)
269+ addStylesTo(target : StyleTarget ): void ;
270+ // @internal (undocumented)
271+ isAttachedTo(target : StyleTarget ): boolean ;
272+ static normalize(styles : ComposableStyles | ComposableStyles [] | undefined ): ElementStyles | undefined ;
273+ // @internal (undocumented)
274+ removeStylesFrom(target : StyleTarget ): void ;
275+ static setDefaultStrategy(Strategy : ConstructibleStyleStrategy ): void ;
276+ get strategy(): StyleStrategy ;
277+ // (undocumented)
278+ readonly styles: ReadonlyArray <ComposableStyles >;
279+ static readonly supportsAdoptedStyleSheets: boolean ;
280+ // Warning: (ae-forgotten-export) The symbol "ConstructibleStyleStrategy" needs to be exported by the entry point index.d.ts
281+ withStrategy(Strategy : ConstructibleStyleStrategy ): this ;
282+ }
283+
266284// @public
267285export interface ElementView <TSource = any , TParent = any > extends View <TSource , TParent > {
268286 appendTo(node : Node ): void ;
@@ -393,6 +411,24 @@ export const fastElementRegistry: TypeRegistry<FASTElementDefinition>;
393411// @public
394412export type FASTElementTemplateResolver <TType extends Constructable <HTMLElement > = Constructable <HTMLElement >> = (definition : FASTElementDefinition <TType >) => ElementViewTemplate <InstanceType <TType >> | Promise <ElementViewTemplate <InstanceType <TType >>>;
395413
414+ // @public
415+ export interface HostBehavior <TSource = any > {
416+ addedCallback? (controller : HostController <TSource >): void ;
417+ connectedCallback? (controller : HostController <TSource >): void ;
418+ disconnectedCallback? (controller : HostController <TSource >): void ;
419+ removedCallback? (controller : HostController <TSource >): void ;
420+ }
421+
422+ // @public
423+ export interface HostController <TSource = any > extends ExpressionController <TSource > {
424+ addBehavior(behavior : HostBehavior <TSource >): void ;
425+ addStyles(styles : ElementStyles | HTMLStyleElement | null | undefined ): void ;
426+ readonly isConnected: boolean ;
427+ mainStyles: ElementStyles | null ;
428+ removeBehavior(behavior : HostBehavior <TSource >, force ? : boolean ): void ;
429+ removeStyles(styles : ElementStyles | HTMLStyleElement | null | undefined ): void ;
430+ }
431+
396432// @public
397433export const html: HTMLTemplateTag ;
398434
@@ -638,7 +674,6 @@ export interface PartialFASTElementDefinition<TType extends Constructable<HTMLEl
638674 readonly name: string ;
639675 readonly registry? : CustomElementRegistry ;
640676 readonly shadowOptions? : Partial <ShadowRootOptions > | null ;
641- // Warning: (ae-forgotten-export) The symbol "ComposableStyles" needs to be exported by the entry point index.d.ts
642677 readonly styles? : ComposableStyles | ComposableStyles [];
643678 readonly template? : ElementViewTemplate <InstanceType <TType >> | FASTElementTemplateResolver <TType >;
644679}
@@ -699,8 +734,6 @@ export function repeat<TSource = any, TArray extends ReadonlyArray<any> = Readon
699734export class RepeatBehavior <TSource = any > implements ViewBehavior , Subscriber {
700735 constructor (directive : RepeatDirective );
701736 bind(controller : ViewController ): void ;
702- // Warning: (ae-forgotten-export) The symbol "Splice" needs to be exported by the entry point index.d.ts
703- // Warning: (ae-forgotten-export) The symbol "Sort" needs to be exported by the entry point index.d.ts
704737 handleChange(source : any , args : Splice [] | Sort [] | ExpressionObserver ): void ;
705738 unbind(): void ;
706739 // @internal (undocumented)
@@ -749,6 +782,13 @@ export class SlottedDirective extends NodeObservationDirective<SlottedDirectiveO
749782export interface SlottedDirectiveOptions <T = any > extends NodeBehaviorOptions <T >, AssignedNodesOptions {
750783}
751784
785+ // @public
786+ export class Sort {
787+ constructor (sorted ? : number [] | undefined );
788+ // (undocumented)
789+ sorted? : number [] | undefined ;
790+ }
791+
752792// @public
753793export const SourceLifetime: Readonly <{
754794 readonly unknown: undefined ;
@@ -758,6 +798,19 @@ export const SourceLifetime: Readonly<{
758798// @public
759799export type SourceLifetime = (typeof SourceLifetime )[keyof typeof SourceLifetime ];
760800
801+ // @public
802+ export class Splice {
803+ constructor (index : number , removed : any [], addedCount : number );
804+ // (undocumented)
805+ addedCount: number ;
806+ adjustTo(array : any []): this ;
807+ // (undocumented)
808+ index: number ;
809+ // (undocumented)
810+ removed: any [];
811+ reset? : boolean ;
812+ }
813+
761814// @public
762815export const enum Stages {
763816 connected = 1 ,
@@ -776,6 +829,20 @@ export abstract class StatelessAttachedAttributeDirective<TOptions> implements H
776829 protected options: TOptions ;
777830}
778831
832+ // @public
833+ export interface StyleStrategy {
834+ addStylesTo(target : StyleTarget ): void ;
835+ removeStylesFrom(target : StyleTarget ): void ;
836+ }
837+
838+ // @public
839+ export interface StyleTarget extends Pick <Node , " getRootNode" > {
840+ adoptedStyleSheets? : CSSStyleSheet [];
841+ append(styles : HTMLStyleElement ): void ;
842+ querySelectorAll<E extends Element = Element >(selectors : string ): NodeListOf <E >;
843+ removeChild(styles : HTMLStyleElement ): void ;
844+ }
845+
779846// @public
780847export interface Subscriber {
781848 handleChange(subject : any , args : any ): void ;
0 commit comments