@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
48 lines • 2.68 kB
TypeScript
import { InjectionToken, Injector } from '@angular/core';
import { ComponentType } from '@angular/cdk/overlay';
import { Observable } from 'rxjs';
import { ExtensionFactory, ExtensionPointWithoutStateForPlugins, GenericHookOptions, GenericHookType } from '../common';
import { BottomDrawerService } from '../bottom-drawer';
import { QueryParamConfig } from './query-param-handler.service';
import { PluginsResolveService } from '../plugins';
import * as i0 from "@angular/core";
export interface QueryParamBottomDrawerConfig {
/**
* The name of the query parameter to observe.
*/
queryParam: string;
/**
* Defines whether the drawer should be closed when navigation start is detected. Defaults to <code>true</code>.
*/
closeOnNavigation: boolean;
/**
* Defines whether it should be possible to click outside of the drawer to close the drawer.
*/
disableClickOutside: boolean;
/**
* The component to display in the bottom drawer.
*/
component: ComponentType<any>;
/**
* The injector to use. If not set, the default root injector will be used.
*/
injector?: Injector;
}
export declare const HOOK_QUERY_PARAM_BOTTOM_DRAWER: InjectionToken<QueryParamBottomDrawerConfig[]>;
export declare function hookQueryParamBottomDrawer(config: GenericHookType<QueryParamBottomDrawerConfig>, options?: Partial<GenericHookOptions>): import("@angular/core").ValueProvider | import("@angular/core").ExistingProvider | import("@angular/core").ClassProvider;
export declare class QueryParamBottomDrawerStateService extends ExtensionPointWithoutStateForPlugins<QueryParamBottomDrawerConfig> {
constructor(rootInjector: Injector, pluginService: PluginsResolveService);
protected setupItemsObservable(): Observable<QueryParamBottomDrawerConfig[]>;
static ɵfac: i0.ɵɵFactoryDeclaration<QueryParamBottomDrawerStateService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<QueryParamBottomDrawerStateService>;
}
export declare class QueryParamBottomDrawerFactory implements ExtensionFactory<QueryParamConfig> {
private readonly queryParamBottomDrawerStateService;
private readonly bottomDrawerService;
constructor(queryParamBottomDrawerStateService: QueryParamBottomDrawerStateService, bottomDrawerService: BottomDrawerService);
get(): Observable<QueryParamConfig[]>;
handleQueryParamBottomDrawer(config: QueryParamBottomDrawerConfig): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<QueryParamBottomDrawerFactory, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<QueryParamBottomDrawerFactory>;
}
//# sourceMappingURL=query-param-bottom-drawer.service.d.ts.map