UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

61 lines (56 loc) 2.38 kB
import * as i0 from '@angular/core'; import { OnChanges, SimpleChanges } from '@angular/core'; import { NzConfigKey } from 'ng-zorro-antd/core/config'; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ interface SimpleRect { top: number; left: number; width?: number; height?: number; bottom?: number; } declare class NzAffixComponent implements OnChanges { private readonly scrollSrv; private readonly ngZone; private readonly platform; private readonly renderer; private readonly nzResizeObserver; private readonly dir; private readonly destroyRef; private readonly document; private readonly placeholderNode; readonly _nzModuleName: NzConfigKey; private fixedEl; nzTarget?: string | Element | Window; nzOffsetTop?: null | number; nzOffsetBottom?: null | number; readonly nzChange: i0.OutputEmitterRef<boolean>; private affixStyle?; private placeholderStyle?; private positionChangeSubscription; private offsetChanged$; private timeout?; private get target(); constructor(); ngOnChanges(changes: SimpleChanges): void; private registerListeners; private removeListeners; getOffset(element: Element, target: Element | Window | undefined): SimpleRect; private setAffixStyle; private setPlaceholderStyle; private syncPlaceholderStyle; updatePosition(e: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzAffixComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzAffixComponent, "nz-affix", ["nzAffix"], { "nzTarget": { "alias": "nzTarget"; "required": false; }; "nzOffsetTop": { "alias": "nzOffsetTop"; "required": false; }; "nzOffsetBottom": { "alias": "nzOffsetBottom"; "required": false; }; }, { "nzChange": "nzChange"; }, never, ["*"], true, never>; static ngAcceptInputType_nzOffsetTop: unknown; static ngAcceptInputType_nzOffsetBottom: unknown; } declare class NzAffixModule { static ɵfac: i0.ɵɵFactoryDeclaration<NzAffixModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NzAffixModule, never, [typeof NzAffixComponent], [typeof NzAffixComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<NzAffixModule>; } export { NzAffixComponent, NzAffixModule };