UNPKG

@rxap/data-source

Version:

Provides a set of classes and decorators for creating and managing data sources in Angular applications, including base classes, static data sources, observable data sources, and method data sources. It also includes a component for displaying data source

32 lines (27 loc) 736 B
import { Subject } from 'rxjs'; import { tap } from 'rxjs/operators'; class PaginatorFake { constructor(pageSize = 0, length = 0, pageIndex = 0) { this.pageSize = pageSize; this.length = length; this.pageIndex = pageIndex; this.page = new Subject(); this.page.pipe(tap(page => { this.pageSize = page.pageSize; this.pageIndex = page.pageIndex; })).subscribe(); } next() { this.page.next({ pageIndex: this.pageIndex + 1, pageSize: this.pageSize, }); } } // region // endregion /** * Generated bundle index. Do not edit. */ export { PaginatorFake }; //# sourceMappingURL=rxap-data-source-testing.mjs.map