UNPKG

41.8 kBSource Map (JSON)View Raw
1{"version":3,"file":"ngx-pagination.mjs","sources":["../../../projects/ngx-pagination/src/lib/pagination.service.ts","../../../projects/ngx-pagination/src/lib/paginate.pipe.ts","../../../projects/ngx-pagination/src/lib/template.ts","../../../projects/ngx-pagination/src/lib/pagination-controls.directive.ts","../../../projects/ngx-pagination/src/lib/pagination-controls.component.ts","../../../projects/ngx-pagination/src/lib/ngx-pagination.module.ts","../../../projects/ngx-pagination/src/public-api.ts","../../../projects/ngx-pagination/src/ngx-pagination.ts"],"sourcesContent":["import {EventEmitter} from '@angular/core'\r\nimport {PaginationInstance} from './pagination-instance';\r\n\r\nexport class PaginationService {\r\n\r\n public change: EventEmitter<string> = new EventEmitter<string>();\r\n\r\n private instances: { [id: string]: PaginationInstance } = {};\r\n private DEFAULT_ID = 'DEFAULT_PAGINATION_ID';\r\n\r\n public defaultId(): string { return this.DEFAULT_ID }\r\n\r\n /**\r\n * Register a PaginationInstance with this service. Returns a\r\n * boolean value signifying whether the instance is new or\r\n * updated (true = new or updated, false = unchanged).\r\n */\r\n public register(instance: PaginationInstance): boolean {\r\n if (instance.id == null) {\r\n instance.id = this.DEFAULT_ID;\r\n }\r\n\r\n if (!this.instances[instance.id]) {\r\n this.instances[instance.id] = instance;\r\n return true;\r\n } else {\r\n return this.updateInstance(instance);\r\n }\r\n }\r\n\r\n /**\r\n * Check each property of the instance and update any that have changed. Return\r\n * true if any changes were made, else return false.\r\n */\r\n private updateInstance(instance: PaginationInstance): boolean {\r\n let changed = false;\r\n for (let prop in this.instances[instance.id]) {\r\n if (instance[prop] !== this.instances[instance.id][prop]) {\r\n this.instances[instance.id][prop] = instance[prop];\r\n changed = true;\r\n }\r\n }\r\n return changed;\r\n }\r\n\r\n /**\r\n * Returns the current page number.\r\n */\r\n public getCurrentPage(id: string): number {\r\n if (this.instances[id]) {\r\n return this.instances[id].currentPage;\r\n }\r\n return 1;\r\n }\r\n\r\n /**\r\n * Sets the current page number.\r\n */\r\n public setCurrentPage(id: string, page: number) {\r\n if (this.instances[id]) {\r\n let instance = this.instances[id];\r\n let maxPage = Math.ceil(instance.totalItems / instance.itemsPerPage);\r\n if (page <= maxPage && 1 <= page) {\r\n this.instances[id].currentPage = page;\r\n this.change.emit(id);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Sets the value of instance.totalItems\r\n */\r\n public setTotalItems(id: string, totalItems: number) {\r\n if (this.instances[id] && 0 <= totalItems) {\r\n this.instances[id].totalItems = totalItems;\r\n this.change.emit(id);\r\n }\r\n }\r\n\r\n /**\r\n * Sets the value of instance.itemsPerPage.\r\n */\r\n public setItemsPerPage(id: string, itemsPerPage: number) {\r\n if (this.instances[id]) {\r\n this.instances[id].itemsPerPage = itemsPerPage;\r\n this.change.emit(id);\r\n }\r\n }\r\n\r\n /**\r\n * Returns a clone of the pagination instance object matching the id. If no\r\n * id specified, returns the instance corresponding to the default id.\r\n */\r\n public getInstance(id: string = this.DEFAULT_ID): PaginationInstance {\r\n if (this.instances[id]) {\r\n return this.clone(this.instances[id]);\r\n }\r\n return {} as PaginationInstance;\r\n }\r\n\r\n /**\r\n * Perform a shallow clone of an object.\r\n */\r\n private clone(obj: any): any {\r\n var target = {};\r\n for (var i in obj) {\r\n if (obj.hasOwnProperty(i)) {\r\n target[i] = obj[i];\r\n }\r\n }\r\n return target;\r\n }\r\n\r\n}\r\n","import {Pipe} from \"@angular/core\";\r\nimport {PaginationService} from \"./pagination.service\";\r\nimport {PaginationInstance} from './pagination-instance';\r\n\r\nconst LARGE_NUMBER = Number.MAX_SAFE_INTEGER;\r\n\r\nexport type Collection<T> = T[] | ReadonlyArray<T>;\r\n\r\nexport interface PaginatePipeArgs {\r\n id?: string;\r\n itemsPerPage?: string | number;\r\n currentPage?: string | number;\r\n totalItems?: string | number;\r\n}\r\n\r\nexport interface PipeState {\r\n collection: ArrayLike<any>;\r\n size: number;\r\n start: number;\r\n end: number;\r\n slice: ArrayLike<any>;\r\n}\r\n\r\n@Pipe({\r\n name: 'paginate',\r\n pure: false\r\n})\r\nexport class PaginatePipe {\r\n\r\n // store the values from the last time the pipe was invoked\r\n private state: { [id: string]: PipeState } = {};\r\n\r\n constructor(private service: PaginationService) {\r\n }\r\n\r\n public transform<T, U extends Collection<T>>(collection: U, args: PaginatePipeArgs): U {\r\n\r\n // When an observable is passed through the AsyncPipe, it will output\r\n // `null` until the subscription resolves. In this case, we want to\r\n // use the cached data from the `state` object to prevent the NgFor\r\n // from flashing empty until the real values arrive.\r\n if (!(collection instanceof Array)) {\r\n let _id = args.id || this.service.defaultId();\r\n if (this.state[_id]) {\r\n return this.state[_id].slice as U;\r\n } else {\r\n return collection;\r\n }\r\n }\r\n\r\n let serverSideMode = args.totalItems && args.totalItems !== collection.length;\r\n let instance = this.createInstance(collection, args);\r\n let id = instance.id;\r\n let start, end;\r\n let perPage = instance.itemsPerPage;\r\n\r\n let emitChange = this.service.register(instance);\r\n\r\n if (!serverSideMode && collection instanceof Array) {\r\n perPage = +perPage || LARGE_NUMBER;\r\n start = (instance.currentPage - 1) * perPage;\r\n end = start + perPage;\r\n\r\n let isIdentical = this.stateIsIdentical(id, collection, start, end);\r\n if (isIdentical) {\r\n return this.state[id].slice as U;\r\n } else {\r\n let slice = collection.slice(start, end);\r\n this.saveState(id, collection, slice, start, end);\r\n this.service.change.emit(id);\r\n return slice as U;\r\n }\r\n } else {\r\n if (emitChange) {\r\n this.service.change.emit(id);\r\n }\r\n\r\n // save the state for server-side collection to avoid null\r\n // flash as new data loads.\r\n this.saveState(id, collection, collection, start, end);\r\n\r\n return collection;\r\n }\r\n }\r\n\r\n /**\r\n * Create an PaginationInstance object, using defaults for any optional properties not supplied.\r\n */\r\n private createInstance(collection: readonly any[], config: PaginatePipeArgs): PaginationInstance {\r\n this.checkConfig(config);\r\n\r\n return {\r\n id: config.id != null ? config.id : this.service.defaultId(),\r\n itemsPerPage: +config.itemsPerPage || 0,\r\n currentPage: +config.currentPage || 1,\r\n totalItems: +config.totalItems || collection.length\r\n };\r\n }\r\n\r\n /**\r\n * Ensure the argument passed to the filter contains the required properties.\r\n */\r\n private checkConfig(config: PaginatePipeArgs): void {\r\n const required = ['itemsPerPage', 'currentPage'];\r\n\r\n const missing = required.filter(prop => !(prop in config));\r\n if (0 < missing.length) {\r\n throw new Error(`PaginatePipe: Argument is missing the following required properties: ${missing.join(', ')}`);\r\n }\r\n }\r\n\r\n /**\r\n * To avoid returning a brand new array each time the pipe is run, we store the state of the sliced\r\n * array for a given id. This means that the next time the pipe is run on this collection & id, we just\r\n * need to check that the collection, start and end points are all identical, and if so, return the\r\n * last sliced array.\r\n */\r\n private saveState(id: string, collection: ArrayLike<any>, slice: ArrayLike<any>, start: number, end: number) {\r\n this.state[id] = {\r\n collection,\r\n size: collection.length,\r\n slice,\r\n start,\r\n end\r\n };\r\n }\r\n\r\n /**\r\n * For a given id, returns true if the collection, size, start and end values are identical.\r\n */\r\n private stateIsIdentical(id: string, collection: ArrayLike<any>, start: number, end: number): boolean {\r\n let state = this.state[id];\r\n if (!state) {\r\n return false;\r\n }\r\n let isMetaDataIdentical = state.size === collection.length &&\r\n state.start === start &&\r\n state.end === end;\r\n\r\n if(!isMetaDataIdentical) {\r\n return false;\r\n }\r\n\r\n return (state.slice as Array<any>).every((element, index) => element === collection[start + index]);\r\n }\r\n}\r\n","/**\r\n * The default template and styles for the pagination links are borrowed directly\r\n * from Zurb Foundation 6: http://foundation.zurb.com/sites/docs/pagination.html\r\n */\r\n\r\nexport const DEFAULT_TEMPLATE = `\r\n <pagination-template #p=\"paginationApi\"\r\n [id]=\"id\"\r\n [maxSize]=\"maxSize\"\r\n (pageChange)=\"pageChange.emit($event)\"\r\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\r\n <nav role=\"navigation\" [attr.aria-label]=\"screenReaderPaginationLabel\">\r\n <ul class=\"ngx-pagination\" \r\n [class.responsive]=\"responsive\"\r\n *ngIf=\"!(autoHide && p.pages.length <= 1)\">\r\n\r\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\"> \r\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\">\r\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\r\n </a>\r\n <span *ngIf=\"p.isFirstPage()\" aria-disabled=\"true\">\r\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\r\n </span>\r\n </li> \r\n\r\n <li class=\"small-screen\">\r\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\r\n </li>\r\n\r\n <li [class.current]=\"p.getCurrent() === page.value\" \r\n [class.ellipsis]=\"page.label === '...'\"\r\n *ngFor=\"let page of p.pages; trackBy: trackByIndex\">\r\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\" *ngIf=\"p.getCurrent() !== page.value\">\r\n <span class=\"show-for-sr\">{{ screenReaderPageLabel }} </span>\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </a>\r\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\r\n <span aria-live=\"polite\">\r\n <span class=\"show-for-sr\">{{ screenReaderCurrentLabel }} </span>\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span> \r\n </span>\r\n </ng-container>\r\n </li>\r\n\r\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\r\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\">\r\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\r\n </a>\r\n <span *ngIf=\"p.isLastPage()\" aria-disabled=\"true\">\r\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\r\n </span>\r\n </li>\r\n\r\n </ul>\r\n </nav>\r\n </pagination-template>\r\n `;\r\n\r\nexport const DEFAULT_STYLES = `\r\n.ngx-pagination {\r\n margin-left: 0;\r\n margin-bottom: 1rem; }\r\n .ngx-pagination::before, .ngx-pagination::after {\r\n content: ' ';\r\n display: table; }\r\n .ngx-pagination::after {\r\n clear: both; }\r\n .ngx-pagination li {\r\n -moz-user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n margin-right: 0.0625rem;\r\n border-radius: 0; }\r\n .ngx-pagination li {\r\n display: inline-block; }\r\n .ngx-pagination a,\r\n .ngx-pagination button {\r\n color: #0a0a0a; \r\n display: block;\r\n padding: 0.1875rem 0.625rem;\r\n border-radius: 0; }\r\n .ngx-pagination a:hover,\r\n .ngx-pagination button:hover {\r\n background: #e6e6e6; }\r\n .ngx-pagination .current {\r\n padding: 0.1875rem 0.625rem;\r\n background: #2199e8;\r\n color: #fefefe;\r\n cursor: default; }\r\n .ngx-pagination .disabled {\r\n padding: 0.1875rem 0.625rem;\r\n color: #cacaca;\r\n cursor: default; } \r\n .ngx-pagination .disabled:hover {\r\n background: transparent; }\r\n .ngx-pagination a, .ngx-pagination button {\r\n cursor: pointer; }\r\n\r\n.ngx-pagination .pagination-previous a::before,\r\n.ngx-pagination .pagination-previous.disabled::before { \r\n content: '«';\r\n display: inline-block;\r\n margin-right: 0.5rem; }\r\n\r\n.ngx-pagination .pagination-next a::after,\r\n.ngx-pagination .pagination-next.disabled::after {\r\n content: '»';\r\n display: inline-block;\r\n margin-left: 0.5rem; }\r\n\r\n.ngx-pagination .show-for-sr {\r\n position: absolute !important;\r\n width: 1px;\r\n height: 1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0); }\r\n.ngx-pagination .small-screen {\r\n display: none; }\r\n@media screen and (max-width: 601px) {\r\n .ngx-pagination.responsive .small-screen {\r\n display: inline-block; } \r\n .ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next) {\r\n display: none; }\r\n}\r\n `;\r\n","import {ChangeDetectorRef, Directive, EventEmitter, Input, Output} from '@angular/core';\r\nimport {Subscription} from 'rxjs';\r\n\r\nimport {PaginationService} from './pagination.service';\r\nimport {PaginationInstance} from './pagination-instance';\r\n\r\nexport interface Page {\r\n label: string;\r\n value: any;\r\n}\r\n\r\n/**\r\n * This directive is what powers all pagination controls components, including the default one.\r\n * It exposes an API which is hooked up to the PaginationService to keep the PaginatePipe in sync\r\n * with the pagination controls.\r\n */\r\n@Directive({\r\n selector: 'pagination-template,[pagination-template]',\r\n exportAs: 'paginationApi'\r\n})\r\nexport class PaginationControlsDirective {\r\n @Input() id: string;\r\n @Input() maxSize: number = 7;\r\n @Output() pageChange: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() pageBoundsCorrection: EventEmitter<number> = new EventEmitter<number>();\r\n pages: Page[] = [];\r\n\r\n private changeSub: Subscription;\r\n\r\n constructor(private service: PaginationService,\r\n private changeDetectorRef: ChangeDetectorRef) {\r\n this.changeSub = this.service.change\r\n .subscribe(id => {\r\n if (this.id === id) {\r\n this.updatePageLinks();\r\n this.changeDetectorRef.markForCheck();\r\n this.changeDetectorRef.detectChanges();\r\n }\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n if (this.id === undefined) {\r\n this.id = this.service.defaultId();\r\n }\r\n this.updatePageLinks();\r\n }\r\n\r\n ngOnChanges(changes: any) {\r\n this.updatePageLinks();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.changeSub.unsubscribe();\r\n }\r\n\r\n /**\r\n * Go to the previous page\r\n */\r\n previous() {\r\n this.checkValidId();\r\n this.setCurrent(this.getCurrent() - 1);\r\n }\r\n\r\n /**\r\n * Go to the next page\r\n */\r\n next() {\r\n this.checkValidId();\r\n this.setCurrent(this.getCurrent() + 1);\r\n }\r\n\r\n /**\r\n * Returns true if current page is first page\r\n */\r\n isFirstPage(): boolean {\r\n return this.getCurrent() === 1;\r\n }\r\n\r\n /**\r\n * Returns true if current page is last page\r\n */\r\n isLastPage(): boolean {\r\n return this.getLastPage() === this.getCurrent();\r\n }\r\n\r\n /**\r\n * Set the current page number.\r\n */\r\n setCurrent(page: number) {\r\n this.pageChange.emit(page);\r\n }\r\n\r\n /**\r\n * Get the current page number.\r\n */\r\n getCurrent(): number {\r\n return this.service.getCurrentPage(this.id);\r\n }\r\n\r\n /**\r\n * Returns the last page number\r\n */\r\n getLastPage(): number {\r\n let inst = this.service.getInstance(this.id);\r\n if (inst.totalItems < 1) {\r\n // when there are 0 or fewer (an error case) items, there are no \"pages\" as such,\r\n // but it makes sense to consider a single, empty page as the last page.\r\n return 1;\r\n }\r\n return Math.ceil(inst.totalItems / inst.itemsPerPage);\r\n }\r\n\r\n getTotalItems(): number {\r\n return this.service.getInstance(this.id).totalItems;\r\n }\r\n\r\n private checkValidId() {\r\n if (this.service.getInstance(this.id).id == null) {\r\n console.warn(`PaginationControlsDirective: the specified id \"${this.id}\" does not match any registered PaginationInstance`);\r\n }\r\n }\r\n\r\n /**\r\n * Updates the page links and checks that the current page is valid. Should run whenever the\r\n * PaginationService.change stream emits a value matching the current ID, or when any of the\r\n * input values changes.\r\n */\r\n private updatePageLinks() {\r\n let inst = this.service.getInstance(this.id);\r\n const correctedCurrentPage = this.outOfBoundCorrection(inst);\r\n\r\n if (correctedCurrentPage !== inst.currentPage) {\r\n setTimeout(() => {\r\n this.pageBoundsCorrection.emit(correctedCurrentPage);\r\n this.pages = this.createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, this.maxSize);\r\n });\r\n } else {\r\n this.pages = this.createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, this.maxSize);\r\n }\r\n }\r\n\r\n /**\r\n * Checks that the instance.currentPage property is within bounds for the current page range.\r\n * If not, return a correct value for currentPage, or the current value if OK.\r\n */\r\n private outOfBoundCorrection(instance: PaginationInstance): number {\r\n const totalPages = Math.ceil(instance.totalItems / instance.itemsPerPage);\r\n if (totalPages < instance.currentPage && 0 < totalPages) {\r\n return totalPages;\r\n } else if (instance.currentPage < 1) {\r\n return 1;\r\n }\r\n\r\n return instance.currentPage;\r\n }\r\n\r\n /**\r\n * Returns an array of Page objects to use in the pagination controls.\r\n */\r\n private createPageArray(currentPage: number, itemsPerPage: number, totalItems: number, paginationRange: number): Page[] {\r\n // paginationRange could be a string if passed from attribute, so cast to number.\r\n paginationRange = +paginationRange;\r\n let pages = [];\r\n \r\n // Return 1 as default page number\r\n // Make sense to show 1 instead of empty when there are no items\r\n const totalPages = Math.max(Math.ceil(totalItems / itemsPerPage), 1);\r\n const halfWay = Math.ceil(paginationRange / 2);\r\n\r\n const isStart = currentPage <= halfWay;\r\n const isEnd = totalPages - halfWay < currentPage;\r\n const isMiddle = !isStart && !isEnd;\r\n\r\n let ellipsesNeeded = paginationRange < totalPages;\r\n let i = 1;\r\n\r\n while (i <= totalPages && i <= paginationRange) {\r\n let label;\r\n let pageNumber = this.calculatePageNumber(i, currentPage, paginationRange, totalPages);\r\n let openingEllipsesNeeded = (i === 2 && (isMiddle || isEnd));\r\n let closingEllipsesNeeded = (i === paginationRange - 1 && (isMiddle || isStart));\r\n if (ellipsesNeeded && (openingEllipsesNeeded || closingEllipsesNeeded)) {\r\n label = '...';\r\n } else {\r\n label = pageNumber;\r\n }\r\n pages.push({\r\n label: label,\r\n value: pageNumber\r\n });\r\n i ++;\r\n }\r\n return pages;\r\n }\r\n\r\n /**\r\n * Given the position in the sequence of pagination links [i],\r\n * figure out what page number corresponds to that position.\r\n */\r\n private calculatePageNumber(i: number, currentPage: number, paginationRange: number, totalPages: number) {\r\n let halfWay = Math.ceil(paginationRange / 2);\r\n if (i === paginationRange) {\r\n return totalPages;\r\n } else if (i === 1) {\r\n return i;\r\n } else if (paginationRange < totalPages) {\r\n if (totalPages - halfWay < currentPage) {\r\n return totalPages - paginationRange + i;\r\n } else if (halfWay < currentPage) {\r\n return currentPage - halfWay + i;\r\n } else {\r\n return i;\r\n }\r\n } else {\r\n return i;\r\n }\r\n }\r\n}\r\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core'\r\nimport {DEFAULT_TEMPLATE, DEFAULT_STYLES} from './template';\r\n\r\nfunction coerceToBoolean(input: string | boolean): boolean {\r\n return !!input && input !== 'false';\r\n}\r\n\r\n/**\r\n * The default pagination controls component. Actually just a default implementation of a custom template.\r\n */\r\n@Component({\r\n selector: 'pagination-controls',\r\n template: DEFAULT_TEMPLATE,\r\n styles: [DEFAULT_STYLES],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class PaginationControlsComponent {\r\n\r\n @Input() id: string;\r\n @Input() maxSize: number = 7;\r\n @Input()\r\n get directionLinks(): boolean {\r\n return this._directionLinks;\r\n }\r\n set directionLinks(value: boolean) {\r\n this._directionLinks = coerceToBoolean(value);\r\n }\r\n @Input()\r\n get autoHide(): boolean {\r\n return this._autoHide;\r\n }\r\n set autoHide(value: boolean) {\r\n this._autoHide = coerceToBoolean(value);\r\n }\r\n @Input()\r\n get responsive(): boolean {\r\n return this._responsive;\r\n }\r\n set responsive(value: boolean) {\r\n this._responsive = coerceToBoolean(value);\r\n }\r\n @Input() previousLabel: string = 'Previous';\r\n @Input() nextLabel: string = 'Next';\r\n @Input() screenReaderPaginationLabel: string = 'Pagination';\r\n @Input() screenReaderPageLabel: string = 'page';\r\n @Input() screenReaderCurrentLabel: string = `You're on page`;\r\n @Output() pageChange: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() pageBoundsCorrection: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n private _directionLinks: boolean = true;\r\n private _autoHide: boolean = false;\r\n private _responsive: boolean = false;\r\n\r\n trackByIndex(index: number) {\r\n return index;\r\n }\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {PaginatePipe} from './paginate.pipe';\r\nimport {PaginationService} from './pagination.service';\r\nimport {PaginationControlsComponent} from './pagination-controls.component';\r\nimport {PaginationControlsDirective} from './pagination-controls.directive';\r\n\r\nexport {PaginationInstance} from './pagination-instance';\r\nexport {PaginationService} from './pagination.service';\r\nexport {PaginationControlsComponent} from './pagination-controls.component';\r\nexport {PaginationControlsDirective} from './pagination-controls.directive';\r\nexport {PaginatePipe} from './paginate.pipe';\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n declarations: [\r\n PaginatePipe,\r\n PaginationControlsComponent,\r\n PaginationControlsDirective\r\n ],\r\n providers: [PaginationService],\r\n exports: [PaginatePipe, PaginationControlsComponent, PaginationControlsDirective]\r\n})\r\nexport class NgxPaginationModule { }\r\n","/*\r\n * Public API Surface of ngx-pagination\r\n */\r\n\r\nexport * from './lib/paginate.pipe';\r\nexport * from './lib/pagination.service';\r\nexport * from './lib/pagination-controls.component';\r\nexport * from './lib/pagination-controls.directive';\r\nexport * from './lib/pagination-instance';\r\nexport * from './lib/ngx-pagination.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.PaginationService","i1.PaginationControlsDirective"],"mappings":";;;;;MAGa,iBAAiB,CAAA;AAA9B,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,MAAM,GAAyB,IAAI,YAAY,EAAU,CAAC;QAEzD,IAAS,CAAA,SAAA,GAAyC,EAAE,CAAC;QACrD,IAAU,CAAA,UAAA,GAAG,uBAAuB,CAAC;KAyGhD;AAvGU,IAAA,SAAS,KAAa,OAAO,IAAI,CAAC,UAAU,CAAA,EAAE;AAErD;;;;AAIG;AACI,IAAA,QAAQ,CAAC,QAA4B,EAAA;AACxC,QAAA,IAAI,QAAQ,CAAC,EAAE,IAAI,IAAI,EAAE;AACrB,YAAA,QAAQ,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;AACjC,SAAA;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;YAC9B,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC;AACvC,YAAA,OAAO,IAAI,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