air-lib
Version:
This is Air's angular component library
23 lines (22 loc) • 1.24 kB
TypeScript
import { ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router';
import { PagingEvent } from '../entities/paging-event';
import { Observable } from 'rxjs';
export declare class PagingService {
private static cache;
static emptyPagingEvent: PagingEvent;
constructor();
private static messageSource;
static currentMessage: Observable<PagingEvent>;
static fireHashChangedEvent(hash: string, context: string, currentIndex: number, itemsOnPage: number): void;
static firePagingEvent(event: PagingEvent): void;
static fireClosingContextEvent(event: PagingEvent): void;
static saveToLocalStorage(pagingEvent: PagingEvent): void;
static readFromLocalStorage(snapshot: ActivatedRouteSnapshot): PagingEvent | null;
static readSegmentByName(route: ActivatedRoute, name: string): string;
static buildRedirectUrl(pagingEvent: PagingEvent): string;
static buildKey(snapshot: ActivatedRouteSnapshot): string;
static isExistsHash(context: string, index: number): boolean;
static getHash(context: string, index: number): string;
static addHash(context: string, index: number, hash: string): void;
static buildMapKey(context: string, index: number): string;
}