@koalarx/ui
Version:
Koala UI is a Design System developed in Angular whose objective is to facilitate and make your development faster and simpler, making this framework your greatest ally.
59 lines (58 loc) • 3.4 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import { ThemePalette } from '@angular/material/core';
import { Router } from '@angular/router';
import { LoaderBarPageInterface } from '../loader/loader-bar-page.interface';
import { BehaviorSubject } from 'rxjs';
import { KoalaTokenService } from '../services/token/koala.token.service';
import { KoalaLoaderService } from '../services/loader/koala.loader.service';
import { KoalaNotificationInterface } from './notifications/koala.notification.interface';
import { KoalaUserMenuOptionsInterface } from './koala.user-menu-options.interface';
import { KoalaPagePalletColorsInterface } from './koala-page-pallet-colors.interface';
import { KoalaMenuService } from '@koalarx/ui/menu';
import { KoalaOAuth2Service } from "../services/openid/koala.oauth2.service";
import { KoalaLanguageType } from "./koala-language.helper";
import { DeviceDetectorService } from "ngx-device-detector";
import * as i0 from "@angular/core";
export declare class PageComponent implements OnInit {
private tokenService;
private router;
private loaderService;
private menuService;
private oauth2Service;
private deviceService;
showMenu: boolean;
color: ThemePalette;
logo: string;
startMenuOpened: boolean;
showLoaderPage: BehaviorSubject<boolean>;
messageLoaderPage: BehaviorSubject<string>;
defaultPage: string;
openPages: string[];
notifications: BehaviorSubject<KoalaNotificationInterface[]>;
userMenuOptions: KoalaUserMenuOptionsInterface[];
palletColors: KoalaPagePalletColorsInterface;
language: KoalaLanguageType;
validatingScope: EventEmitter<boolean>;
logoutEmitter: EventEmitter<boolean>;
deleteAllNotifications: EventEmitter<boolean>;
deleteNotification: EventEmitter<KoalaNotificationInterface>;
loaderSubject: BehaviorSubject<LoaderBarPageInterface>;
username$: BehaviorSubject<string>;
firstUserLetter$: BehaviorSubject<string>;
currentUrl: string;
logged$: BehaviorSubject<boolean>;
validationScope$: BehaviorSubject<boolean>;
isMobile: boolean;
private defaultPalletColors;
private oauthEventsSubscription;
private menu;
constructor(tokenService: KoalaTokenService, router: Router, loaderService: KoalaLoaderService, menuService: KoalaMenuService, oauth2Service: KoalaOAuth2Service, deviceService: DeviceDetectorService);
ngOnInit(): void;
toogleMenu(): Promise<void>;
logout(): Promise<void>;
defineColor(): void;
private initOAuth2;
private startConfig;
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "koala-page", never, { "showMenu": "showMenu"; "color": "color"; "logo": "logo"; "startMenuOpened": "startMenuOpened"; "showLoaderPage": "showLoaderPage"; "messageLoaderPage": "messageLoaderPage"; "defaultPage": "defaultPage"; "openPages": "openPages"; "notifications": "notifications"; "userMenuOptions": "userMenuOptions"; "palletColors": "palletColors"; "language": "language"; }, { "validatingScope": "validatingScope"; "logoutEmitter": "logoutEmitter"; "deleteAllNotifications": "deleteAllNotifications"; "deleteNotification": "deleteNotification"; }, never, ["[menu-options]", "[menu-toolbar]", "[page-content]", "[loading-info-content]"], false>;
}