1 | import React = require('react');
|
2 | import { CommandRegistry } from '../../common';
|
3 | import { ContextKeyService } from '../context-key-service';
|
4 | import { TreeModel } from './tree-model';
|
5 | import { TreeWidget } from './tree-widget';
|
6 | import { WindowService } from '../window/window-service';
|
7 | interface ViewWelcome {
|
8 | readonly view: string;
|
9 | readonly content: string;
|
10 | readonly when?: string;
|
11 | readonly order: number;
|
12 | }
|
13 | interface IItem {
|
14 | readonly welcomeInfo: ViewWelcome;
|
15 | visible: boolean;
|
16 | }
|
17 | interface ILink {
|
18 | readonly label: string;
|
19 | readonly href: string;
|
20 | readonly title?: string;
|
21 | }
|
22 | declare type LinkedTextItem = string | ILink;
|
23 | export declare class TreeViewWelcomeWidget extends TreeWidget {
|
24 | protected readonly commands: CommandRegistry;
|
25 | protected readonly contextService: ContextKeyService;
|
26 | protected readonly windowService: WindowService;
|
27 | protected viewWelcomeNodes: React.ReactNode[];
|
28 | protected defaultItem: IItem | undefined;
|
29 | protected items: IItem[];
|
30 | get visibleItems(): ViewWelcome[];
|
31 | protected renderTree(model: TreeModel): React.ReactNode;
|
32 | protected shouldShowWelcomeView(): boolean;
|
33 | protected renderViewWelcome(): React.ReactNode;
|
34 | handleViewWelcomeContentChange(viewWelcomes: ViewWelcome[]): void;
|
35 | handleWelcomeContextChange(): void;
|
36 | protected updateViewWelcomeNodes(): void;
|
37 | protected renderButtonNode(node: ILink, lineKey: string): React.ReactNode;
|
38 | protected renderTextNode(node: string, textKey: string): React.ReactNode;
|
39 | protected renderCommandLinkNode(node: ILink, linkKey: string): React.ReactNode;
|
40 | protected getLinkClassName(href: string): string;
|
41 | protected isEnabledClick(href: string): boolean;
|
42 | protected openLinkOrCommand: (event: React.MouseEvent, href: string) => void;
|
43 | protected parseLinkedText(text: string): LinkedTextItem[];
|
44 | }
|
45 | export {};
|
46 |
|
\ | No newline at end of file |