UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

90 lines (85 loc) 4.11 kB
import * as _c8y_ngx_components_context_dashboard from '@c8y/ngx-components/context-dashboard'; import * as _angular_forms from '@angular/forms'; import * as _angular_core from '@angular/core'; import { OnInit, TemplateRef } from '@angular/core'; import { IManagedObject, IResultList, IEvent } from '@c8y/client'; import { GlobalContextState, PresetName, GLOBAL_CONTEXT_DISPLAY_MODE } from '@c8y/ngx-components/global-context'; import { GlobalAutoRefreshWidgetConfig, DashboardChildComponent, DynamicComponentAlertAggregator } from '@c8y/ngx-components'; interface EventListWidgetConfig extends Partial<GlobalContextState>, GlobalAutoRefreshWidgetConfig { device?: IManagedObject | null; showEventsForChildren?: boolean; type?: string; } declare class EventListWidgetConfigComponent implements OnInit { config: _angular_core.InputSignal<EventListWidgetConfig>; eventListPreview: _angular_core.Signal<TemplateRef<unknown>>; private alertService; private destroyRef; private eventsViewService; private form; private formBuilder; private widgetConfigService; events: _angular_core.WritableSignal<IResultList<IEvent>>; isLoading: _angular_core.WritableSignal<boolean>; controls: PresetName; readonly navigationOptions: { allowNavigationToEventsView: boolean; alwaysNavigateToAllEvents: boolean; queryParamsHandling: "merge"; }; formGroup: _angular_forms.FormGroup<{ type: _angular_forms.FormControl<string>; showEventsForChildren: _angular_forms.FormControl<boolean>; }>; typeValue: _angular_core.Signal<string>; private config$; configState: _angular_core.Signal<_c8y_ngx_components_context_dashboard.ContextWidgetConfig>; constructor(); ngOnInit(): void; clearType(): void; private fetchEvents; static ɵfac: _angular_core.ɵɵFactoryDeclaration<EventListWidgetConfigComponent, never>; static ɵcmp: _angular_core.ɵɵComponentDeclaration<EventListWidgetConfigComponent, "c8y-event-list-widget-config", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; } declare class EventListWidgetComponent implements OnInit { config: _angular_core.InputSignal<EventListWidgetConfig>; private alertService; protected dashboardChild: DashboardChildComponent; private eventsViewService; private isListScrolled; displayMode: _angular_core.WritableSignal<"config" | "dashboard" | "view_and_config">; contextConfig: _angular_core.WritableSignal<GlobalContextState>; isLinkedToGlobal: _angular_core.WritableSignal<boolean>; events: _angular_core.WritableSignal<IResultList<IEvent>>; isLoading: _angular_core.WritableSignal<boolean>; alerts: DynamicComponentAlertAggregator; widgetControls: _angular_core.WritableSignal<PresetName>; private sourceId; readonly GLOBAL_CONTEXT_DISPLAY_MODE: typeof GLOBAL_CONTEXT_DISPLAY_MODE; readonly REFRESH_OPTION: { readonly LIVE: "live"; readonly HISTORY: "history"; }; navigationOptions: _angular_core.Signal<{ alwaysNavigateToAllEvents: boolean; allowNavigationToEventsView: boolean; queryParamsHandling: ""; }>; private TIMEOUT_ERROR_TEXT; private SERVER_ERROR_TEXT; ngOnInit(): Promise<void>; onContextChange(event: { context: GlobalContextState; diff: GlobalContextState; }): void; onRefresh(): void; onScrollingStateChange(isScrolling: boolean): void; onPreviewStateChange(isOpen: boolean): void; private migrateLegacyConfig; private fetchEvents; static ɵfac: _angular_core.ɵɵFactoryDeclaration<EventListWidgetComponent, never>; static ɵcmp: _angular_core.ɵɵComponentDeclaration<EventListWidgetComponent, "c8y-event-list-widget", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; } export { EventListWidgetComponent, EventListWidgetConfigComponent }; export type { EventListWidgetConfig }; //# sourceMappingURL=index.d.ts.map