@rxap/layout
Version:
This library provides a set of Angular components and services for creating consistent and configurable application layouts, including headers, footers, side navigation, and content areas. It offers features such as dynamic navigation, external applicatio
18 lines (17 loc) • 1.63 kB
TypeScript
import { ComponentType } from '@angular/cdk/portal';
import { Provider } from '@angular/core';
import { DataSource } from '@rxap/pattern';
import { Constructor } from '@rxap/utilities';
import { NavigationWithInserts } from './navigation/navigation-item';
import { DefaultHeaderItemComponent, ExternalApp, ReleaseInfoModule, SettingsMenuItem, SettingsMenuItemComponent } from './types';
export declare function provideLayout(...additionalProviders: Provider[]): Provider[];
export declare function provideExternalApps(...apps: ExternalApp[]): Provider[];
export declare function withNavigationConfig(config: NavigationWithInserts | (() => NavigationWithInserts)): Provider[];
export declare function withNavigationInserts(inserts: Record<string, NavigationWithInserts>): Provider[];
export declare function withSettingsMenuItems(...items: Array<SettingsMenuItemComponent | (() => Promise<SettingsMenuItemComponent> | SettingsMenuItemComponent) | SettingsMenuItem>): Provider[];
export declare function withDefaultHeaderItems(...items: Array<DefaultHeaderItemComponent | (() => Promise<DefaultHeaderItemComponent> | DefaultHeaderItemComponent)>): Provider[];
export declare function withReleaseInfoModules(...module: ReleaseInfoModule[]): Provider[];
export declare function withHeaderComponents(components: Array<ComponentType<unknown>>): Provider[];
export declare function withFooterComponents(components: Array<ComponentType<unknown>>): Provider[];
export declare function withDefaultHeaderComponent(): Provider;
export declare function withUserProfileDataSource(dataSource: Constructor<DataSource>, useClass?: boolean): Provider;