@theia/secondary-window 1.77.0-next.95 → 1.77.0
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.
- package/lib/browser/secondary-window-frontend-contribution.js +46 -55
- package/lib/browser/secondary-window-frontend-contribution.js.map +1 -1
- package/lib/browser/secondary-window-frontend-module.js +10 -12
- package/lib/browser/secondary-window-frontend-module.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -1
- package/lib/package.spec.js.map +1 -1
- package/package.json +12 -4
- package/src/browser/secondary-window-frontend-module.ts +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -14,29 +13,27 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
const secondary_window_handler_1 = require("@theia/core/lib/browser/secondary-window-handler");
|
|
27
|
-
exports.EXTRACT_WIDGET = command_1.Command.toLocalizedCommand({
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
18
|
+
import { Command } from '@theia/core/lib/common/command';
|
|
19
|
+
import { codicon, ExtractableWidget, Widget } from '@theia/core/lib/browser/widgets';
|
|
20
|
+
import { ApplicationShell } from '@theia/core/lib/browser/shell/application-shell';
|
|
21
|
+
import { SHELL_TABBAR_CONTEXT_MENU } from '@theia/core/lib/browser/shell/tab-bars';
|
|
22
|
+
import { NativeTabDragService } from '@theia/core/lib/browser/shell/native-tab-drag-service';
|
|
23
|
+
import { extractSecondaryWindow, getAllWidgetsFromSecondaryWindow, SecondaryWindowHandler } from '@theia/core/lib/browser/secondary-window-handler';
|
|
24
|
+
export const EXTRACT_WIDGET = Command.toLocalizedCommand({
|
|
28
25
|
id: 'extract-widget',
|
|
29
26
|
label: 'Move View to Secondary Window'
|
|
30
27
|
}, 'theia/secondary-window/extract-widget');
|
|
31
|
-
|
|
28
|
+
export const RESTORE_WIDGET = Command.toLocalizedCommand({
|
|
32
29
|
id: 'restore-widget',
|
|
33
30
|
label: 'Move View to Main Window'
|
|
34
31
|
}, 'theia/secondary-window/restore-widget');
|
|
35
|
-
|
|
32
|
+
export const RESTORE_ALL_WIDGETS = Command.toLocalizedCommand({
|
|
36
33
|
id: 'restore-all-widgets',
|
|
37
34
|
label: 'Move All Views to Main Window'
|
|
38
35
|
}, 'theia/secondary-window/restore-all-widgets');
|
|
39
|
-
|
|
36
|
+
export const SHELL_TABBAR_CONTEXT_SECONDARY_WINDOW = [...SHELL_TABBAR_CONTEXT_MENU, '6_secondaryWindow'];
|
|
40
37
|
/**
|
|
41
38
|
* Contributes the commands to move widgets to secondary windows and back, and registers them in the toolbar and in the context menu of tabs.
|
|
42
39
|
* In addition, extracts widgets whose tab is dragged out of the application's windows.
|
|
@@ -47,32 +44,32 @@ let SecondaryWindowContribution = class SecondaryWindowContribution {
|
|
|
47
44
|
}
|
|
48
45
|
onDidDropTabOutsideWindows({ title, screenX, screenY }) {
|
|
49
46
|
const widget = title.owner;
|
|
50
|
-
const secondaryWindow =
|
|
51
|
-
if (secondaryWindow &&
|
|
47
|
+
const secondaryWindow = extractSecondaryWindow(widget);
|
|
48
|
+
if (secondaryWindow && getAllWidgetsFromSecondaryWindow(secondaryWindow)?.length === 1) {
|
|
52
49
|
// the widget is the only one in its secondary window, so move the window instead of opening a new one
|
|
53
50
|
secondaryWindow.moveTo(screenX, screenY);
|
|
54
51
|
}
|
|
55
|
-
else if (
|
|
52
|
+
else if (ExtractableWidget.is(widget)) {
|
|
56
53
|
this.secondaryWindowHandler.moveWidgetToSecondaryWindow(widget, { position: { x: screenX, y: screenY } });
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
registerCommands(commands) {
|
|
60
57
|
const canExtract = (arg) => {
|
|
61
58
|
const widget = this.getTargetWidget(arg);
|
|
62
|
-
return
|
|
59
|
+
return ExtractableWidget.is(widget) && widget.secondaryWindow === undefined;
|
|
63
60
|
};
|
|
64
|
-
commands.registerCommand(
|
|
61
|
+
commands.registerCommand(EXTRACT_WIDGET, {
|
|
65
62
|
execute: async (arg) => {
|
|
66
63
|
const widget = this.getTargetWidget(arg);
|
|
67
|
-
if (
|
|
64
|
+
if (ExtractableWidget.is(widget)) {
|
|
68
65
|
this.secondaryWindowHandler.moveWidgetToSecondaryWindow(widget);
|
|
69
66
|
}
|
|
70
67
|
},
|
|
71
68
|
isVisible: canExtract,
|
|
72
69
|
isEnabled: canExtract,
|
|
73
70
|
});
|
|
74
|
-
const isInSecondaryWindow = (arg) =>
|
|
75
|
-
commands.registerCommand(
|
|
71
|
+
const isInSecondaryWindow = (arg) => extractSecondaryWindow(this.getTargetWidget(arg)) !== undefined;
|
|
72
|
+
commands.registerCommand(RESTORE_WIDGET, {
|
|
76
73
|
execute: async (arg) => {
|
|
77
74
|
const widget = this.getTargetWidget(arg);
|
|
78
75
|
if (widget) {
|
|
@@ -82,9 +79,9 @@ let SecondaryWindowContribution = class SecondaryWindowContribution {
|
|
|
82
79
|
isVisible: isInSecondaryWindow,
|
|
83
80
|
isEnabled: isInSecondaryWindow,
|
|
84
81
|
});
|
|
85
|
-
commands.registerCommand(
|
|
82
|
+
commands.registerCommand(RESTORE_ALL_WIDGETS, {
|
|
86
83
|
execute: async (arg) => {
|
|
87
|
-
const secondaryWindow =
|
|
84
|
+
const secondaryWindow = extractSecondaryWindow(this.getTargetWidget(arg));
|
|
88
85
|
if (secondaryWindow) {
|
|
89
86
|
await this.secondaryWindowHandler.moveAllWidgetsToMainWindow(secondaryWindow);
|
|
90
87
|
}
|
|
@@ -94,30 +91,30 @@ let SecondaryWindowContribution = class SecondaryWindowContribution {
|
|
|
94
91
|
});
|
|
95
92
|
}
|
|
96
93
|
registerMenus(menus) {
|
|
97
|
-
menus.registerMenuAction(
|
|
98
|
-
commandId:
|
|
94
|
+
menus.registerMenuAction(SHELL_TABBAR_CONTEXT_SECONDARY_WINDOW, {
|
|
95
|
+
commandId: EXTRACT_WIDGET.id,
|
|
99
96
|
order: 'a'
|
|
100
97
|
});
|
|
101
|
-
menus.registerMenuAction(
|
|
102
|
-
commandId:
|
|
98
|
+
menus.registerMenuAction(SHELL_TABBAR_CONTEXT_SECONDARY_WINDOW, {
|
|
99
|
+
commandId: RESTORE_WIDGET.id,
|
|
103
100
|
order: 'b'
|
|
104
101
|
});
|
|
105
|
-
menus.registerMenuAction(
|
|
106
|
-
commandId:
|
|
102
|
+
menus.registerMenuAction(SHELL_TABBAR_CONTEXT_SECONDARY_WINDOW, {
|
|
103
|
+
commandId: RESTORE_ALL_WIDGETS.id,
|
|
107
104
|
order: 'c'
|
|
108
105
|
});
|
|
109
106
|
}
|
|
110
107
|
registerToolbarItems(registry) {
|
|
111
108
|
registry.registerItem({
|
|
112
|
-
id:
|
|
113
|
-
command:
|
|
114
|
-
icon:
|
|
109
|
+
id: EXTRACT_WIDGET.id,
|
|
110
|
+
command: EXTRACT_WIDGET.id,
|
|
111
|
+
icon: codicon('window'),
|
|
115
112
|
});
|
|
116
113
|
registry.registerItem({
|
|
117
|
-
id:
|
|
118
|
-
command:
|
|
114
|
+
id: RESTORE_WIDGET.id,
|
|
115
|
+
command: RESTORE_WIDGET.id,
|
|
119
116
|
// TODO use `open-in-window` once the codicon font bundled with Monaco provides it, see #17789
|
|
120
|
-
icon:
|
|
117
|
+
icon: codicon('screen-normal'),
|
|
121
118
|
});
|
|
122
119
|
}
|
|
123
120
|
/**
|
|
@@ -125,7 +122,7 @@ let SecondaryWindowContribution = class SecondaryWindowContribution {
|
|
|
125
122
|
* whose context menu has been opened, or the current widget if no argument is passed, e.g. from the command palette
|
|
126
123
|
*/
|
|
127
124
|
getTargetWidget(arg) {
|
|
128
|
-
if (arg instanceof
|
|
125
|
+
if (arg instanceof Widget) {
|
|
129
126
|
return arg;
|
|
130
127
|
}
|
|
131
128
|
// not using `instanceof Event`, the event may come from a secondary window, i.e. from another JavaScript realm
|
|
@@ -135,26 +132,20 @@ let SecondaryWindowContribution = class SecondaryWindowContribution {
|
|
|
135
132
|
return arg === undefined ? this.shell.currentWidget : undefined;
|
|
136
133
|
}
|
|
137
134
|
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
(0, inversify_1.inject)(secondary_window_handler_1.SecondaryWindowHandler),
|
|
141
|
-
tslib_1.__metadata("design:type", secondary_window_handler_1.SecondaryWindowHandler)
|
|
135
|
+
__decorate([
|
|
136
|
+
inject(SecondaryWindowHandler)
|
|
142
137
|
], SecondaryWindowContribution.prototype, "secondaryWindowHandler", void 0);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
tslib_1.__metadata("design:type", native_tab_drag_service_1.NativeTabDragService)
|
|
138
|
+
__decorate([
|
|
139
|
+
inject(NativeTabDragService)
|
|
146
140
|
], SecondaryWindowContribution.prototype, "nativeTabDragService", void 0);
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
tslib_1.__metadata("design:type", application_shell_1.ApplicationShell)
|
|
141
|
+
__decorate([
|
|
142
|
+
inject(ApplicationShell)
|
|
150
143
|
], SecondaryWindowContribution.prototype, "shell", void 0);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
tslib_1.__metadata("design:type", Function),
|
|
154
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
155
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
144
|
+
__decorate([
|
|
145
|
+
postConstruct()
|
|
156
146
|
], SecondaryWindowContribution.prototype, "init", null);
|
|
157
|
-
|
|
158
|
-
|
|
147
|
+
SecondaryWindowContribution = __decorate([
|
|
148
|
+
injectable()
|
|
159
149
|
], SecondaryWindowContribution);
|
|
150
|
+
export { SecondaryWindowContribution };
|
|
160
151
|
//# sourceMappingURL=secondary-window-frontend-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-window-frontend-contribution.js","sourceRoot":"","sources":["../../src/browser/secondary-window-frontend-contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secondary-window-frontend-contribution.js","sourceRoot":"","sources":["../../src/browser/secondary-window-frontend-contribution.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,kFAAkF;AAClF,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAwC,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE/F,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAA8B,MAAM,uDAAuD,CAAC;AAEzH,OAAO,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAEpJ,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IACrD,EAAE,EAAE,gBAAgB;IACpB,KAAK,EAAE,+BAA+B;CACzC,EAAE,uCAAuC,CAAC,CAAC;AAE5C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IACrD,EAAE,EAAE,gBAAgB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AC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;IACpE,CAAC;CACJ,CAAA;AAzGsB;IADlB,MAAM,CAAC,sBAAsB,CAAC;2EACmC;AAG/C;IADlB,MAAM,CAAC,oBAAoB,CAAC;yEACiC;AAG3C;IADlB,MAAM,CAAC,gBAAgB,CAAC;0DACkB;AAGjC;IADT,aAAa,EAAE;uDAGf;AAdQ,2BAA2B;IADvC,UAAU,EAAE;GACA,2BAA2B,CA4GvC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -14,16 +13,15 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
bind(
|
|
25
|
-
bind(
|
|
26
|
-
bind(
|
|
27
|
-
bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(secondary_window_frontend_contribution_1.SecondaryWindowContribution);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { SecondaryWindowContribution } from './secondary-window-frontend-contribution.js';
|
|
18
|
+
import { CommandContribution } from '@theia/core/lib/common/command';
|
|
19
|
+
import { MenuContribution } from '@theia/core/lib/common/menu';
|
|
20
|
+
import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
21
|
+
export default new ContainerModule(bind => {
|
|
22
|
+
bind(SecondaryWindowContribution).toSelf().inSingletonScope();
|
|
23
|
+
bind(CommandContribution).toService(SecondaryWindowContribution);
|
|
24
|
+
bind(MenuContribution).toService(SecondaryWindowContribution);
|
|
25
|
+
bind(TabBarToolbarContribution).toService(SecondaryWindowContribution);
|
|
28
26
|
});
|
|
29
27
|
//# sourceMappingURL=secondary-window-frontend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-window-frontend-module.js","sourceRoot":"","sources":["../../src/browser/secondary-window-frontend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secondary-window-frontend-module.js","sourceRoot":"","sources":["../../src/browser/secondary-window-frontend-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,kFAAkF;AAClF,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAE1F,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,2BAA2B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC9D,IAAI,CAAC,mBAAmB,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;IACjE,IAAI,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;IAC9D,IAAI,CAAC,yBAAyB,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;AAC3E,CAAC,CAAC,CAAC"}
|
package/lib/package.spec.d.ts
CHANGED
package/lib/package.spec.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2022 STMicroelectronics, Ericsson, ARM, EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -17,4 +16,5 @@
|
|
|
17
16
|
describe('secondary-window package', () => {
|
|
18
17
|
it('supports code coverage statistics', () => true);
|
|
19
18
|
});
|
|
19
|
+
export {};
|
|
20
20
|
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,kFAAkF;AAClF,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACtC,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/secondary-window",
|
|
3
|
-
"version": "1.77.0
|
|
3
|
+
"version": "1.77.0",
|
|
4
4
|
"description": "Theia - Secondary Window Extension",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.77.0
|
|
7
|
+
"@theia/core": "1.77.0",
|
|
7
8
|
"tslib": "^2.8.1"
|
|
8
9
|
},
|
|
9
10
|
"publishConfig": {
|
|
@@ -39,7 +40,14 @@
|
|
|
39
40
|
"watch": "theiaext watch"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@theia/ext-scripts": "1.
|
|
43
|
+
"@theia/ext-scripts": "1.77.0"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "9c6d81590b559ee8a78a7808203674f3127411f1",
|
|
46
|
+
"exports": {
|
|
47
|
+
"./package.json": "./package.json",
|
|
48
|
+
"./lib/*.json": "./lib/*.json",
|
|
49
|
+
"./lib/*.js": "./lib/*.js",
|
|
50
|
+
"./lib/*": "./lib/*.js",
|
|
51
|
+
"./*": "./*"
|
|
52
|
+
}
|
|
45
53
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { SecondaryWindowContribution } from './secondary-window-frontend-contribution';
|
|
18
|
+
import { SecondaryWindowContribution } from './secondary-window-frontend-contribution.js';
|
|
19
19
|
import { CommandContribution } from '@theia/core/lib/common/command';
|
|
20
20
|
import { MenuContribution } from '@theia/core/lib/common/menu';
|
|
21
21
|
import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|