@theia/toolbar 1.34.3 → 1.34.4

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 (54) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +32 -32
  3. package/lib/browser/abstract-toolbar-contribution.d.ts +16 -16
  4. package/lib/browser/abstract-toolbar-contribution.js +68 -68
  5. package/lib/browser/application-shell-with-toolbar-override.d.ts +14 -14
  6. package/lib/browser/application-shell-with-toolbar-override.js +98 -98
  7. package/lib/browser/codicons.d.ts +1 -1
  8. package/lib/browser/codicons.js +20 -20
  9. package/lib/browser/font-awesome-icons.d.ts +1 -1
  10. package/lib/browser/font-awesome-icons.js +20 -20
  11. package/lib/browser/package.spec.js +18 -18
  12. package/lib/browser/toolbar-command-contribution.d.ts +25 -25
  13. package/lib/browser/toolbar-command-contribution.js +211 -211
  14. package/lib/browser/toolbar-command-quick-input-service.d.ts +19 -19
  15. package/lib/browser/toolbar-command-quick-input-service.js +108 -108
  16. package/lib/browser/toolbar-constants.d.ts +23 -23
  17. package/lib/browser/toolbar-constants.js +75 -75
  18. package/lib/browser/toolbar-controller.d.ts +33 -33
  19. package/lib/browser/toolbar-controller.js +184 -184
  20. package/lib/browser/toolbar-defaults.d.ts +3 -3
  21. package/lib/browser/toolbar-defaults.js +60 -60
  22. package/lib/browser/toolbar-frontend-module.d.ts +4 -4
  23. package/lib/browser/toolbar-frontend-module.js +25 -25
  24. package/lib/browser/toolbar-icon-selector-dialog.d.ts +65 -65
  25. package/lib/browser/toolbar-icon-selector-dialog.js +235 -235
  26. package/lib/browser/toolbar-interfaces.d.ts +45 -45
  27. package/lib/browser/toolbar-interfaces.js +42 -42
  28. package/lib/browser/toolbar-preference-contribution.d.ts +9 -9
  29. package/lib/browser/toolbar-preference-contribution.js +34 -34
  30. package/lib/browser/toolbar-preference-schema.d.ts +5 -5
  31. package/lib/browser/toolbar-preference-schema.js +72 -72
  32. package/lib/browser/toolbar-storage-provider.d.ts +46 -46
  33. package/lib/browser/toolbar-storage-provider.js +354 -354
  34. package/lib/browser/toolbar.d.ts +56 -56
  35. package/lib/browser/toolbar.js +380 -380
  36. package/package.json +10 -10
  37. package/src/browser/abstract-toolbar-contribution.tsx +53 -53
  38. package/src/browser/application-shell-with-toolbar-override.ts +94 -94
  39. package/src/browser/codicons.ts +18 -18
  40. package/src/browser/font-awesome-icons.ts +18 -18
  41. package/src/browser/package.spec.ts +19 -19
  42. package/src/browser/style/toolbar.css +253 -253
  43. package/src/browser/toolbar-command-contribution.ts +211 -211
  44. package/src/browser/toolbar-command-quick-input-service.ts +86 -86
  45. package/src/browser/toolbar-constants.ts +79 -79
  46. package/src/browser/toolbar-controller.ts +182 -182
  47. package/src/browser/toolbar-defaults.ts +58 -58
  48. package/src/browser/toolbar-frontend-module.ts +30 -30
  49. package/src/browser/toolbar-icon-selector-dialog.tsx +296 -296
  50. package/src/browser/toolbar-interfaces.ts +76 -76
  51. package/src/browser/toolbar-preference-contribution.ts +38 -38
  52. package/src/browser/toolbar-preference-schema.ts +74 -74
  53. package/src/browser/toolbar-storage-provider.ts +348 -348
  54. package/src/browser/toolbar.tsx +421 -421
@@ -1,253 +1,253 @@
1
- /********************************************************************************
2
- * Copyright (C) 2022 Ericsson 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 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
-
17
- #main-toolbar {
18
- --theia-toolbar-height: calc(var(--theia-private-menubar-height) - 2px);
19
- --theia-toolbar-item-padding: 5px;
20
- --theia-toolbar-icon-size: 20px;
21
-
22
- min-height: var(--theia-toolbar-height);
23
- color: var(--theia-mainToolbar-foreground);
24
- background: var(--theia-mainToolbar-background);
25
- padding: 2px 4px;
26
- display: flex;
27
- flex-direction: column;
28
- justify-content: center;
29
- position: relative;
30
- }
31
-
32
- #main-toolbar .theia-progress-bar-container {
33
- position: absolute;
34
- bottom: 0;
35
- }
36
-
37
- .toolbar-wrapper {
38
- display: flex;
39
- flex-direction: row;
40
- width: 100%;
41
- overflow: hidden;
42
- }
43
-
44
- .toolbar-wrapper .toolbar-column {
45
- display: flex;
46
- flex: 1;
47
- }
48
-
49
- .toolbar-wrapper .left {
50
- justify-content: flex-start;
51
- }
52
-
53
- .toolbar-wrapper .center {
54
- justify-content: center;
55
- }
56
-
57
- .toolbar-wrapper .right {
58
- justify-content: flex-end;
59
- }
60
-
61
- .toolbar-wrapper:focus {
62
- outline: none;
63
- }
64
-
65
- #main-toolbar .toolbar-item {
66
- padding: 2px;
67
- margin: 0 2px;
68
- box-sizing: border-box;
69
- position: relative;
70
- background: unset;
71
- cursor: pointer;
72
- }
73
-
74
- #main-toolbar .empty-column-space {
75
- flex-grow: 1;
76
- }
77
-
78
- #main-toolbar .toolbar-item .codicon,
79
- #main-toolbar .toolbar-item .fa {
80
- font-size: var(--theia-toolbar-icon-size);
81
- width: unset;
82
- min-width: var(--theia-toolbar-icon-size);
83
- height: var(--theia-toolbar-icon-size);
84
- line-height: var(--theia-toolbar-icon-size);
85
- }
86
-
87
- #main-toolbar .toolbar-item.action-label.enabled:hover:not(.dragging):not(.active) {
88
- background-color: var(--theia-toolbar-hoverBackground);
89
- }
90
-
91
- #main-toolbar .toolbar-item.action-label:not(.enabled) {
92
- cursor: default;
93
- }
94
-
95
- #main-toolbar .toolbar-item .hover-overlay {
96
- position: absolute;
97
- pointer-events: none;
98
- height: 100%;
99
- width: 100%;
100
- left: 0;
101
- top: 0;
102
- }
103
-
104
- #main-toolbar .toolbar-item .hover-overlay.drag-over {
105
- background-color: var(--theia-activityBar-foreground);
106
- opacity: 0.3;
107
- }
108
-
109
- #main-toolbar .toolbar-item .hover-overlay.location-left {
110
- width: 25%;
111
- }
112
-
113
- #main-toolbar .toolbar-item .hover-overlay.location-right {
114
- width: 25%;
115
- left: 75%;
116
- right: 0;
117
- }
118
-
119
- #main-toolbar .toolbar-item.dragging {
120
- opacity: 0.3;
121
- }
122
-
123
- #main-toolbar .toolbar-item:focus {
124
- outline: none;
125
- }
126
-
127
- #main-toolbar .item:focus,
128
- #main-toolbar .item div:focus {
129
- outline: none;
130
- }
131
-
132
- #main-toolbar .separator {
133
- width: 1px;
134
- background-color: var(--theia-activityBar-foreground);
135
- opacity: var(--theia-mod-disabled-opacity);
136
- margin: 0 5px;
137
- }
138
-
139
- .toolbar-column {
140
- display: flex;
141
- }
142
-
143
- .toolbar-column.left {
144
- margin-right: var(--theia-toolbar-item-padding);
145
- }
146
-
147
- .toolbar-column.right {
148
- margin-left: var(--theia-toolbar-item-padding);
149
- }
150
-
151
- .toolbar-column.empty {
152
- min-width: 60px;
153
- }
154
-
155
- .empty-column-space.drag-over {
156
- background-color: var(--theia-activityBar-foreground);
157
- opacity: 0.3;
158
- border-radius: 2px;
159
- }
160
-
161
- #toolbar-icon-selector-dialog {
162
- --theia-icon-dialog-icon-size: 20px;
163
- }
164
-
165
- #toolbar-icon-selector-dialog .dialogBlock {
166
- max-height: 75%;
167
- width: 600px;
168
- }
169
-
170
- #toolbar-icon-selector-dialog .dialogContent {
171
- overflow: hidden;
172
- display: block;
173
- }
174
-
175
- #toolbar-icon-selector-dialog .dialogContent .icon-selector-options {
176
- display: flex;
177
- }
178
-
179
- #toolbar-icon-selector-dialog .dialogContent .icon-wrapper:focus {
180
- box-shadow: unset;
181
- outline: solid 1px var(--theia-focusBorder);
182
- }
183
-
184
- #toolbar-icon-selector-dialog .dialogControl {
185
- padding-top: var(--theia-ui-padding);
186
- }
187
-
188
- #toolbar-icon-selector-dialog .toolbar-icon-dialog-content.grid {
189
- --grid-size: 28px;
190
- display: grid;
191
- grid-template-columns: repeat(20, var(--grid-size));
192
- grid-template-rows: var(--grid-size);
193
- grid-auto-rows: var(--grid-size);
194
- }
195
-
196
- #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .icon-wrapper {
197
- height: 100%;
198
- width: 100%;
199
- display: flex;
200
- justify-content: center;
201
- align-items: center;
202
- }
203
-
204
- #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .search-placeholder {
205
- text-align: center;
206
- margin-top: var(--theia-ui-padding);
207
- font-size: 1.2em;
208
- }
209
-
210
- #toolbar-icon-selector-dialog .toolbar-icon-controls {
211
- display: flex;
212
- width: 100%;
213
- justify-content: space-between;
214
- }
215
-
216
- #toolbar-icon-selector-dialog .toolbar-icon-controls .default-button {
217
- display: flex;
218
- }
219
-
220
- #toolbar-icon-selector-dialog .toolbar-icon-controls .toolbar-default-icon {
221
- margin-left: var(--theia-ui-padding);
222
- font-size: var(--theia-icon-dialog-icon-size);
223
- }
224
-
225
- #toolbar-icon-selector-dialog .icon-selector-options {
226
- justify-content: space-between;
227
- }
228
-
229
- #toolbar-icon-selector-dialog .icon-selector-options .icon-filter-input {
230
- height: 18px;
231
- }
232
-
233
- #toolbar-icon-selector-dialog .toolbar-icon-select {
234
- margin-bottom: var(--theia-ui-padding);
235
- }
236
-
237
-
238
- #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .icon-wrapper.selected {
239
- background-color: var(--theia-list-activeSelectionBackground);
240
- }
241
-
242
- #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .fa,
243
- #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .codicon {
244
- font-size: var(--theia-icon-dialog-icon-size);
245
- }
246
-
247
- #toolbar-icon-selector-dialog .toolbar-scroll-container {
248
- height: 375px;
249
- position: relative;
250
- padding: 0 var(--theia-ui-padding);
251
- border: 1px solid var(--theia-editorWidget-border);
252
- background-color: var(--theia-dropdown-background);
253
- }
1
+ /********************************************************************************
2
+ * Copyright (C) 2022 Ericsson 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 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ #main-toolbar {
18
+ --theia-toolbar-height: calc(var(--theia-private-menubar-height) - 2px);
19
+ --theia-toolbar-item-padding: 5px;
20
+ --theia-toolbar-icon-size: 20px;
21
+
22
+ min-height: var(--theia-toolbar-height);
23
+ color: var(--theia-mainToolbar-foreground);
24
+ background: var(--theia-mainToolbar-background);
25
+ padding: 2px 4px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ justify-content: center;
29
+ position: relative;
30
+ }
31
+
32
+ #main-toolbar .theia-progress-bar-container {
33
+ position: absolute;
34
+ bottom: 0;
35
+ }
36
+
37
+ .toolbar-wrapper {
38
+ display: flex;
39
+ flex-direction: row;
40
+ width: 100%;
41
+ overflow: hidden;
42
+ }
43
+
44
+ .toolbar-wrapper .toolbar-column {
45
+ display: flex;
46
+ flex: 1;
47
+ }
48
+
49
+ .toolbar-wrapper .left {
50
+ justify-content: flex-start;
51
+ }
52
+
53
+ .toolbar-wrapper .center {
54
+ justify-content: center;
55
+ }
56
+
57
+ .toolbar-wrapper .right {
58
+ justify-content: flex-end;
59
+ }
60
+
61
+ .toolbar-wrapper:focus {
62
+ outline: none;
63
+ }
64
+
65
+ #main-toolbar .toolbar-item {
66
+ padding: 2px;
67
+ margin: 0 2px;
68
+ box-sizing: border-box;
69
+ position: relative;
70
+ background: unset;
71
+ cursor: pointer;
72
+ }
73
+
74
+ #main-toolbar .empty-column-space {
75
+ flex-grow: 1;
76
+ }
77
+
78
+ #main-toolbar .toolbar-item .codicon,
79
+ #main-toolbar .toolbar-item .fa {
80
+ font-size: var(--theia-toolbar-icon-size);
81
+ width: unset;
82
+ min-width: var(--theia-toolbar-icon-size);
83
+ height: var(--theia-toolbar-icon-size);
84
+ line-height: var(--theia-toolbar-icon-size);
85
+ }
86
+
87
+ #main-toolbar .toolbar-item.action-label.enabled:hover:not(.dragging):not(.active) {
88
+ background-color: var(--theia-toolbar-hoverBackground);
89
+ }
90
+
91
+ #main-toolbar .toolbar-item.action-label:not(.enabled) {
92
+ cursor: default;
93
+ }
94
+
95
+ #main-toolbar .toolbar-item .hover-overlay {
96
+ position: absolute;
97
+ pointer-events: none;
98
+ height: 100%;
99
+ width: 100%;
100
+ left: 0;
101
+ top: 0;
102
+ }
103
+
104
+ #main-toolbar .toolbar-item .hover-overlay.drag-over {
105
+ background-color: var(--theia-activityBar-foreground);
106
+ opacity: 0.3;
107
+ }
108
+
109
+ #main-toolbar .toolbar-item .hover-overlay.location-left {
110
+ width: 25%;
111
+ }
112
+
113
+ #main-toolbar .toolbar-item .hover-overlay.location-right {
114
+ width: 25%;
115
+ left: 75%;
116
+ right: 0;
117
+ }
118
+
119
+ #main-toolbar .toolbar-item.dragging {
120
+ opacity: 0.3;
121
+ }
122
+
123
+ #main-toolbar .toolbar-item:focus {
124
+ outline: none;
125
+ }
126
+
127
+ #main-toolbar .item:focus,
128
+ #main-toolbar .item div:focus {
129
+ outline: none;
130
+ }
131
+
132
+ #main-toolbar .separator {
133
+ width: 1px;
134
+ background-color: var(--theia-activityBar-foreground);
135
+ opacity: var(--theia-mod-disabled-opacity);
136
+ margin: 0 5px;
137
+ }
138
+
139
+ .toolbar-column {
140
+ display: flex;
141
+ }
142
+
143
+ .toolbar-column.left {
144
+ margin-right: var(--theia-toolbar-item-padding);
145
+ }
146
+
147
+ .toolbar-column.right {
148
+ margin-left: var(--theia-toolbar-item-padding);
149
+ }
150
+
151
+ .toolbar-column.empty {
152
+ min-width: 60px;
153
+ }
154
+
155
+ .empty-column-space.drag-over {
156
+ background-color: var(--theia-activityBar-foreground);
157
+ opacity: 0.3;
158
+ border-radius: 2px;
159
+ }
160
+
161
+ #toolbar-icon-selector-dialog {
162
+ --theia-icon-dialog-icon-size: 20px;
163
+ }
164
+
165
+ #toolbar-icon-selector-dialog .dialogBlock {
166
+ max-height: 75%;
167
+ width: 600px;
168
+ }
169
+
170
+ #toolbar-icon-selector-dialog .dialogContent {
171
+ overflow: hidden;
172
+ display: block;
173
+ }
174
+
175
+ #toolbar-icon-selector-dialog .dialogContent .icon-selector-options {
176
+ display: flex;
177
+ }
178
+
179
+ #toolbar-icon-selector-dialog .dialogContent .icon-wrapper:focus {
180
+ box-shadow: unset;
181
+ outline: solid 1px var(--theia-focusBorder);
182
+ }
183
+
184
+ #toolbar-icon-selector-dialog .dialogControl {
185
+ padding-top: var(--theia-ui-padding);
186
+ }
187
+
188
+ #toolbar-icon-selector-dialog .toolbar-icon-dialog-content.grid {
189
+ --grid-size: 28px;
190
+ display: grid;
191
+ grid-template-columns: repeat(20, var(--grid-size));
192
+ grid-template-rows: var(--grid-size);
193
+ grid-auto-rows: var(--grid-size);
194
+ }
195
+
196
+ #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .icon-wrapper {
197
+ height: 100%;
198
+ width: 100%;
199
+ display: flex;
200
+ justify-content: center;
201
+ align-items: center;
202
+ }
203
+
204
+ #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .search-placeholder {
205
+ text-align: center;
206
+ margin-top: var(--theia-ui-padding);
207
+ font-size: 1.2em;
208
+ }
209
+
210
+ #toolbar-icon-selector-dialog .toolbar-icon-controls {
211
+ display: flex;
212
+ width: 100%;
213
+ justify-content: space-between;
214
+ }
215
+
216
+ #toolbar-icon-selector-dialog .toolbar-icon-controls .default-button {
217
+ display: flex;
218
+ }
219
+
220
+ #toolbar-icon-selector-dialog .toolbar-icon-controls .toolbar-default-icon {
221
+ margin-left: var(--theia-ui-padding);
222
+ font-size: var(--theia-icon-dialog-icon-size);
223
+ }
224
+
225
+ #toolbar-icon-selector-dialog .icon-selector-options {
226
+ justify-content: space-between;
227
+ }
228
+
229
+ #toolbar-icon-selector-dialog .icon-selector-options .icon-filter-input {
230
+ height: 18px;
231
+ }
232
+
233
+ #toolbar-icon-selector-dialog .toolbar-icon-select {
234
+ margin-bottom: var(--theia-ui-padding);
235
+ }
236
+
237
+
238
+ #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .icon-wrapper.selected {
239
+ background-color: var(--theia-list-activeSelectionBackground);
240
+ }
241
+
242
+ #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .fa,
243
+ #toolbar-icon-selector-dialog .toolbar-icon-dialog-content .codicon {
244
+ font-size: var(--theia-icon-dialog-icon-size);
245
+ }
246
+
247
+ #toolbar-icon-selector-dialog .toolbar-scroll-container {
248
+ height: 375px;
249
+ position: relative;
250
+ padding: 0 var(--theia-ui-padding);
251
+ border: 1px solid var(--theia-editorWidget-border);
252
+ background-color: var(--theia-dropdown-background);
253
+ }