@theia/scm 1.45.0 → 1.46.0-next.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +31 -31
  2. package/lib/browser/decorations/scm-decorations-service.d.ts +14 -14
  3. package/lib/browser/decorations/scm-decorations-service.js +101 -101
  4. package/lib/browser/decorations/scm-navigator-decorator.d.ts +25 -25
  5. package/lib/browser/decorations/scm-navigator-decorator.js +132 -132
  6. package/lib/browser/decorations/scm-tab-bar-decorator.d.ts +17 -17
  7. package/lib/browser/decorations/scm-tab-bar-decorator.js +93 -93
  8. package/lib/browser/dirty-diff/content-lines.d.ts +12 -12
  9. package/lib/browser/dirty-diff/content-lines.js +106 -106
  10. package/lib/browser/dirty-diff/content-lines.spec.d.ts +1 -1
  11. package/lib/browser/dirty-diff/content-lines.spec.js +39 -39
  12. package/lib/browser/dirty-diff/diff-computer.d.ts +29 -29
  13. package/lib/browser/dirty-diff/diff-computer.js +102 -102
  14. package/lib/browser/dirty-diff/diff-computer.spec.d.ts +1 -1
  15. package/lib/browser/dirty-diff/diff-computer.spec.js +315 -315
  16. package/lib/browser/dirty-diff/dirty-diff-decorator.d.ts +14 -14
  17. package/lib/browser/dirty-diff/dirty-diff-decorator.js +98 -98
  18. package/lib/browser/dirty-diff/dirty-diff-module.d.ts +3 -3
  19. package/lib/browser/dirty-diff/dirty-diff-module.js +24 -24
  20. package/lib/browser/scm-amend-component.d.ts +123 -123
  21. package/lib/browser/scm-amend-component.js +463 -463
  22. package/lib/browser/scm-amend-widget.d.ts +20 -20
  23. package/lib/browser/scm-amend-widget.js +101 -101
  24. package/lib/browser/scm-avatar-service.d.ts +3 -3
  25. package/lib/browser/scm-avatar-service.js +36 -36
  26. package/lib/browser/scm-commit-widget.d.ts +52 -52
  27. package/lib/browser/scm-commit-widget.js +199 -199
  28. package/lib/browser/scm-context-key-service.d.ts +10 -10
  29. package/lib/browser/scm-context-key-service.js +58 -58
  30. package/lib/browser/scm-contribution.d.ts +83 -83
  31. package/lib/browser/scm-contribution.js +356 -356
  32. package/lib/browser/scm-frontend-module.d.ts +6 -6
  33. package/lib/browser/scm-frontend-module.js +130 -130
  34. package/lib/browser/scm-groups-tree-model.d.ts +14 -14
  35. package/lib/browser/scm-groups-tree-model.js +97 -97
  36. package/lib/browser/scm-input.d.ts +53 -53
  37. package/lib/browser/scm-input.js +127 -127
  38. package/lib/browser/scm-layout-migrations.d.ts +9 -9
  39. package/lib/browser/scm-layout-migrations.js +79 -79
  40. package/lib/browser/scm-no-repository-widget.d.ts +8 -8
  41. package/lib/browser/scm-no-repository-widget.js +49 -49
  42. package/lib/browser/scm-preferences.d.ts +11 -11
  43. package/lib/browser/scm-preferences.js +51 -51
  44. package/lib/browser/scm-provider.d.ts +58 -58
  45. package/lib/browser/scm-provider.js +19 -19
  46. package/lib/browser/scm-quick-open-service.d.ts +11 -11
  47. package/lib/browser/scm-quick-open-service.js +73 -73
  48. package/lib/browser/scm-repository.d.ts +17 -17
  49. package/lib/browser/scm-repository.js +41 -41
  50. package/lib/browser/scm-service.d.ts +26 -26
  51. package/lib/browser/scm-service.js +108 -108
  52. package/lib/browser/scm-tree-label-provider.d.ts +7 -7
  53. package/lib/browser/scm-tree-label-provider.js +57 -57
  54. package/lib/browser/scm-tree-model.d.ts +74 -74
  55. package/lib/browser/scm-tree-model.js +351 -351
  56. package/lib/browser/scm-tree-widget.d.ts +208 -208
  57. package/lib/browser/scm-tree-widget.js +703 -703
  58. package/lib/browser/scm-widget.d.ts +40 -40
  59. package/lib/browser/scm-widget.js +218 -218
  60. package/package.json +6 -6
  61. package/src/browser/decorations/scm-decorations-service.ts +78 -78
  62. package/src/browser/decorations/scm-navigator-decorator.ts +121 -121
  63. package/src/browser/decorations/scm-tab-bar-decorator.ts +83 -83
  64. package/src/browser/dirty-diff/content-lines.spec.ts +42 -42
  65. package/src/browser/dirty-diff/content-lines.ts +112 -112
  66. package/src/browser/dirty-diff/diff-computer.spec.ts +387 -387
  67. package/src/browser/dirty-diff/diff-computer.ts +129 -129
  68. package/src/browser/dirty-diff/dirty-diff-decorator.ts +107 -107
  69. package/src/browser/dirty-diff/dirty-diff-module.ts +24 -24
  70. package/src/browser/scm-amend-component.tsx +600 -600
  71. package/src/browser/scm-amend-widget.tsx +77 -77
  72. package/src/browser/scm-avatar-service.ts +27 -27
  73. package/src/browser/scm-commit-widget.tsx +215 -215
  74. package/src/browser/scm-context-key-service.ts +46 -46
  75. package/src/browser/scm-contribution.ts +361 -361
  76. package/src/browser/scm-frontend-module.ts +149 -149
  77. package/src/browser/scm-groups-tree-model.ts +78 -78
  78. package/src/browser/scm-input.ts +164 -164
  79. package/src/browser/scm-layout-migrations.ts +64 -64
  80. package/src/browser/scm-no-repository-widget.tsx +41 -41
  81. package/src/browser/scm-preferences.ts +63 -63
  82. package/src/browser/scm-provider.ts +91 -91
  83. package/src/browser/scm-quick-open-service.ts +48 -48
  84. package/src/browser/scm-repository.ts +52 -52
  85. package/src/browser/scm-service.ts +108 -108
  86. package/src/browser/scm-tree-label-provider.ts +44 -44
  87. package/src/browser/scm-tree-model.ts +405 -405
  88. package/src/browser/scm-tree-widget.tsx +838 -838
  89. package/src/browser/scm-widget.tsx +204 -204
  90. package/src/browser/style/dirty-diff-decorator.css +52 -52
  91. package/src/browser/style/dirty-diff.css +50 -50
  92. package/src/browser/style/index.css +271 -271
  93. package/src/browser/style/scm-amend-component.css +94 -94
  94. package/src/browser/style/scm.svg +4 -4
@@ -1,209 +1,209 @@
1
- /// <reference types="react" />
2
- import * as React from '@theia/core/shared/react';
3
- import URI from '@theia/core/lib/common/uri';
4
- import { DisposableCollection } from '@theia/core/lib/common/disposable';
5
- import { TreeWidget, TreeNode, SelectableTreeNode, TreeProps, NodeProps } from '@theia/core/lib/browser/tree';
6
- import { ScmTreeModel, ScmFileChangeGroupNode, ScmFileChangeFolderNode, ScmFileChangeNode } from './scm-tree-model';
7
- import { MenuCommandExecutor, MenuModelRegistry, ActionMenuNode, CompoundMenuNode, MenuPath } from '@theia/core/lib/common/menu';
8
- import { ScmResource } from './scm-provider';
9
- import { ContextMenuRenderer, LabelProvider, CorePreferences } from '@theia/core/lib/browser';
10
- import { ScmContextKeyService } from './scm-context-key-service';
11
- import { EditorWidget, EditorManager, DiffNavigatorProvider } from '@theia/editor/lib/browser';
12
- import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
13
- import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
14
- import { Decoration, DecorationsService } from '@theia/core/lib/browser/decorations-service';
15
- import { ThemeService } from '@theia/core/lib/browser/theming';
16
- export declare class ScmTreeWidget extends TreeWidget {
17
- static ID: string;
18
- static RESOURCE_GROUP_CONTEXT_MENU: string[];
19
- static RESOURCE_GROUP_INLINE_MENU: string[];
20
- static RESOURCE_FOLDER_CONTEXT_MENU: string[];
21
- static RESOURCE_FOLDER_INLINE_MENU: string[];
22
- static RESOURCE_CONTEXT_MENU: string[];
23
- static RESOURCE_INLINE_MENU: string[];
24
- protected readonly menuCommandExecutor: MenuCommandExecutor;
25
- protected readonly menus: MenuModelRegistry;
26
- protected readonly contextKeys: ScmContextKeyService;
27
- protected readonly editorManager: EditorManager;
28
- protected readonly diffNavigatorProvider: DiffNavigatorProvider;
29
- protected readonly iconThemeService: IconThemeService;
30
- protected readonly decorationsService: DecorationsService;
31
- protected readonly colors: ColorRegistry;
32
- protected readonly themeService: ThemeService;
33
- readonly model: ScmTreeModel;
34
- constructor(props: TreeProps, treeModel: ScmTreeModel, contextMenuRenderer: ContextMenuRenderer);
35
- protected init(): void;
36
- set viewMode(id: 'tree' | 'list');
37
- get viewMode(): 'tree' | 'list';
38
- /**
39
- * Render the node given the tree node and node properties.
40
- * @param node the tree node.
41
- * @param props the node properties.
42
- */
43
- protected renderNode(node: TreeNode, props: NodeProps): React.ReactNode;
44
- protected createContainerAttributes(): React.HTMLAttributes<HTMLElement>;
45
- /**
46
- * The ARROW_LEFT key controls both the movement around the file tree and also
47
- * the movement through the change chunks within a file.
48
- *
49
- * If the selected tree node is a folder then the ARROW_LEFT key behaves exactly
50
- * as it does in explorer. It collapses the tree node if the folder is expanded and
51
- * it moves the selection up to the parent folder if the folder is collapsed (no-op if no parent folder, as
52
- * group headers are not selectable). This behavior is the default behavior implemented
53
- * in the TreeWidget super class.
54
- *
55
- * If the selected tree node is a file then the ARROW_LEFT key moves up through the
56
- * change chunks within each file. If the selected chunk is the first chunk in the file
57
- * then the file selection is moved to the previous file (no-op if no previous file).
58
- *
59
- * Note that when cursoring through change chunks, the ARROW_LEFT key cannot be used to
60
- * move up through the parent folders of the file tree. If users want to do this, using
61
- * keys only, then they must press ARROW_UP repeatedly until the selected node is the folder
62
- * node and then press ARROW_LEFT.
63
- */
64
- protected handleLeft(event: KeyboardEvent): Promise<void>;
65
- /**
66
- * The ARROW_RIGHT key controls both the movement around the file tree and also
67
- * the movement through the change chunks within a file.
68
- *
69
- * If the selected tree node is a folder then the ARROW_RIGHT key behaves exactly
70
- * as it does in explorer. It expands the tree node if the folder is collapsed and
71
- * it moves the selection to the first child node if the folder is expanded.
72
- * This behavior is the default behavior implemented
73
- * in the TreeWidget super class.
74
- *
75
- * If the selected tree node is a file then the ARROW_RIGHT key moves down through the
76
- * change chunks within each file. If the selected chunk is the last chunk in the file
77
- * then the file selection is moved to the next file (no-op if no next file).
78
- */
79
- protected handleRight(event: KeyboardEvent): Promise<void>;
80
- protected handleEnter(event: KeyboardEvent): void;
81
- goToPreviousChange(): Promise<void>;
82
- goToNextChange(): Promise<void>;
83
- selectNodeByUri(uri: URI): void;
84
- protected getFirstSelectableNode(): SelectableTreeNode | undefined;
85
- protected moveToPreviousFileNode(): ScmFileChangeNode | undefined;
86
- protected moveToNextFileNode(): ScmFileChangeNode | undefined;
87
- protected openResource(resource: ScmResource): Promise<EditorWidget | undefined>;
88
- protected getPaddingLeft(node: TreeNode, props: NodeProps): number;
89
- protected getDepthPadding(depth: number): number;
90
- protected isCurrentThemeLight(): boolean;
91
- protected needsExpansionTogglePadding(node: TreeNode): boolean;
92
- }
93
- export declare namespace ScmTreeWidget {
94
- namespace Styles {
95
- const NO_SELECT = "no-select";
96
- }
97
- interface Props {
98
- treeNode: TreeNode;
99
- model: ScmTreeModel;
100
- menus: MenuModelRegistry;
101
- contextKeys: ScmContextKeyService;
102
- labelProvider: LabelProvider;
103
- contextMenuRenderer: ContextMenuRenderer;
104
- corePreferences?: CorePreferences;
105
- caption: React.ReactNode;
106
- }
107
- }
108
- export declare abstract class ScmElement<P extends ScmElement.Props = ScmElement.Props> extends React.Component<P, ScmElement.State> {
109
- constructor(props: P);
110
- protected readonly toDisposeOnUnmount: DisposableCollection;
111
- componentDidMount(): void;
112
- componentWillUnmount(): void;
113
- protected detectHover: (element: HTMLElement | null) => void;
114
- protected showHover: () => void;
115
- protected hideHover: () => void;
116
- protected renderContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
117
- protected abstract get contextMenuPath(): MenuPath;
118
- protected abstract get contextMenuArgs(): any[];
119
- }
120
- export declare namespace ScmElement {
121
- interface Props extends ScmTreeWidget.Props {
122
- renderExpansionToggle: () => React.ReactNode;
123
- commandExecutor: MenuCommandExecutor;
124
- }
125
- interface State {
126
- hover: boolean;
127
- }
128
- }
129
- export declare class ScmResourceComponent extends ScmElement<ScmResourceComponent.Props> {
130
- render(): JSX.Element | undefined;
131
- protected open: () => void;
132
- protected readonly contextMenuPath: string[];
133
- protected get contextMenuArgs(): any[];
134
- protected get singleNodeArgs(): any[];
135
- protected hasCtrlCmdOrShiftMask(event: TreeWidget.ModifierAwareEvent): boolean;
136
- /**
137
- * Handle the single clicking of nodes present in the widget.
138
- */
139
- protected handleClick: (event: React.MouseEvent) => void;
140
- /**
141
- * Handle the double clicking of nodes present in the widget.
142
- */
143
- protected handleDoubleClick: () => void;
144
- }
145
- export declare namespace ScmResourceComponent {
146
- interface Props extends ScmElement.Props {
147
- treeNode: ScmFileChangeNode;
148
- parentPath: URI;
149
- sourceUri: string;
150
- decoration: Decoration | undefined;
151
- colors: ColorRegistry;
152
- isLightTheme: boolean;
153
- }
154
- }
155
- export declare class ScmResourceGroupElement extends ScmElement<ScmResourceGroupComponent.Props> {
156
- render(): JSX.Element;
157
- protected renderChangeCount(): React.ReactNode;
158
- protected readonly contextMenuPath: string[];
159
- protected get contextMenuArgs(): any[];
160
- }
161
- export declare namespace ScmResourceGroupComponent {
162
- interface Props extends ScmElement.Props {
163
- treeNode: ScmFileChangeGroupNode;
164
- }
165
- }
166
- export declare class ScmResourceFolderElement extends ScmElement<ScmResourceFolderElement.Props> {
167
- render(): JSX.Element;
168
- protected readonly contextMenuPath: string[];
169
- protected get contextMenuArgs(): any[];
170
- protected get singleNodeArgs(): any[];
171
- }
172
- export declare namespace ScmResourceFolderElement {
173
- interface Props extends ScmElement.Props {
174
- treeNode: ScmFileChangeFolderNode;
175
- sourceUri: string;
176
- }
177
- }
178
- export declare class ScmInlineActions extends React.Component<ScmInlineActions.Props> {
179
- render(): React.ReactNode;
180
- }
181
- export declare namespace ScmInlineActions {
182
- interface Props {
183
- hover: boolean;
184
- menu: CompoundMenuNode;
185
- menuPath: MenuPath;
186
- commandExecutor: MenuCommandExecutor;
187
- model: ScmTreeModel;
188
- treeNode: TreeNode;
189
- contextKeys: ScmContextKeyService;
190
- args: any[];
191
- children?: React.ReactNode;
192
- }
193
- }
194
- export declare class ScmInlineAction extends React.Component<ScmInlineAction.Props> {
195
- render(): React.ReactNode;
196
- protected execute: (event: React.MouseEvent) => void;
197
- }
198
- export declare namespace ScmInlineAction {
199
- interface Props {
200
- node: ActionMenuNode;
201
- commandExecutor: MenuCommandExecutor;
202
- menuPath: MenuPath;
203
- model: ScmTreeModel;
204
- treeNode: TreeNode;
205
- contextKeys: ScmContextKeyService;
206
- args: any[];
207
- }
208
- }
1
+ /// <reference types="react" />
2
+ import * as React from '@theia/core/shared/react';
3
+ import URI from '@theia/core/lib/common/uri';
4
+ import { DisposableCollection } from '@theia/core/lib/common/disposable';
5
+ import { TreeWidget, TreeNode, SelectableTreeNode, TreeProps, NodeProps } from '@theia/core/lib/browser/tree';
6
+ import { ScmTreeModel, ScmFileChangeGroupNode, ScmFileChangeFolderNode, ScmFileChangeNode } from './scm-tree-model';
7
+ import { MenuCommandExecutor, MenuModelRegistry, ActionMenuNode, CompoundMenuNode, MenuPath } from '@theia/core/lib/common/menu';
8
+ import { ScmResource } from './scm-provider';
9
+ import { ContextMenuRenderer, LabelProvider, CorePreferences } from '@theia/core/lib/browser';
10
+ import { ScmContextKeyService } from './scm-context-key-service';
11
+ import { EditorWidget, EditorManager, DiffNavigatorProvider } from '@theia/editor/lib/browser';
12
+ import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
13
+ import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
14
+ import { Decoration, DecorationsService } from '@theia/core/lib/browser/decorations-service';
15
+ import { ThemeService } from '@theia/core/lib/browser/theming';
16
+ export declare class ScmTreeWidget extends TreeWidget {
17
+ static ID: string;
18
+ static RESOURCE_GROUP_CONTEXT_MENU: string[];
19
+ static RESOURCE_GROUP_INLINE_MENU: string[];
20
+ static RESOURCE_FOLDER_CONTEXT_MENU: string[];
21
+ static RESOURCE_FOLDER_INLINE_MENU: string[];
22
+ static RESOURCE_CONTEXT_MENU: string[];
23
+ static RESOURCE_INLINE_MENU: string[];
24
+ protected readonly menuCommandExecutor: MenuCommandExecutor;
25
+ protected readonly menus: MenuModelRegistry;
26
+ protected readonly contextKeys: ScmContextKeyService;
27
+ protected readonly editorManager: EditorManager;
28
+ protected readonly diffNavigatorProvider: DiffNavigatorProvider;
29
+ protected readonly iconThemeService: IconThemeService;
30
+ protected readonly decorationsService: DecorationsService;
31
+ protected readonly colors: ColorRegistry;
32
+ protected readonly themeService: ThemeService;
33
+ readonly model: ScmTreeModel;
34
+ constructor(props: TreeProps, treeModel: ScmTreeModel, contextMenuRenderer: ContextMenuRenderer);
35
+ protected init(): void;
36
+ set viewMode(id: 'tree' | 'list');
37
+ get viewMode(): 'tree' | 'list';
38
+ /**
39
+ * Render the node given the tree node and node properties.
40
+ * @param node the tree node.
41
+ * @param props the node properties.
42
+ */
43
+ protected renderNode(node: TreeNode, props: NodeProps): React.ReactNode;
44
+ protected createContainerAttributes(): React.HTMLAttributes<HTMLElement>;
45
+ /**
46
+ * The ARROW_LEFT key controls both the movement around the file tree and also
47
+ * the movement through the change chunks within a file.
48
+ *
49
+ * If the selected tree node is a folder then the ARROW_LEFT key behaves exactly
50
+ * as it does in explorer. It collapses the tree node if the folder is expanded and
51
+ * it moves the selection up to the parent folder if the folder is collapsed (no-op if no parent folder, as
52
+ * group headers are not selectable). This behavior is the default behavior implemented
53
+ * in the TreeWidget super class.
54
+ *
55
+ * If the selected tree node is a file then the ARROW_LEFT key moves up through the
56
+ * change chunks within each file. If the selected chunk is the first chunk in the file
57
+ * then the file selection is moved to the previous file (no-op if no previous file).
58
+ *
59
+ * Note that when cursoring through change chunks, the ARROW_LEFT key cannot be used to
60
+ * move up through the parent folders of the file tree. If users want to do this, using
61
+ * keys only, then they must press ARROW_UP repeatedly until the selected node is the folder
62
+ * node and then press ARROW_LEFT.
63
+ */
64
+ protected handleLeft(event: KeyboardEvent): Promise<void>;
65
+ /**
66
+ * The ARROW_RIGHT key controls both the movement around the file tree and also
67
+ * the movement through the change chunks within a file.
68
+ *
69
+ * If the selected tree node is a folder then the ARROW_RIGHT key behaves exactly
70
+ * as it does in explorer. It expands the tree node if the folder is collapsed and
71
+ * it moves the selection to the first child node if the folder is expanded.
72
+ * This behavior is the default behavior implemented
73
+ * in the TreeWidget super class.
74
+ *
75
+ * If the selected tree node is a file then the ARROW_RIGHT key moves down through the
76
+ * change chunks within each file. If the selected chunk is the last chunk in the file
77
+ * then the file selection is moved to the next file (no-op if no next file).
78
+ */
79
+ protected handleRight(event: KeyboardEvent): Promise<void>;
80
+ protected handleEnter(event: KeyboardEvent): void;
81
+ goToPreviousChange(): Promise<void>;
82
+ goToNextChange(): Promise<void>;
83
+ selectNodeByUri(uri: URI): void;
84
+ protected getFirstSelectableNode(): SelectableTreeNode | undefined;
85
+ protected moveToPreviousFileNode(): ScmFileChangeNode | undefined;
86
+ protected moveToNextFileNode(): ScmFileChangeNode | undefined;
87
+ protected openResource(resource: ScmResource): Promise<EditorWidget | undefined>;
88
+ protected getPaddingLeft(node: TreeNode, props: NodeProps): number;
89
+ protected getDepthPadding(depth: number): number;
90
+ protected isCurrentThemeLight(): boolean;
91
+ protected needsExpansionTogglePadding(node: TreeNode): boolean;
92
+ }
93
+ export declare namespace ScmTreeWidget {
94
+ namespace Styles {
95
+ const NO_SELECT = "no-select";
96
+ }
97
+ interface Props {
98
+ treeNode: TreeNode;
99
+ model: ScmTreeModel;
100
+ menus: MenuModelRegistry;
101
+ contextKeys: ScmContextKeyService;
102
+ labelProvider: LabelProvider;
103
+ contextMenuRenderer: ContextMenuRenderer;
104
+ corePreferences?: CorePreferences;
105
+ caption: React.ReactNode;
106
+ }
107
+ }
108
+ export declare abstract class ScmElement<P extends ScmElement.Props = ScmElement.Props> extends React.Component<P, ScmElement.State> {
109
+ constructor(props: P);
110
+ protected readonly toDisposeOnUnmount: DisposableCollection;
111
+ componentDidMount(): void;
112
+ componentWillUnmount(): void;
113
+ protected detectHover: (element: HTMLElement | null) => void;
114
+ protected showHover: () => void;
115
+ protected hideHover: () => void;
116
+ protected renderContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
117
+ protected abstract get contextMenuPath(): MenuPath;
118
+ protected abstract get contextMenuArgs(): any[];
119
+ }
120
+ export declare namespace ScmElement {
121
+ interface Props extends ScmTreeWidget.Props {
122
+ renderExpansionToggle: () => React.ReactNode;
123
+ commandExecutor: MenuCommandExecutor;
124
+ }
125
+ interface State {
126
+ hover: boolean;
127
+ }
128
+ }
129
+ export declare class ScmResourceComponent extends ScmElement<ScmResourceComponent.Props> {
130
+ render(): JSX.Element | undefined;
131
+ protected open: () => void;
132
+ protected readonly contextMenuPath: string[];
133
+ protected get contextMenuArgs(): any[];
134
+ protected get singleNodeArgs(): any[];
135
+ protected hasCtrlCmdOrShiftMask(event: TreeWidget.ModifierAwareEvent): boolean;
136
+ /**
137
+ * Handle the single clicking of nodes present in the widget.
138
+ */
139
+ protected handleClick: (event: React.MouseEvent) => void;
140
+ /**
141
+ * Handle the double clicking of nodes present in the widget.
142
+ */
143
+ protected handleDoubleClick: () => void;
144
+ }
145
+ export declare namespace ScmResourceComponent {
146
+ interface Props extends ScmElement.Props {
147
+ treeNode: ScmFileChangeNode;
148
+ parentPath: URI;
149
+ sourceUri: string;
150
+ decoration: Decoration | undefined;
151
+ colors: ColorRegistry;
152
+ isLightTheme: boolean;
153
+ }
154
+ }
155
+ export declare class ScmResourceGroupElement extends ScmElement<ScmResourceGroupComponent.Props> {
156
+ render(): JSX.Element;
157
+ protected renderChangeCount(): React.ReactNode;
158
+ protected readonly contextMenuPath: string[];
159
+ protected get contextMenuArgs(): any[];
160
+ }
161
+ export declare namespace ScmResourceGroupComponent {
162
+ interface Props extends ScmElement.Props {
163
+ treeNode: ScmFileChangeGroupNode;
164
+ }
165
+ }
166
+ export declare class ScmResourceFolderElement extends ScmElement<ScmResourceFolderElement.Props> {
167
+ render(): JSX.Element;
168
+ protected readonly contextMenuPath: string[];
169
+ protected get contextMenuArgs(): any[];
170
+ protected get singleNodeArgs(): any[];
171
+ }
172
+ export declare namespace ScmResourceFolderElement {
173
+ interface Props extends ScmElement.Props {
174
+ treeNode: ScmFileChangeFolderNode;
175
+ sourceUri: string;
176
+ }
177
+ }
178
+ export declare class ScmInlineActions extends React.Component<ScmInlineActions.Props> {
179
+ render(): React.ReactNode;
180
+ }
181
+ export declare namespace ScmInlineActions {
182
+ interface Props {
183
+ hover: boolean;
184
+ menu: CompoundMenuNode;
185
+ menuPath: MenuPath;
186
+ commandExecutor: MenuCommandExecutor;
187
+ model: ScmTreeModel;
188
+ treeNode: TreeNode;
189
+ contextKeys: ScmContextKeyService;
190
+ args: any[];
191
+ children?: React.ReactNode;
192
+ }
193
+ }
194
+ export declare class ScmInlineAction extends React.Component<ScmInlineAction.Props> {
195
+ render(): React.ReactNode;
196
+ protected execute: (event: React.MouseEvent) => void;
197
+ }
198
+ export declare namespace ScmInlineAction {
199
+ interface Props {
200
+ node: ActionMenuNode;
201
+ commandExecutor: MenuCommandExecutor;
202
+ menuPath: MenuPath;
203
+ model: ScmTreeModel;
204
+ treeNode: TreeNode;
205
+ contextKeys: ScmContextKeyService;
206
+ args: any[];
207
+ }
208
+ }
209
209
  //# sourceMappingURL=scm-tree-widget.d.ts.map