import * as i0 from '@angular/core'; import { TemplateRef, EventEmitter } from '@angular/core'; import { CancelableEventArgs, IBaseEventArgs, OverlaySettings, IPaginatorResourceStrings } from 'igniteui-angular/core'; interface IPageEventArgs extends IBaseEventArgs { previous: number; current: number; } interface IPageCancellableEventArgs extends CancelableEventArgs { current: number; next: number; } declare class IgxPaginatorDirective { template: TemplateRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** @hidden @internal */ declare abstract class IgxPaginatorToken { abstract page: number; abstract perPage: number; abstract totalRecords: number; abstract pageChange: EventEmitter; abstract paginate(val: number): void; } declare class IgxPaginatorContentDirective { /** * @internal * @hidden */ cssClass: string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Paginator component description * @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxPivotGridComponent, * */ declare class IgxPaginatorComponent implements IgxPaginatorToken { private elementRef; private cdr; /** * @hidden * @internal */ customContent: IgxPaginatorContentDirective; /** * Emitted when `perPage` property value of the paginator is changed. * * @example * ```html * * ``` * ```typescript * public onPerPageChange(perPage: number) { * this.perPage = perPage; * } * ``` */ perPageChange: EventEmitter; /** * Emitted after the current page is changed. * * @example * ```html * * ``` * ```typescript * public onPageChange(page: number) { * this.currentPage = page; * } * ``` */ pageChange: EventEmitter; /** * Emitted before paging is performed. * * @remarks * Returns an object consisting of the current and next pages. * @example * ```html * * ``` */ paging: EventEmitter; /** * Emitted after paging is performed. * * @remarks * Returns an object consisting of the previous and current pages. * @example * ```html * * ``` */ pagingDone: EventEmitter; /** * Total pages calculated from totalRecords and perPage */ totalPages: number; protected _page: number; protected _totalRecords: number; protected _selectOptions: number[]; protected _perPage: number; private _resourceStrings; private _overlaySettings; private defaultSelectValues; /** @hidden @internal */ cssClass: string; /** * Gets/Sets the current page of the paginator. * The default is 0. * ```typescript * let page = this.paginator.page; * ``` * * @memberof IgxPaginatorComponent */ get page(): number; set page(value: number); /** * Gets/Sets the number of visible items per page in the paginator. * The default is 15. * ```typescript * let itemsPerPage = this.paginator.perPage; * ``` * * @memberof IgxPaginatorComponent */ get perPage(): number; set perPage(value: number); /** * Sets the total records. * ```typescript * let totalRecords = this.paginator.totalRecords; * ``` * * @memberof IgxPaginatorComponent */ get totalRecords(): number; set totalRecords(value: number); /** * Sets custom options in the select of the paginator * ```typescript * let options = this.paginator.selectOptions; * ``` * * @memberof IgxPaginatorComponent */ get selectOptions(): Array; set selectOptions(value: Array); /** * Sets custom OverlaySettings. * ```html * * ``` */ get overlaySettings(): OverlaySettings; set overlaySettings(value: OverlaySettings); /** * An accessor that sets the resource strings. * By default it uses EN resources. */ set resourceStrings(value: IPaginatorResourceStrings); /** * An accessor that returns the resource strings. */ get resourceStrings(): IPaginatorResourceStrings; /** * Returns if the current page is the last page. * ```typescript * const lastPage = this.paginator.isLastPage; * ``` */ get isLastPage(): boolean; /** * Returns if the current page is the first page. * ```typescript * const lastPage = this.paginator.isFirstPage; * ``` */ get isFirstPage(): boolean; /** * Returns if the first pager buttons should be disabled * @hidden * @deprecated in version 18.1.0. Use the `isFirstPage` property instead. */ get isFirstPageDisabled(): boolean; /** * Returns if the last pager buttons should be disabled * @hidden * @deprecated in version 18.1.0. Use the `isLastPage` property instead. */ get isLastPageDisabled(): boolean; get nativeElement(): any; /** * Goes to the next page of the `IgxPaginatorComponent`, if the paginator is not already at the last page. * ```typescript * this.paginator.nextPage(); * ``` * * @memberof IgxPaginatorComponent */ nextPage(): void; /** * Goes to the previous page of the `IgxPaginatorComponent`, if the paginator is not already at the first page. * ```typescript * this.paginator.previousPage(); * ``` * * @memberof IgxPaginatorComponent */ previousPage(): void; /** * Goes to the desired page index. * ```typescript * this.paginator.paginate(1); * ``` * * @param val * @memberof IgxPaginatorComponent */ paginate(val: number): void; private sortUniqueOptions; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IgxPageSizeSelectorComponent { paginator: IgxPaginatorComponent; /** * @internal * @hidden */ cssClass: string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IgxPageNavigationComponent { paginator: IgxPaginatorComponent; /** * @internal * @hidden */ cssClass: string; /** * Sets the `role` attribute of the element. */ role: string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const IGX_PAGINATOR_DIRECTIVES: readonly [typeof IgxPaginatorComponent, typeof IgxPageNavigationComponent, typeof IgxPageSizeSelectorComponent, typeof IgxPaginatorContentDirective, typeof IgxPaginatorDirective]; /** * @hidden * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components */ declare class IgxPaginatorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { IGX_PAGINATOR_DIRECTIVES, IgxPageNavigationComponent, IgxPageSizeSelectorComponent, IgxPaginatorComponent, IgxPaginatorContentDirective, IgxPaginatorDirective, IgxPaginatorModule, IgxPaginatorToken }; export type { IPageCancellableEventArgs, IPageEventArgs };