coersystem
Version:
Library for Angular projects
44 lines (43 loc) • 2.28 kB
TypeScript
import { AfterViewInit, OnDestroy } from '@angular/core';
import { CoerAlert } from './coer-alert/coer-alert.component';
import { Router } from '@angular/router';
import * as i0 from "@angular/core";
/** Use this component to extend the functionality of a page section. */
export declare abstract class Section<T> implements AfterViewInit, OnDestroy {
/** */
protected readonly alert: CoerAlert;
/** */
protected readonly router: Router;
/** */
isLoading: import("@angular/core").InputSignal<boolean>;
/** */
isUpdate: import("@angular/core").InputSignal<boolean>;
/** */
onReady: import("@angular/core").OutputEmitterRef<void>;
/** */
onDestroy: import("@angular/core").OutputEmitterRef<any>;
/** */
onIsLoading: import("@angular/core").OutputEmitterRef<boolean>;
/** */
onUpdated: import("@angular/core").OutputEmitterRef<T | null>;
/** */
protected enableAnimations: boolean;
/** */
protected isReadySection: boolean;
ngAfterViewInit(): Promise<void>;
ngOnDestroy(): void;
/** Main method. Starts after ngAfterViewInit() */
protected RunSection(): 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<Section<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Section<any>, "ng-component", never, { "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isUpdate": { "alias": "isUpdate"; "required": false; "isSignal": true; }; }, { "onReady": "onReady"; "onDestroy": "onDestroy"; "onIsLoading": "onIsLoading"; "onUpdated": "onUpdated"; }, never, never, true, never>;
}