You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
/** @docs-private */
|
|
export declare type Constructor<T> = new (...args: any[]) => T;
|
|
/**
|
|
* Interface for a mixin to provide a directive with a function that checks if the sticky input has
|
|
* been changed since the last time the function was called. Essentially adds a dirty-check to the
|
|
* sticky value.
|
|
* @docs-private
|
|
*/
|
|
export interface CanStick {
|
|
/** Whether sticky positioning should be applied. */
|
|
sticky: boolean;
|
|
/** Whether the sticky input has changed since it was last checked. */
|
|
_hasStickyChanged: boolean;
|
|
/** Whether the sticky value has changed since this was last called. */
|
|
hasStickyChanged(): boolean;
|
|
/** Resets the dirty check for cases where the sticky state has been used without checking. */
|
|
resetStickyChanged(): void;
|
|
}
|
|
/** @docs-private */
|
|
export declare type CanStickCtor = Constructor<CanStick>;
|
|
/**
|
|
* Mixin to provide a directive with a function that checks if the sticky input has been
|
|
* changed since the last time the function was called. Essentially adds a dirty-check to the
|
|
* sticky value.
|
|
* @docs-private
|
|
*/
|
|
export declare function mixinHasStickyInput<T extends Constructor<{}>>(base: T): CanStickCtor & T;
|