UNPKG

coersystem

Version:

Library for Angular projects

82 lines (81 loc) 2.85 kB
import { Router } from '@angular/router'; import { AfterViewInit, OnDestroy } from '@angular/core'; import { IBreadcrumb, IGoBack } from 'coersystem/interfaces'; import { CoerAlert } from './coer-alert/coer-alert.component'; import * as i0 from "@angular/core"; export declare abstract class Page implements AfterViewInit, OnDestroy { protected readonly alert: CoerAlert; protected readonly router: Router; private readonly __activatedRoute; /** */ protected isUpdate: boolean; /** */ protected isLoading: boolean; /** */ protected isReadonlyPage: boolean; /** */ protected isReadyPage: boolean; /** */ protected routeParams: any; /** */ protected queryParams: any; /** */ protected breadcrumbs: IBreadcrumb[]; /** */ protected pageResponse: any; /** */ protected pageFilters: any; /** */ protected goBack: IGoBack; private __path; private __page; private __source; private __preventDestroy; constructor(page: string); ngAfterViewInit(): Promise<void>; ngOnDestroy(): void; /** Main method. Starts after ngAfterViewInit() */ protected RunPage(): void; /** Rename the last breadcrumb and update the url id */ protected SetPageName(name: string, id?: string | number | null): void; /** */ private __SetSource; /** */ private __GetSource; /** */ private __GetPageResponse; /** */ private __GetNavigation; /** */ private __SetGoBack; /** */ private __GetPageMode; /** */ private GoBack; /** Navigate to previous page */ protected GoToSource<T>(pageResponse?: T | null): void; /** */ protected SetPageResponse<T>(pageResponse?: T | null): void; /** */ protected ClearPageResponse(): void; /** */ protected ReloadPage(): void; /** */ protected SetPageFilters<T>(filters: T): void; /** */ private __GetPageFilter; /** */ protected RemovePageFilter(): void; /** Emit a console.log() */ protected Log(value: any, logName?: string | null): void; /** Returns true if the value is null or undefined, false otherwise */ protected IsNull: (value: any) => boolean; /** Returns true if the value is not null or undefined, false otherwise */ protected IsNotNull: (value: any) => boolean; /** Returns true if the value is null or undefined or is an empty string or contains only whitespace, false otherwise */ protected IsOnlyWhiteSpace: (value: any) => boolean; /** Returns true if it has a string value and is not all whitespace, false otherwise */ protected IsNotOnlyWhiteSpace: (value: any) => boolean; static ɵfac: i0.ɵɵFactoryDeclaration<Page, never>; static ɵcmp: i0.ɵɵComponentDeclaration<Page, "ng-component", never, {}, {}, never, never, true, never>; }