@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,271 +1,271 @@
1
- /********************************************************************************
2
- * Copyright (C) 2019 Red Hat, Inc. and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
-
17
- .theia-scm-commit {
18
- overflow: hidden;
19
- font-size: var(--theia-ui-font-size1);
20
- max-height: calc(100% - var(--theia-border-width));
21
- position: relative;
22
- padding: 5px 5px 0px 19px;
23
- }
24
-
25
- .theia-scm {
26
- box-sizing: border-box;
27
- height: 100%;
28
- }
29
-
30
- .groups-outer-container:focus {
31
- outline: 0;
32
- box-shadow: none;
33
- border: none;
34
- }
35
-
36
- .theia-scm .noWrapInfo {
37
- width: 100%;
38
- align-items: center;
39
- }
40
-
41
- .theia-scm:focus,
42
- .theia-scm :focus {
43
- outline: 0;
44
- box-shadow: none;
45
- border: none;
46
- }
47
-
48
- .theia-scm .space-between {
49
- justify-content: space-between;
50
- }
51
-
52
- .theia-scm .changesHeader {
53
- font-weight: bold;
54
- }
55
-
56
- .theia-scm .theia-scm-amend {
57
- margin: 5px 0;
58
- }
59
-
60
- .theia-scm #messageInputContainer {
61
- position: relative;
62
- }
63
-
64
- .theia-scm #repositoryListContainer {
65
- display: flex;
66
- margin-bottom: 5px;
67
- flex: 1;
68
- }
69
-
70
- .theia-scm .groups-outer-container {
71
- overflow-y: auto;
72
- width: 100%;
73
- flex-grow: 1;
74
- }
75
-
76
- .theia-scm .warn {
77
- background-color: var(--theia-inputValidation-warningBackground) !important;
78
- }
79
-
80
- .theia-scm-main-container {
81
- display: flex;
82
- flex-direction: column;
83
- height: 100%;
84
- }
85
-
86
- .theia-scm-input-message-container {
87
- display: flex;
88
- flex-direction: column;
89
- margin: 0px 0px 7px 0px;
90
- max-height: 400px;
91
- }
92
-
93
- .theia-scm-input-message-container textarea {
94
- line-height: var(--theia-content-line-height);
95
- resize: none;
96
- box-sizing: border-box;
97
- min-height: 32px;
98
- padding: 4px;
99
- border: none;
100
- }
101
-
102
- .theia-scm-input-message-container textarea:placeholder-shown {
103
- overflow: hidden;
104
- text-overflow: ellipsis;
105
- white-space: nowrap;
106
- }
107
-
108
- .theia-scm-input-message-container textarea:focus {
109
- outline: var(--theia-border-width) solid var(--theia-focusBorder);
110
- }
111
-
112
- .theia-scm-input-message {
113
- width: 100%;
114
- }
115
-
116
- .theia-scm-input-message-idle:not(:focus) {
117
- border-color: var(--theia-input-border);
118
- }
119
-
120
- .theia-scm-input-message-info {
121
- border-color: var(--theia-inputValidation-infoBorder) !important;
122
- }
123
-
124
- .theia-scm-input-message-success {
125
- border-color: var(--theia-successBackground) !important;
126
- }
127
-
128
- .theia-scm-input-message-warning {
129
- border-color: var(--theia-inputValidation-warningBorder) !important;
130
- }
131
-
132
- .theia-scm-input-message-error {
133
- border-color: var(--theia-inputValidation-errorBorder) !important;
134
- }
135
-
136
- .theia-scm-message,
137
- .theia-scm-input-validation-message {
138
- padding: 4px 4px 4px 4px;
139
- }
140
-
141
- .theia-scm-validation-message-info {
142
- background-color: var(--theia-inputValidation-infoBackground) !important;
143
- color: var(--theia-inputValidation-infoForeground);
144
- border: var(--theia-border-width) solid
145
- var(--theia-inputValidation-infoBorder);
146
- border-top: none; /* remove top border since the input declares it already */
147
- }
148
-
149
- .theia-scm-validation-message-success {
150
- background-color: var(--theia-successBackground) !important;
151
- color: var(--theia-inputValidation-warningBackground);
152
- }
153
-
154
- .theia-scm-message-warning,
155
- .theia-scm-validation-message-warning {
156
- background-color: var(--theia-inputValidation-warningBackground) !important;
157
- color: var(--theia-inputValidation-warningForeground);
158
- border: var(--theia-border-width) solid
159
- var(--theia-inputValidation-warningBorder);
160
- border-top: none; /* remove top border since the input declares it already */
161
- }
162
-
163
- .theia-scm-validation-message-error {
164
- background-color: var(--theia-inputValidation-errorBackground) !important;
165
- color: var(--theia-inputValidation-errorForeground);
166
- border: var(--theia-border-width) solid
167
- var(--theia-inputValidation-errorBorder);
168
- border-top: none; /* remove top border since the input declares it already */
169
- }
170
-
171
- .no-select:focus {
172
- outline: none;
173
- }
174
-
175
- .theia-scm .scmItem {
176
- font-size: var(--theia-ui-font-size1);
177
- display: flex;
178
- align-items: center;
179
- justify-content: space-between;
180
- height: var(--theia-content-line-height);
181
- line-height: var(--theia-content-line-height);
182
- padding: 0px calc(var(--theia-ui-padding) / 2);
183
- }
184
-
185
- .theia-scm .scmItem:hover {
186
- cursor: pointer;
187
- }
188
-
189
- .theia-scm:focus-within .scmItem:focus {
190
- background: var(--theia-list-focusBackground);
191
- color: var(--theia-list-focusForeground);
192
- }
193
-
194
- .theia-scm:not(:focus-within) .scmItem:not(:focus) {
195
- background: var(--theia-list-inactiveFocusBackground);
196
- }
197
-
198
- .theia-scm:focus-within .scmItem.theia-mod-selected {
199
- background: var(--theia-list-activeSelectionBackground);
200
- color: var(--theia-list-activeSelectionForeground);
201
- }
202
-
203
- .theia-scm:not(:focus-within) .scmItem.theia-mod-selected {
204
- background: var(--theia-list-inactiveSelectionBackground);
205
- color: var(--theia-list-inactiveSelectionForeground);
206
- }
207
-
208
- .theia-scm .scmItem .path {
209
- font-size: var(--theia-ui-font-size0);
210
- margin-left: var(--theia-ui-padding);
211
- opacity: 0.7;
212
- }
213
-
214
- .theia-scm .scmItem .status {
215
- width: 16px;
216
- text-align: center;
217
- padding-top: 2px;
218
- padding-bottom: 2px;
219
- font-size: var(--theia-ui-font-size0);
220
- }
221
-
222
- .theia-scm .decoration-icon {
223
- margin: 2px 0px;
224
- }
225
-
226
- .scm-change-count {
227
- float: right;
228
- }
229
-
230
- .scm-theia-header {
231
- display: flex;
232
- align-items: center;
233
- }
234
-
235
- .scm-theia-header:hover {
236
- cursor: pointer;
237
- }
238
-
239
- .theia-scm-inline-actions-container {
240
- display: flex;
241
- justify-content: flex-end;
242
- margin-left: 3px;
243
- min-height: 16px;
244
- }
245
-
246
- .theia-scm-inline-actions {
247
- display: flex;
248
- margin: 0 3px;
249
- }
250
-
251
- .theia-scm-inline-actions a {
252
- color: var(--theia-icon-foreground);
253
- }
254
-
255
- .theia-scm-inline-action {
256
- font-size: var(--theia-ui-font-size1);
257
- margin: 0 2px;
258
- cursor: pointer;
259
- display: flex;
260
- align-items: center;
261
- }
262
-
263
- .theia-scm-inline-action .open-file {
264
- height: var(--theia-icon-size);
265
- width: 12px;
266
- background: var(--theia-icon-open-file) no-repeat center center;
267
- }
268
-
269
- .theia-scm-panel {
270
- overflow: visible;
271
- }
1
+ /********************************************************************************
2
+ * Copyright (C) 2019 Red Hat, Inc. and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ .theia-scm-commit {
18
+ overflow: hidden;
19
+ font-size: var(--theia-ui-font-size1);
20
+ max-height: calc(100% - var(--theia-border-width));
21
+ position: relative;
22
+ padding: 5px 5px 0px 19px;
23
+ }
24
+
25
+ .theia-scm {
26
+ box-sizing: border-box;
27
+ height: 100%;
28
+ }
29
+
30
+ .groups-outer-container:focus {
31
+ outline: 0;
32
+ box-shadow: none;
33
+ border: none;
34
+ }
35
+
36
+ .theia-scm .noWrapInfo {
37
+ width: 100%;
38
+ align-items: center;
39
+ }
40
+
41
+ .theia-scm:focus,
42
+ .theia-scm :focus {
43
+ outline: 0;
44
+ box-shadow: none;
45
+ border: none;
46
+ }
47
+
48
+ .theia-scm .space-between {
49
+ justify-content: space-between;
50
+ }
51
+
52
+ .theia-scm .changesHeader {
53
+ font-weight: bold;
54
+ }
55
+
56
+ .theia-scm .theia-scm-amend {
57
+ margin: 5px 0;
58
+ }
59
+
60
+ .theia-scm #messageInputContainer {
61
+ position: relative;
62
+ }
63
+
64
+ .theia-scm #repositoryListContainer {
65
+ display: flex;
66
+ margin-bottom: 5px;
67
+ flex: 1;
68
+ }
69
+
70
+ .theia-scm .groups-outer-container {
71
+ overflow-y: auto;
72
+ width: 100%;
73
+ flex-grow: 1;
74
+ }
75
+
76
+ .theia-scm .warn {
77
+ background-color: var(--theia-inputValidation-warningBackground) !important;
78
+ }
79
+
80
+ .theia-scm-main-container {
81
+ display: flex;
82
+ flex-direction: column;
83
+ height: 100%;
84
+ }
85
+
86
+ .theia-scm-input-message-container {
87
+ display: flex;
88
+ flex-direction: column;
89
+ margin: 0px 0px 7px 0px;
90
+ max-height: 400px;
91
+ }
92
+
93
+ .theia-scm-input-message-container textarea {
94
+ line-height: var(--theia-content-line-height);
95
+ resize: none;
96
+ box-sizing: border-box;
97
+ min-height: 32px;
98
+ padding: 4px;
99
+ border: none;
100
+ }
101
+
102
+ .theia-scm-input-message-container textarea:placeholder-shown {
103
+ overflow: hidden;
104
+ text-overflow: ellipsis;
105
+ white-space: nowrap;
106
+ }
107
+
108
+ .theia-scm-input-message-container textarea:focus {
109
+ outline: var(--theia-border-width) solid var(--theia-focusBorder);
110
+ }
111
+
112
+ .theia-scm-input-message {
113
+ width: 100%;
114
+ }
115
+
116
+ .theia-scm-input-message-idle:not(:focus) {
117
+ border-color: var(--theia-input-border);
118
+ }
119
+
120
+ .theia-scm-input-message-info {
121
+ border-color: var(--theia-inputValidation-infoBorder) !important;
122
+ }
123
+
124
+ .theia-scm-input-message-success {
125
+ border-color: var(--theia-successBackground) !important;
126
+ }
127
+
128
+ .theia-scm-input-message-warning {
129
+ border-color: var(--theia-inputValidation-warningBorder) !important;
130
+ }
131
+
132
+ .theia-scm-input-message-error {
133
+ border-color: var(--theia-inputValidation-errorBorder) !important;
134
+ }
135
+
136
+ .theia-scm-message,
137
+ .theia-scm-input-validation-message {
138
+ padding: 4px 4px 4px 4px;
139
+ }
140
+
141
+ .theia-scm-validation-message-info {
142
+ background-color: var(--theia-inputValidation-infoBackground) !important;
143
+ color: var(--theia-inputValidation-infoForeground);
144
+ border: var(--theia-border-width) solid
145
+ var(--theia-inputValidation-infoBorder);
146
+ border-top: none; /* remove top border since the input declares it already */
147
+ }
148
+
149
+ .theia-scm-validation-message-success {
150
+ background-color: var(--theia-successBackground) !important;
151
+ color: var(--theia-inputValidation-warningBackground);
152
+ }
153
+
154
+ .theia-scm-message-warning,
155
+ .theia-scm-validation-message-warning {
156
+ background-color: var(--theia-inputValidation-warningBackground) !important;
157
+ color: var(--theia-inputValidation-warningForeground);
158
+ border: var(--theia-border-width) solid
159
+ var(--theia-inputValidation-warningBorder);
160
+ border-top: none; /* remove top border since the input declares it already */
161
+ }
162
+
163
+ .theia-scm-validation-message-error {
164
+ background-color: var(--theia-inputValidation-errorBackground) !important;
165
+ color: var(--theia-inputValidation-errorForeground);
166
+ border: var(--theia-border-width) solid
167
+ var(--theia-inputValidation-errorBorder);
168
+ border-top: none; /* remove top border since the input declares it already */
169
+ }
170
+
171
+ .no-select:focus {
172
+ outline: none;
173
+ }
174
+
175
+ .theia-scm .scmItem {
176
+ font-size: var(--theia-ui-font-size1);
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: space-between;
180
+ height: var(--theia-content-line-height);
181
+ line-height: var(--theia-content-line-height);
182
+ padding: 0px calc(var(--theia-ui-padding) / 2);
183
+ }
184
+
185
+ .theia-scm .scmItem:hover {
186
+ cursor: pointer;
187
+ }
188
+
189
+ .theia-scm:focus-within .scmItem:focus {
190
+ background: var(--theia-list-focusBackground);
191
+ color: var(--theia-list-focusForeground);
192
+ }
193
+
194
+ .theia-scm:not(:focus-within) .scmItem:not(:focus) {
195
+ background: var(--theia-list-inactiveFocusBackground);
196
+ }
197
+
198
+ .theia-scm:focus-within .scmItem.theia-mod-selected {
199
+ background: var(--theia-list-activeSelectionBackground);
200
+ color: var(--theia-list-activeSelectionForeground);
201
+ }
202
+
203
+ .theia-scm:not(:focus-within) .scmItem.theia-mod-selected {
204
+ background: var(--theia-list-inactiveSelectionBackground);
205
+ color: var(--theia-list-inactiveSelectionForeground);
206
+ }
207
+
208
+ .theia-scm .scmItem .path {
209
+ font-size: var(--theia-ui-font-size0);
210
+ margin-left: var(--theia-ui-padding);
211
+ opacity: 0.7;
212
+ }
213
+
214
+ .theia-scm .scmItem .status {
215
+ width: 16px;
216
+ text-align: center;
217
+ padding-top: 2px;
218
+ padding-bottom: 2px;
219
+ font-size: var(--theia-ui-font-size0);
220
+ }
221
+
222
+ .theia-scm .decoration-icon {
223
+ margin: 2px 0px;
224
+ }
225
+
226
+ .scm-change-count {
227
+ float: right;
228
+ }
229
+
230
+ .scm-theia-header {
231
+ display: flex;
232
+ align-items: center;
233
+ }
234
+
235
+ .scm-theia-header:hover {
236
+ cursor: pointer;
237
+ }
238
+
239
+ .theia-scm-inline-actions-container {
240
+ display: flex;
241
+ justify-content: flex-end;
242
+ margin-left: 3px;
243
+ min-height: 16px;
244
+ }
245
+
246
+ .theia-scm-inline-actions {
247
+ display: flex;
248
+ margin: 0 3px;
249
+ }
250
+
251
+ .theia-scm-inline-actions a {
252
+ color: var(--theia-icon-foreground);
253
+ }
254
+
255
+ .theia-scm-inline-action {
256
+ font-size: var(--theia-ui-font-size1);
257
+ margin: 0 2px;
258
+ cursor: pointer;
259
+ display: flex;
260
+ align-items: center;
261
+ }
262
+
263
+ .theia-scm-inline-action .open-file {
264
+ height: var(--theia-icon-size);
265
+ width: 12px;
266
+ background: var(--theia-icon-open-file) no-repeat center center;
267
+ }
268
+
269
+ .theia-scm-panel {
270
+ overflow: visible;
271
+ }