import * as _angular_core from '@angular/core'; import { OnInit, TemplateRef, ElementRef, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i1 from '@angular/common'; interface ConfigModel { align?: boolean; boundaryLinks: boolean; directionLinks: boolean; firstText: string; itemsPerPage: number; lastText: string; maxSize: number; nextText: string; pageBtnClass: string; previousText: string; rotate: boolean; } /** * Contain information about the page */ interface PagesModel { /** Text, which is displayed in the link */ text: string; /** Page number */ number: number; /** If `true`, then this is the current page */ active: boolean; } interface PagerModel { itemsPerPage: number; previousText: string; nextText: string; pageBtnClass: string; align: boolean; } /** * A context for the * * `customPageTemplate` * * `customNextTemplate` * * `customPreviousTemplate` * * `customFirstTemplate` * * `customLastTemplate` * inputs for link templates in case you want to override one */ interface PaginationLinkContext { /** The currently selected page number */ currentPage: number; /** If `true`, the current link is disabled */ disabled: boolean; } /** * A context for the `pageTemplate` inputs for link template */ interface PaginationNumberLinkContext extends PaginationLinkContext { /** Contain the page information */ $implicit: PagesModel; } /** Provides default values for Pagination and pager components */ declare class PaginationConfig { main: Partial; pager: PagerModel; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } interface PageChangedEvent { itemsPerPage: number; page: number; } declare class PaginationComponent implements ControlValueAccessor, OnInit { private elementRef; private changeDetection; config?: Partial; /** if `true` aligns each link to the sides of pager */ align: _angular_core.InputSignal; /** limit number for page links in pager */ maxSize: _angular_core.InputSignal; /** if false first and last buttons will be hidden */ boundaryLinks: _angular_core.InputSignal; /** if false previous and next buttons will be hidden */ directionLinks: _angular_core.InputSignal; /** first button text */ firstText: _angular_core.InputSignal; /** previous button text */ previousText: _angular_core.InputSignal; /** next button text */ nextText: _angular_core.InputSignal; /** last button text */ lastText: _angular_core.InputSignal; /** if true current page will in the middle of pages list */ rotate: _angular_core.InputSignal; /** add class to */ pageBtnClass: _angular_core.InputSignal; /** if true pagination component will be disabled */ disabled: _angular_core.InputSignal; /** custom template for page link */ customPageTemplate: _angular_core.InputSignal | undefined>; /** custom template for next link */ customNextTemplate: _angular_core.InputSignal | undefined>; /** custom template for previous link */ customPreviousTemplate: _angular_core.InputSignal | undefined>; /** custom template for first link */ customFirstTemplate: _angular_core.InputSignal | undefined>; /** custom template for last link */ customLastTemplate: _angular_core.InputSignal | undefined>; /** maximum number of items per page. If value less than 1 will display all items on one page */ itemsPerPageInput: _angular_core.InputSignal; /** total number of items in all pages */ totalItemsInput: _angular_core.InputSignal; /** fired when total pages count changes, $event:number equals to total pages count */ numPages: _angular_core.OutputEmitterRef; /** fired when page was changed, $event:{page, itemsPerPage} equals to object * with current page index and number of items per page */ pageChanged: _angular_core.OutputEmitterRef; onChange: Function; onTouched: Function; classMap: string; pages?: PagesModel[]; protected inited: boolean; constructor(elementRef: ElementRef, paginationConfig: PaginationConfig, changeDetection: ChangeDetectorRef); protected _itemsPerPage: number; get itemsPerPage(): number; protected _totalItems: number; get totalItems(): number; protected _totalPages: number; get totalPages(): number; set totalPages(v: number); protected _page: number; get page(): number; set page(value: number); configureOptions(config: Partial): void; ngOnInit(): void; protected _maxSize: number; protected _rotate: boolean; protected _boundaryLinks: boolean; protected _directionLinks: boolean; protected _pageBtnClass: string; writeValue(value: number): void; getText(key: string): string; noPrevious(): boolean; noNext(): boolean; registerOnChange(fn: () => void): void; registerOnTouched(fn: () => void): void; selectPage(page: number, event?: Event): void; protected makePage(num: number, text: string, active: boolean): { number: number; text: string; active: boolean; }; protected getPages(currentPage: number, totalPages: number): PagesModel[]; protected calculateTotalPages(): number; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class PagerComponent implements ControlValueAccessor, OnInit { private elementRef; private changeDetection; config?: Partial; /** if `true` aligns each link to the sides of pager */ align: _angular_core.InputSignal; /** limit number for page links in pager */ maxSize: _angular_core.InputSignal; /** if false first and last buttons will be hidden */ boundaryLinks: _angular_core.InputSignal; /** if false previous and next buttons will be hidden */ directionLinks: _angular_core.InputSignal; /** first button text */ firstText: _angular_core.InputSignal; /** previous button text */ previousText: _angular_core.InputSignal; /** next button text */ nextText: _angular_core.InputSignal; /** last button text */ lastText: _angular_core.InputSignal; /** if true current page will in the middle of pages list */ rotate: _angular_core.InputSignal; /** add class to */ pageBtnClass: _angular_core.InputSignal; /** if true pagination component will be disabled */ disabled: _angular_core.InputSignal; /** maximum number of items per page. If value less than 1 will display all items on one page */ itemsPerPageInput: _angular_core.InputSignal; /** total number of items in all pages */ totalItemsInput: _angular_core.InputSignal; /** fired when total pages count changes, $event:number equals to total pages count */ numPages: _angular_core.OutputEmitterRef; /** fired when page was changed, $event:{page, itemsPerPage} equals to * object with current page index and number of items per page */ pageChanged: _angular_core.OutputEmitterRef; onChange: Function; onTouched: Function; classMap: string; pages?: PagesModel[]; protected inited: boolean; constructor(elementRef: ElementRef, paginationConfig: PaginationConfig, changeDetection: ChangeDetectorRef); protected _itemsPerPage: number; get itemsPerPage(): number; protected _totalItems: number; get totalItems(): number; protected _totalPages: number; get totalPages(): number; set totalPages(v: number); protected _page: number; get page(): number; set page(value: number); configureOptions(config: Partial): void; protected _maxSize: number; protected _rotate: boolean; protected _boundaryLinks: boolean; protected _directionLinks: boolean; protected _pageBtnClass: string; ngOnInit(): void; writeValue(value: number): void; getText(key: string): string; noPrevious(): boolean; noNext(): boolean; registerOnChange(fn: () => void): void; registerOnTouched(fn: () => void): void; selectPage(page: number, event?: Event): void; protected makePage(num: number, text: string, active: boolean): { number: number; text: string; active: boolean; }; protected getPages(currentPage: number, totalPages: number): PagesModel[]; protected calculateTotalPages(): number; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class PaginationModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { PagerComponent, PaginationComponent, PaginationConfig, PaginationModule }; export type { PageChangedEvent, PagesModel, PaginationLinkContext, PaginationNumberLinkContext };