@opensumi/ide-design 3.0.4-next-1717074121.0 → 3.0.5-next-1717466130.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.
|
@@ -3,9 +3,7 @@ import { FileServiceClient } from '@opensumi/ide-file-service/lib/browser/file-s
|
|
|
3
3
|
export declare class DesignCoreContribution implements ClientAppContribution, SlotRendererContribution {
|
|
4
4
|
protected readonly fileSystem: FileServiceClient;
|
|
5
5
|
private readonly designThemeFileSystemProvider;
|
|
6
|
-
private appConfig;
|
|
7
6
|
private layoutViewSize;
|
|
8
|
-
private designLayoutConfig;
|
|
9
7
|
initialize(): void;
|
|
10
8
|
registerRenderer(registry: SlotRendererRegistry): void;
|
|
11
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design.contribution.d.ts","sourceRoot":"","sources":["../../src/browser/design.contribution.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"design.contribution.d.ts","sourceRoot":"","sources":["../../src/browser/design.contribution.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EAGrB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAK/F,qBAEa,sBAAuB,YAAW,qBAAqB,EAAE,wBAAwB;IAE5F,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IAGjD,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAgC;IAG9E,OAAO,CAAC,cAAc,CAAuB;IAE7C,UAAU;IAQV,gBAAgB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;CAKvD"}
|
|
@@ -8,17 +8,11 @@ const constants_1 = require("@opensumi/ide-core-browser/lib/layout/constants");
|
|
|
8
8
|
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
9
9
|
const ide_file_service_1 = require("@opensumi/ide-file-service");
|
|
10
10
|
const file_service_client_1 = require("@opensumi/ide-file-service/lib/browser/file-service-client");
|
|
11
|
-
const constants_2 = require("../common/constants");
|
|
12
11
|
const tabbar_view_1 = require("./layout/tabbar.view");
|
|
13
12
|
const file_system_provider_1 = require("./theme/file-system.provider");
|
|
14
13
|
let DesignCoreContribution = class DesignCoreContribution {
|
|
15
14
|
initialize() {
|
|
16
|
-
const { useMenubarView } = this.designLayoutConfig;
|
|
17
15
|
this.fileSystem.registerProvider(ide_core_common_1.Schemes.design, this.designThemeFileSystemProvider);
|
|
18
|
-
if (useMenubarView) {
|
|
19
|
-
this.layoutViewSize.setMenubarHeight(48);
|
|
20
|
-
ide_core_browser_1.ComponentRegistryImpl.replaceLayoutModule(this.appConfig.layoutConfig, ide_core_browser_1.SlotLocation.top, constants_2.DESIGN_MENUBAR_CONTAINER_VIEW_ID);
|
|
21
|
-
}
|
|
22
16
|
this.layoutViewSize.setEditorTabsHeight(36);
|
|
23
17
|
this.layoutViewSize.setStatusBarHeight(36);
|
|
24
18
|
this.layoutViewSize.setAccordionHeaderSizeHeight(36);
|
|
@@ -37,18 +31,10 @@ tslib_1.__decorate([
|
|
|
37
31
|
(0, di_1.Autowired)(),
|
|
38
32
|
tslib_1.__metadata("design:type", file_system_provider_1.DesignThemeFileSystemProvider)
|
|
39
33
|
], DesignCoreContribution.prototype, "designThemeFileSystemProvider", void 0);
|
|
40
|
-
tslib_1.__decorate([
|
|
41
|
-
(0, di_1.Autowired)(ide_core_browser_1.AppConfig),
|
|
42
|
-
tslib_1.__metadata("design:type", Object)
|
|
43
|
-
], DesignCoreContribution.prototype, "appConfig", void 0);
|
|
44
34
|
tslib_1.__decorate([
|
|
45
35
|
(0, di_1.Autowired)(constants_1.LayoutViewSizeConfig),
|
|
46
36
|
tslib_1.__metadata("design:type", constants_1.LayoutViewSizeConfig)
|
|
47
37
|
], DesignCoreContribution.prototype, "layoutViewSize", void 0);
|
|
48
|
-
tslib_1.__decorate([
|
|
49
|
-
(0, di_1.Autowired)(constants_1.DesignLayoutConfig),
|
|
50
|
-
tslib_1.__metadata("design:type", constants_1.DesignLayoutConfig)
|
|
51
|
-
], DesignCoreContribution.prototype, "designLayoutConfig", void 0);
|
|
52
38
|
DesignCoreContribution = tslib_1.__decorate([
|
|
53
39
|
(0, di_1.Injectable)(),
|
|
54
40
|
(0, ide_core_browser_1.Domain)(ide_core_browser_1.ClientAppContribution, ide_core_browser_1.SlotRendererContribution)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design.contribution.js","sourceRoot":"","sources":["../../src/browser/design.contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"design.contribution.js","sourceRoot":"","sources":["../../src/browser/design.contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAqD;AACrD,iEAMoC;AACpC,+EAAuF;AACvF,+DAAoD;AACpD,iEAAgE;AAChE,oGAA+F;AAE/F,sDAA8G;AAC9G,uEAA6E;AAItE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAUjC,UAAU;QACR,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,yBAAO,CAAC,MAAM,EAAE,IAAI,CAAC,6BAA6B,CAAC,CAAC;QAErF,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,cAAc,CAAC,4BAA4B,CAAC,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,gBAAgB,CAAC,QAA8B;QAC7C,QAAQ,CAAC,oBAAoB,CAAC,+BAAY,CAAC,IAAI,EAAE,mCAAqB,CAAC,CAAC;QACxE,QAAQ,CAAC,oBAAoB,CAAC,+BAAY,CAAC,MAAM,EAAE,qCAAuB,CAAC,CAAC;QAC5E,QAAQ,CAAC,oBAAoB,CAAC,+BAAY,CAAC,KAAK,EAAE,oCAAsB,CAAC,CAAC;IAC5E,CAAC;CACF,CAAA;AAtBC;IAAC,IAAA,cAAS,EAAC,qCAAkB,CAAC;sCACC,uCAAiB;0DAAC;AAEjD;IAAC,IAAA,cAAS,GAAE;sCACoC,oDAA6B;6EAAC;AAE9E;IAAC,IAAA,cAAS,EAAC,gCAAoB,CAAC;sCACR,gCAAoB;8DAAC;AARlC,sBAAsB;IAFlC,IAAA,eAAU,GAAE;IACZ,IAAA,yBAAM,EAAC,wCAAqB,EAAE,2CAAwB,CAAC;GAC3C,sBAAsB,CAuBlC;AAvBY,wDAAsB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-design",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5-next-1717466130.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib",
|
|
6
6
|
"src"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "git@github.com:opensumi/core.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@opensumi/ide-core-common": "3.0.
|
|
23
|
-
"@opensumi/ide-core-node": "3.0.
|
|
22
|
+
"@opensumi/ide-core-common": "3.0.5-next-1717466130.0",
|
|
23
|
+
"@opensumi/ide-core-node": "3.0.5-next-1717466130.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@opensumi/ide-core-browser": "3.0.
|
|
27
|
-
"@opensumi/ide-dev-tool": "3.0.
|
|
26
|
+
"@opensumi/ide-core-browser": "3.0.5-next-1717466130.0",
|
|
27
|
+
"@opensumi/ide-dev-tool": "3.0.5-next-1717466130.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "1c4375de22013b4ae70e94a9722885edd0b385cd"
|
|
30
30
|
}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { Autowired, Injectable } from '@opensumi/di';
|
|
2
2
|
import {
|
|
3
|
-
AppConfig,
|
|
4
3
|
ClientAppContribution,
|
|
5
|
-
ComponentRegistryImpl,
|
|
6
4
|
Domain,
|
|
7
5
|
SlotLocation,
|
|
8
6
|
SlotRendererContribution,
|
|
9
7
|
SlotRendererRegistry,
|
|
10
8
|
} from '@opensumi/ide-core-browser';
|
|
11
|
-
import {
|
|
9
|
+
import { LayoutViewSizeConfig } from '@opensumi/ide-core-browser/lib/layout/constants';
|
|
12
10
|
import { Schemes } from '@opensumi/ide-core-common';
|
|
13
11
|
import { IFileServiceClient } from '@opensumi/ide-file-service';
|
|
14
12
|
import { FileServiceClient } from '@opensumi/ide-file-service/lib/browser/file-service-client';
|
|
15
13
|
|
|
16
|
-
import { DESIGN_MENUBAR_CONTAINER_VIEW_ID } from '../common/constants';
|
|
17
|
-
|
|
18
14
|
import { DesignBottomTabRenderer, DesignLeftTabRenderer, DesignRightTabRenderer } from './layout/tabbar.view';
|
|
19
15
|
import { DesignThemeFileSystemProvider } from './theme/file-system.provider';
|
|
20
16
|
|
|
@@ -27,30 +23,12 @@ export class DesignCoreContribution implements ClientAppContribution, SlotRender
|
|
|
27
23
|
@Autowired()
|
|
28
24
|
private readonly designThemeFileSystemProvider: DesignThemeFileSystemProvider;
|
|
29
25
|
|
|
30
|
-
@Autowired(AppConfig)
|
|
31
|
-
private appConfig: AppConfig;
|
|
32
|
-
|
|
33
26
|
@Autowired(LayoutViewSizeConfig)
|
|
34
27
|
private layoutViewSize: LayoutViewSizeConfig;
|
|
35
28
|
|
|
36
|
-
@Autowired(DesignLayoutConfig)
|
|
37
|
-
private designLayoutConfig: DesignLayoutConfig;
|
|
38
|
-
|
|
39
29
|
initialize() {
|
|
40
|
-
const { useMenubarView } = this.designLayoutConfig;
|
|
41
|
-
|
|
42
30
|
this.fileSystem.registerProvider(Schemes.design, this.designThemeFileSystemProvider);
|
|
43
31
|
|
|
44
|
-
if (useMenubarView) {
|
|
45
|
-
this.layoutViewSize.setMenubarHeight(48);
|
|
46
|
-
|
|
47
|
-
ComponentRegistryImpl.replaceLayoutModule(
|
|
48
|
-
this.appConfig.layoutConfig,
|
|
49
|
-
SlotLocation.top,
|
|
50
|
-
DESIGN_MENUBAR_CONTAINER_VIEW_ID,
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
32
|
this.layoutViewSize.setEditorTabsHeight(36);
|
|
55
33
|
this.layoutViewSize.setStatusBarHeight(36);
|
|
56
34
|
this.layoutViewSize.setAccordionHeaderSizeHeight(36);
|