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