UNPKG

2.12 kBTypeScriptView Raw
1/// <reference types="lodash" />
2import * as React from 'react';
3import { CommandService } from '../../common';
4import { ReactWidget } from '../widgets/react-widget';
5import { FrontendApplicationStateService } from '../frontend-application-state';
6import { LabelParser } from '../label-parser';
7import { PreferenceService } from '../preferences';
8import { StatusBar, StatusBarEntry, StatusBarAlignment, StatusBarViewEntry } from './status-bar-types';
9import { StatusBarViewModel } from './status-bar-view-model';
10import { HoverService } from '../hover-service';
11export { StatusBar, StatusBarAlignment, StatusBarEntry };
12export declare class StatusBarImpl extends ReactWidget implements StatusBar {
13 protected readonly commands: CommandService;
14 protected readonly entryService: LabelParser;
15 protected readonly applicationStateService: FrontendApplicationStateService;
16 protected readonly preferences: PreferenceService;
17 protected readonly viewModel: StatusBarViewModel;
18 protected readonly hoverService: HoverService;
19 protected backgroundColor: string | undefined;
20 protected color: string | undefined;
21 constructor(commands: CommandService, entryService: LabelParser, applicationStateService: FrontendApplicationStateService, preferences: PreferenceService, viewModel: StatusBarViewModel, hoverService: HoverService);
22 protected debouncedUpdate: import("lodash").DebouncedFunc<() => void>;
23 protected get ready(): Promise<void>;
24 setElement(id: string, entry: StatusBarEntry): Promise<void>;
25 removeElement(id: string): Promise<void>;
26 setBackgroundColor(color?: string): Promise<void>;
27 protected internalSetBackgroundColor(color?: string): void;
28 setColor(color?: string): Promise<void>;
29 protected internalSetColor(color?: string): void;
30 protected render(): JSX.Element;
31 protected onclick(entry: StatusBarEntry): () => void;
32 protected createAttributes(viewEntry: StatusBarViewEntry): React.Attributes & React.HTMLAttributes<HTMLElement>;
33 protected renderElement(entry: StatusBarViewEntry): JSX.Element;
34}
35//# sourceMappingURL=status-bar.d.ts.map
\No newline at end of file