@opensumi/ide-overlay 2.16.11 → 2.17.1
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/dialog.contextkey.d.ts +8 -0
- package/lib/browser/dialog.contextkey.d.ts.map +1 -0
- package/lib/browser/dialog.contextkey.js +23 -0
- package/lib/browser/dialog.contextkey.js.map +1 -0
- package/lib/browser/dialog.contribution.d.ts +7 -0
- package/lib/browser/dialog.contribution.d.ts.map +1 -0
- package/lib/browser/dialog.contribution.js +38 -0
- package/lib/browser/dialog.contribution.js.map +1 -0
- package/lib/browser/dialog.service.d.ts +1 -0
- package/lib/browser/dialog.service.d.ts.map +1 -1
- package/lib/browser/dialog.service.js +7 -0
- package/lib/browser/dialog.service.js.map +1 -1
- package/lib/browser/dialog.view.d.ts.map +1 -1
- package/lib/browser/dialog.view.js +3 -2
- package/lib/browser/dialog.view.js.map +1 -1
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +7 -0
- package/lib/browser/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IContextKey } from '@opensumi/ide-core-browser';
|
|
2
|
+
export declare class DialogContextKey {
|
|
3
|
+
private readonly globalContextKeyService;
|
|
4
|
+
readonly dialogViewVisibleContext: IContextKey<boolean>;
|
|
5
|
+
private readonly _contextKeyService;
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=dialog.contextkey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.contextkey.d.ts","sourceRoot":"","sources":["../../src/browser/dialog.contextkey.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG7E,qBACa,gBAAgB;IAE3B,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAqB;IAE7D,SAAgB,wBAAwB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAE/D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;;CAMzD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DialogContextKey = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
const dialog_1 = require("@opensumi/ide-core-browser/lib/contextkey/dialog");
|
|
8
|
+
let DialogContextKey = class DialogContextKey {
|
|
9
|
+
constructor() {
|
|
10
|
+
this._contextKeyService = this.globalContextKeyService;
|
|
11
|
+
this.dialogViewVisibleContext = dialog_1.DialogViewVisibleContext.bind(this._contextKeyService);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, di_1.Autowired)(ide_core_browser_1.IContextKeyService),
|
|
16
|
+
tslib_1.__metadata("design:type", Object)
|
|
17
|
+
], DialogContextKey.prototype, "globalContextKeyService", void 0);
|
|
18
|
+
DialogContextKey = tslib_1.__decorate([
|
|
19
|
+
(0, di_1.Injectable)(),
|
|
20
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
21
|
+
], DialogContextKey);
|
|
22
|
+
exports.DialogContextKey = DialogContextKey;
|
|
23
|
+
//# sourceMappingURL=dialog.contextkey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.contextkey.js","sourceRoot":"","sources":["../../src/browser/dialog.contextkey.ts"],"names":[],"mappings":";;;;AAAA,qCAAqD;AACrD,iEAA6E;AAC7E,6EAA4F;AAG5F,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAQ3B;QACE,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,CAAC;QACvD,IAAI,CAAC,wBAAwB,GAAG,iCAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACzF,CAAC;CACF,CAAA;AAVC;IADC,IAAA,cAAS,EAAC,qCAAkB,CAAC;;iEAC+B;AAFlD,gBAAgB;IAD5B,IAAA,eAAU,GAAE;;GACA,gBAAgB,CAY5B;AAZY,4CAAgB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CommandContribution, CommandRegistry, KeybindingContribution, KeybindingRegistry } from '@opensumi/ide-core-browser';
|
|
2
|
+
export declare class DialogContribution implements CommandContribution, KeybindingContribution {
|
|
3
|
+
private dialogService;
|
|
4
|
+
registerCommands(registry: CommandRegistry): void;
|
|
5
|
+
registerKeybindings(bindings: KeybindingRegistry): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=dialog.contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.contribution.d.ts","sourceRoot":"","sources":["../../src/browser/dialog.contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AAKpC,qBACa,kBAAmB,YAAW,mBAAmB,EAAE,sBAAsB;IAEpF,OAAO,CAAC,aAAa,CAAiB;IAEtC,gBAAgB,CAAC,QAAQ,EAAE,eAAe;IAgB1C,mBAAmB,CAAC,QAAQ,EAAE,kBAAkB;CAOjD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DialogContribution = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
const dialog_1 = require("@opensumi/ide-core-browser/lib/contextkey/dialog");
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
let DialogContribution = class DialogContribution {
|
|
10
|
+
registerCommands(registry) {
|
|
11
|
+
registry.registerCommand({
|
|
12
|
+
id: ide_core_browser_1.DIALOG_COMMANDS.ENSURE.id,
|
|
13
|
+
label: (0, ide_core_browser_1.localize)('dialog.ensure'),
|
|
14
|
+
}, {
|
|
15
|
+
execute: () => {
|
|
16
|
+
const buttons = this.dialogService.getButtons();
|
|
17
|
+
// 默认使用最后一个选项作为返回值
|
|
18
|
+
this.dialogService.hide(buttons[buttons.length - 1]);
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
registerKeybindings(bindings) {
|
|
23
|
+
bindings.registerKeybinding({
|
|
24
|
+
command: ide_core_browser_1.DIALOG_COMMANDS.ENSURE.id,
|
|
25
|
+
keybinding: 'enter',
|
|
26
|
+
when: `${dialog_1.DialogViewVisibleContext.raw}`,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, di_1.Autowired)(common_1.IDialogService),
|
|
32
|
+
tslib_1.__metadata("design:type", Object)
|
|
33
|
+
], DialogContribution.prototype, "dialogService", void 0);
|
|
34
|
+
DialogContribution = tslib_1.__decorate([
|
|
35
|
+
(0, ide_core_browser_1.Domain)(ide_core_browser_1.CommandContribution, ide_core_browser_1.KeybindingContribution)
|
|
36
|
+
], DialogContribution);
|
|
37
|
+
exports.DialogContribution = DialogContribution;
|
|
38
|
+
//# sourceMappingURL=dialog.contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.contribution.js","sourceRoot":"","sources":["../../src/browser/dialog.contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,iEAQoC;AACpC,6EAA4F;AAE5F,sCAA2C;AAG3C,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAI7B,gBAAgB,CAAC,QAAyB;QACxC,QAAQ,CAAC,eAAe,CACtB;YACE,EAAE,EAAE,kCAAe,CAAC,MAAM,CAAC,EAAE;YAC7B,KAAK,EAAE,IAAA,2BAAQ,EAAC,eAAe,CAAC;SACjC,EACD;YACE,OAAO,EAAE,GAAG,EAAE;gBACZ,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC;gBAChD,kBAAkB;gBAClB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;YACvD,CAAC;SACF,CACF,CAAC;IACJ,CAAC;IAED,mBAAmB,CAAC,QAA4B;QAC9C,QAAQ,CAAC,kBAAkB,CAAC;YAC1B,OAAO,EAAE,kCAAe,CAAC,MAAM,CAAC,EAAE;YAClC,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,GAAG,iCAAwB,CAAC,GAAG,EAAE;SACxC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAzBC;IADC,IAAA,cAAS,EAAC,uBAAc,CAAC;;yDACY;AAF3B,kBAAkB;IAD9B,IAAA,yBAAM,EAAC,sCAAmB,EAAE,yCAAsB,CAAC;GACvC,kBAAkB,CA2B9B;AA3BY,gDAAkB"}
|
|
@@ -4,6 +4,7 @@ import { IDialogService, AbstractMessageService, Icon } from '../common';
|
|
|
4
4
|
export declare class DialogService extends AbstractMessageService implements IDialogService {
|
|
5
5
|
protected type: MessageType | undefined;
|
|
6
6
|
protected deferred: Deferred<any>;
|
|
7
|
+
private readonly contextkeyService;
|
|
7
8
|
protected visible: boolean;
|
|
8
9
|
protected message: string | React.ReactNode;
|
|
9
10
|
protected title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.service.d.ts","sourceRoot":"","sources":["../../src/browser/dialog.service.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"dialog.service.d.ts","sourceRoot":"","sources":["../../src/browser/dialog.service.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIzE,qBACa,aAAc,SAAQ,sBAAuB,YAAW,cAAc;IACjF,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,CAAC;IAExC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;IAGlC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;IAGrD,SAAS,CAAC,OAAO,UAAS;IAG1B,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAM;IAGjD,SAAS,CAAC,KAAK,SAAM;IAGd,QAAQ,UAAQ;IAGvB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,CAAM;IAGjC,IAAI,CAAC,CAAC,GAAG,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,EACjC,IAAI,EAAE,WAAW,EACjB,OAAO,CAAC,EAAE,GAAG,EAAE,EACf,QAAQ,UAAO,GACd,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAczB,IAAI,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI;IAOjC,KAAK,IAAI,IAAI;IAMb,SAAS,IAAI,OAAO;IAIpB,UAAU,IAAI,MAAM,GAAG,KAAK,CAAC,SAAS;IAItC,OAAO,IAAI,WAAW,GAAG,SAAS;IAIlC,OAAO,IAAI,IAAI,GAAG,SAAS;IAsB3B,UAAU,IAAI,MAAM,EAAE;CAGvB"}
|
|
@@ -7,6 +7,7 @@ const mobx_1 = require("mobx");
|
|
|
7
7
|
const di_1 = require("@opensumi/di");
|
|
8
8
|
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
9
9
|
const common_1 = require("../common");
|
|
10
|
+
const dialog_contextkey_1 = require("./dialog.contextkey");
|
|
10
11
|
let DialogService = class DialogService extends common_1.AbstractMessageService {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
@@ -21,6 +22,7 @@ let DialogService = class DialogService extends common_1.AbstractMessageService
|
|
|
21
22
|
this.type = type;
|
|
22
23
|
this.message = message;
|
|
23
24
|
this.visible = true;
|
|
25
|
+
this.contextkeyService.dialogViewVisibleContext.set(true);
|
|
24
26
|
this.closable = closable;
|
|
25
27
|
if (buttons) {
|
|
26
28
|
this.buttons = buttons;
|
|
@@ -29,6 +31,7 @@ let DialogService = class DialogService extends common_1.AbstractMessageService
|
|
|
29
31
|
}
|
|
30
32
|
hide(value) {
|
|
31
33
|
this.visible = false;
|
|
34
|
+
this.contextkeyService.dialogViewVisibleContext.set(false);
|
|
32
35
|
this.deferred.resolve(value);
|
|
33
36
|
}
|
|
34
37
|
reset() {
|
|
@@ -70,6 +73,10 @@ let DialogService = class DialogService extends common_1.AbstractMessageService
|
|
|
70
73
|
return this.buttons;
|
|
71
74
|
}
|
|
72
75
|
};
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, di_1.Autowired)(dialog_contextkey_1.DialogContextKey),
|
|
78
|
+
tslib_1.__metadata("design:type", dialog_contextkey_1.DialogContextKey)
|
|
79
|
+
], DialogService.prototype, "contextkeyService", void 0);
|
|
73
80
|
tslib_1.__decorate([
|
|
74
81
|
mobx_1.observable,
|
|
75
82
|
tslib_1.__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.service.js","sourceRoot":"","sources":["../../src/browser/dialog.service.ts"],"names":[],"mappings":";;;;;AAAA,+BAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"dialog.service.js","sourceRoot":"","sources":["../../src/browser/dialog.service.ts"],"names":[],"mappings":";;;;;AAAA,+BAA0C;AAE1C,qCAAqD;AACrD,+DAAkE;AAElE,sCAAyE;AAEzE,2DAAuD;AAGvD,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,+BAAsB;IAAzD;;QASY,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAA6B,EAAE,CAAC;QAGvC,UAAK,GAAG,EAAE,CAAC;QAGd,aAAQ,GAAG,IAAI,CAAC;QAGb,YAAO,GAAa,EAAE,CAAC;IAwEnC,CAAC;IArEC,IAAI,CACF,OAAiC,EACjC,IAAiB,EACjB,OAAe,EACf,QAAQ,GAAG,IAAI;QAEf,IAAI,CAAC,QAAQ,GAAG,IAAI,0BAAQ,EAAU,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SACxB;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC/B,CAAC;IAGD,IAAI,CAAa,KAAS;QACxB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAGD,KAAK;QACH,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IACpB,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,OAAO;QACL,QAAQ,IAAI,CAAC,IAAI,EAAE;YACjB,KAAK,6BAAW,CAAC,KAAK;gBACpB,OAAO;oBACL,KAAK,EAAE,0CAA0C;oBACjD,SAAS,EAAE,cAAc;iBAC1B,CAAC;YACJ,KAAK,6BAAW,CAAC,IAAI;gBACnB,OAAO;oBACL,KAAK,EAAE,yCAAyC;oBAChD,SAAS,EAAE,aAAa;iBACzB,CAAC;YACJ,KAAK,6BAAW,CAAC,OAAO;gBACtB,OAAO;oBACL,KAAK,EAAE,4CAA4C;oBACnD,SAAS,EAAE,iBAAiB;iBAC7B,CAAC;YACJ;gBACE,MAAM;SACT;IACH,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF,CAAA;AAvFC;IADC,IAAA,cAAS,EAAC,oCAAgB,CAAC;sCACQ,oCAAgB;wDAAC;AAGrD;IADC,iBAAU;;8CACe;AAG1B;IADC,iBAAU;;8CACsC;AAGjD;IADC,iBAAU;;4CACU;AAGrB;IADC,iBAAU;;+CACY;AAGvB;IADC,iBAAU;;8CACsB;AAGjC;IADC,aAAM;;;;yCAiBN;AAGD;IADC,aAAM;;iEACkB,CAAC,oBAAD,CAAC;;yCAIzB;AAGD;IADC,aAAM;;;;0CAKN;AAtDU,aAAa;IADzB,IAAA,eAAU,GAAE;GACA,aAAa,CA6FzB;AA7FY,sCAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.view.d.ts","sourceRoot":"","sources":["../../src/browser/dialog.view.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"dialog.view.d.ts","sourceRoot":"","sources":["../../src/browser/dialog.view.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAQ5D,eAAO,MAAM,MAAM,iCAqDjB,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Dialog = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const mobx_react_lite_1 = require("mobx-react-lite");
|
|
6
|
-
const react_1 = tslib_1.
|
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
7
7
|
const ide_components_1 = require("@opensumi/ide-components");
|
|
8
8
|
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
9
9
|
const strings_1 = require("@opensumi/ide-core-common/lib/utils/strings");
|
|
@@ -14,6 +14,7 @@ exports.Dialog = (0, mobx_react_lite_1.observer)(() => {
|
|
|
14
14
|
const message = dialogService.getMessage();
|
|
15
15
|
const buttons = dialogService.getButtons();
|
|
16
16
|
const type = dialogService.getType();
|
|
17
|
+
const wrapperRef = (0, react_1.useRef)(null);
|
|
17
18
|
function afterClose() {
|
|
18
19
|
dialogService.reset();
|
|
19
20
|
}
|
|
@@ -25,6 +26,6 @@ exports.Dialog = (0, mobx_react_lite_1.observer)(() => {
|
|
|
25
26
|
dialogService.hide(value);
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
|
-
return (react_1.default.createElement(ide_components_1.Dialog, { visible: dialogService.isVisible(), onClose: handleClose, closable: dialogService.closable, afterClose: afterClose, message: message, type: 'confirm', messageType: type, icon: icon, buttons: buttons.length ? (buttons.map((button, index) => (react_1.default.createElement(ide_components_1.Button, { size: 'large', onClick: handlerClickButton(button), key: button, type: index === buttons.length - 1 ? 'primary' : 'secondary' }, (0, strings_1.mnemonicButtonLabel)(button, true))))) : (react_1.default.createElement(ide_components_1.Button, { size: 'large', onClick: handleClose, type: 'primary' }, (0, ide_core_browser_1.localize)('dialog.confirm'))) }));
|
|
29
|
+
return (react_1.default.createElement(ide_components_1.Dialog, { visible: dialogService.isVisible(), onClose: handleClose, closable: dialogService.closable, afterClose: afterClose, message: message, type: 'confirm', messageType: type, icon: icon, keyboard: true, buttons: buttons.length ? (buttons.map((button, index) => (react_1.default.createElement(ide_components_1.Button, { size: 'large', onClick: handlerClickButton(button), key: button, type: index === buttons.length - 1 ? 'primary' : 'secondary' }, (0, strings_1.mnemonicButtonLabel)(button, true))))) : (react_1.default.createElement(ide_components_1.Button, { size: 'large', onClick: handleClose, type: 'primary' }, (0, ide_core_browser_1.localize)('dialog.confirm'))) }));
|
|
29
30
|
});
|
|
30
31
|
//# sourceMappingURL=dialog.view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.view.js","sourceRoot":"","sources":["../../src/browser/dialog.view.tsx"],"names":[],"mappings":";;;;AAAA,qDAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"dialog.view.js","sourceRoot":"","sources":["../../src/browser/dialog.view.tsx"],"names":[],"mappings":";;;;AAAA,qDAA2C;AAC3C,uDAA4D;AAE5D,6DAAwE;AACxE,iEAAqE;AACrE,yEAAkF;AAElF,sCAA2C;AAE9B,QAAA,MAAM,GAAG,IAAA,0BAAQ,EAAC,GAAG,EAAE;IAClC,MAAM,aAAa,GAAG,IAAA,gCAAa,EAAiB,uBAAc,CAAC,CAAC;IACpE,MAAM,IAAI,GAAG,aAAa,CAAC,OAAO,EAAE,CAAC;IACrC,MAAM,OAAO,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC;IAC3C,MAAM,IAAI,GAAG,aAAa,CAAC,OAAO,EAAE,CAAC;IACrC,MAAM,UAAU,GAA8B,IAAA,cAAM,EAAC,IAAI,CAAC,CAAC;IAE3D,SAAS,UAAU;QACjB,aAAa,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;IAED,SAAS,WAAW;QAClB,aAAa,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IAED,SAAS,kBAAkB,CAAC,KAAa;QACvC,OAAO,GAAG,EAAE;YACV,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,CACL,8BAAC,uBAAU,IACT,OAAO,EAAE,aAAa,CAAC,SAAS,EAAE,EAClC,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAChC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,SAAS,EACd,WAAW,EAAE,IAAI,EACjB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,IAAI,EACd,OAAO,EACL,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CACf,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC7B,8BAAC,uBAAM,IACL,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,EACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,IAE3D,IAAA,6BAAmB,EAAC,MAAM,EAAE,IAAI,CAAC,CAC3B,CACV,CAAC,CACH,CAAC,CAAC,CAAC,CACF,8BAAC,uBAAM,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAC,SAAS,IACtD,IAAA,2BAAQ,EAAC,gBAAgB,CAAC,CACpB,CACV,GAEH,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAY3D,qBACa,aAAc,SAAQ,aAAa;IAC9C,SAAS,EAAE,QAAQ,EAAE,CAkBnB;IAEF,SAAS,UAAQ;IACjB,SAAS,4CAAW;CACrB"}
|
package/lib/browser/index.js
CHANGED
|
@@ -7,6 +7,8 @@ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
|
7
7
|
const browser_1 = require("@opensumi/ide-core-browser/lib/menu/next/renderer/ctxmenu/browser");
|
|
8
8
|
const common_1 = require("../common");
|
|
9
9
|
const ctx_menu_service_1 = require("./ctx-menu/ctx-menu.service");
|
|
10
|
+
const dialog_contextkey_1 = require("./dialog.contextkey");
|
|
11
|
+
const dialog_contribution_1 = require("./dialog.contribution");
|
|
10
12
|
const dialog_service_1 = require("./dialog.service");
|
|
11
13
|
const index_view_1 = require("./index.view");
|
|
12
14
|
const message_service_1 = require("./message.service");
|
|
@@ -14,6 +16,10 @@ let OverlayModule = class OverlayModule extends ide_core_browser_1.BrowserModule
|
|
|
14
16
|
constructor() {
|
|
15
17
|
super(...arguments);
|
|
16
18
|
this.providers = [
|
|
19
|
+
{
|
|
20
|
+
token: dialog_contextkey_1.DialogContextKey,
|
|
21
|
+
useClass: dialog_contextkey_1.DialogContextKey,
|
|
22
|
+
},
|
|
17
23
|
{
|
|
18
24
|
token: common_1.IDialogService,
|
|
19
25
|
useClass: dialog_service_1.DialogService,
|
|
@@ -26,6 +32,7 @@ let OverlayModule = class OverlayModule extends ide_core_browser_1.BrowserModule
|
|
|
26
32
|
token: browser_1.IBrowserCtxMenu,
|
|
27
33
|
useClass: ctx_menu_service_1.BrowserCtxMenuService,
|
|
28
34
|
},
|
|
35
|
+
dialog_contribution_1.DialogContribution,
|
|
29
36
|
];
|
|
30
37
|
this.isOverlay = true;
|
|
31
38
|
this.component = index_view_1.Overlay;
|
package/lib/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,iEAA2D;AAC3D,+FAAoG;AAEpG,sCAA4D;AAE5D,kEAAoE;AACpE,qDAAiD;AACjD,6CAAuC;AACvC,uDAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,iEAA2D;AAC3D,+FAAoG;AAEpG,sCAA4D;AAE5D,kEAAoE;AACpE,2DAAuD;AACvD,+DAA2D;AAC3D,qDAAiD;AACjD,6CAAuC;AACvC,uDAAmD;AAGnD,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,gCAAa;IAAhD;;QACE,cAAS,GAAe;YACtB;gBACE,KAAK,EAAE,oCAAgB;gBACvB,QAAQ,EAAE,oCAAgB;aAC3B;YACD;gBACE,KAAK,EAAE,uBAAc;gBACrB,QAAQ,EAAE,8BAAa;aACxB;YACD;gBACE,KAAK,EAAE,wBAAe;gBACtB,QAAQ,EAAE,gCAAc;aACzB;YACD;gBACE,KAAK,EAAE,yBAAe;gBACtB,QAAQ,EAAE,wCAAqB;aAChC;YACD,wCAAkB;SACnB,CAAC;QAEF,cAAS,GAAG,IAAI,CAAC;QACjB,cAAS,GAAG,oBAAO,CAAC;IACtB,CAAC;CAAA,CAAA;AAvBY,aAAa;IADzB,IAAA,eAAU,GAAE;GACA,aAAa,CAuBzB;AAvBY,sCAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-overlay",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib"
|
|
6
6
|
],
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"url": "git@github.com:opensumi/core.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@opensumi/ide-core-common": "2.
|
|
19
|
+
"@opensumi/ide-core-common": "2.17.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@opensumi/ide-components": "2.
|
|
23
|
-
"@opensumi/ide-core-browser": "2.
|
|
22
|
+
"@opensumi/ide-components": "2.17.1",
|
|
23
|
+
"@opensumi/ide-core-browser": "2.17.1",
|
|
24
24
|
"@opensumi/ide-dev-tool": "^1.3.1",
|
|
25
25
|
"@types/marked": "4.0.1"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "8a54607c90d6c2c9f3b705d12a936c464fe40530"
|
|
28
28
|
}
|