@theia/navigator 1.67.0-next.56 → 1.67.0-next.86

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 (121) hide show
  1. package/lib/browser/abstract-navigator-tree-widget.d.ts +11 -0
  2. package/lib/browser/abstract-navigator-tree-widget.d.ts.map +1 -0
  3. package/lib/browser/abstract-navigator-tree-widget.js +62 -0
  4. package/lib/browser/abstract-navigator-tree-widget.js.map +1 -0
  5. package/lib/browser/file-navigator-commands.d.ts +19 -0
  6. package/lib/browser/file-navigator-commands.d.ts.map +1 -0
  7. package/lib/browser/file-navigator-commands.js +76 -0
  8. package/lib/browser/file-navigator-commands.js.map +1 -0
  9. package/lib/browser/index.d.ts +5 -0
  10. package/lib/browser/index.d.ts.map +1 -0
  11. package/lib/browser/index.js +23 -0
  12. package/lib/browser/index.js.map +1 -0
  13. package/lib/browser/navigator-container.d.ts +7 -0
  14. package/lib/browser/navigator-container.d.ts.map +1 -0
  15. package/lib/browser/navigator-container.js +48 -0
  16. package/lib/browser/navigator-container.js.map +1 -0
  17. package/lib/browser/navigator-context-key-service.d.ts +21 -0
  18. package/lib/browser/navigator-context-key-service.d.ts.map +1 -0
  19. package/lib/browser/navigator-context-key-service.js +65 -0
  20. package/lib/browser/navigator-context-key-service.js.map +1 -0
  21. package/lib/browser/navigator-contribution.d.ts +111 -0
  22. package/lib/browser/navigator-contribution.d.ts.map +1 -0
  23. package/lib/browser/navigator-contribution.js +616 -0
  24. package/lib/browser/navigator-contribution.js.map +1 -0
  25. package/lib/browser/navigator-decorator-service.d.ts +14 -0
  26. package/lib/browser/navigator-decorator-service.d.ts.map +1 -0
  27. package/lib/browser/navigator-decorator-service.js +43 -0
  28. package/lib/browser/navigator-decorator-service.js.map +1 -0
  29. package/lib/browser/navigator-diff.d.ts +39 -0
  30. package/lib/browser/navigator-diff.d.ts.map +1 -0
  31. package/lib/browser/navigator-diff.js +131 -0
  32. package/lib/browser/navigator-diff.js.map +1 -0
  33. package/lib/browser/navigator-diff.spec.d.ts +2 -0
  34. package/lib/browser/navigator-diff.spec.d.ts.map +1 -0
  35. package/lib/browser/navigator-diff.spec.js +100 -0
  36. package/lib/browser/navigator-diff.spec.js.map +1 -0
  37. package/lib/browser/navigator-filter.d.ts +72 -0
  38. package/lib/browser/navigator-filter.d.ts.map +1 -0
  39. package/lib/browser/navigator-filter.js +130 -0
  40. package/lib/browser/navigator-filter.js.map +1 -0
  41. package/lib/browser/navigator-filter.spec.d.ts +2 -0
  42. package/lib/browser/navigator-filter.spec.d.ts.map +1 -0
  43. package/lib/browser/navigator-filter.spec.js +131 -0
  44. package/lib/browser/navigator-filter.spec.js.map +1 -0
  45. package/lib/browser/navigator-frontend-module.d.ts +6 -0
  46. package/lib/browser/navigator-frontend-module.d.ts.map +1 -0
  47. package/lib/browser/navigator-frontend-module.js +76 -0
  48. package/lib/browser/navigator-frontend-module.js.map +1 -0
  49. package/lib/browser/navigator-layout-migrations.d.ts +10 -0
  50. package/lib/browser/navigator-layout-migrations.d.ts.map +1 -0
  51. package/lib/browser/navigator-layout-migrations.js +76 -0
  52. package/lib/browser/navigator-layout-migrations.js.map +1 -0
  53. package/lib/browser/navigator-model.d.ts +44 -0
  54. package/lib/browser/navigator-model.d.ts.map +1 -0
  55. package/lib/browser/navigator-model.js +229 -0
  56. package/lib/browser/navigator-model.js.map +1 -0
  57. package/lib/browser/navigator-symlink-decorator.d.ts +14 -0
  58. package/lib/browser/navigator-symlink-decorator.d.ts.map +1 -0
  59. package/lib/browser/navigator-symlink-decorator.js +74 -0
  60. package/lib/browser/navigator-symlink-decorator.js.map +1 -0
  61. package/lib/browser/navigator-tab-bar-decorator.d.ts +17 -0
  62. package/lib/browser/navigator-tab-bar-decorator.d.ts.map +1 -0
  63. package/lib/browser/navigator-tab-bar-decorator.js +71 -0
  64. package/lib/browser/navigator-tab-bar-decorator.js.map +1 -0
  65. package/lib/browser/navigator-tree.d.ts +43 -0
  66. package/lib/browser/navigator-tree.d.ts.map +1 -0
  67. package/lib/browser/navigator-tree.js +125 -0
  68. package/lib/browser/navigator-tree.js.map +1 -0
  69. package/lib/browser/navigator-widget-factory.d.ts +13 -0
  70. package/lib/browser/navigator-widget-factory.d.ts.map +1 -0
  71. package/lib/browser/navigator-widget-factory.js +76 -0
  72. package/lib/browser/navigator-widget-factory.js.map +1 -0
  73. package/lib/browser/navigator-widget.d.ts +46 -0
  74. package/lib/browser/navigator-widget.d.ts.map +1 -0
  75. package/lib/browser/navigator-widget.js +210 -0
  76. package/lib/browser/navigator-widget.js.map +1 -0
  77. package/lib/browser/open-editors-widget/navigator-deleted-editor-decorator.d.ts +16 -0
  78. package/lib/browser/open-editors-widget/navigator-deleted-editor-decorator.d.ts.map +1 -0
  79. package/lib/browser/open-editors-widget/navigator-deleted-editor-decorator.js +105 -0
  80. package/lib/browser/open-editors-widget/navigator-deleted-editor-decorator.js.map +1 -0
  81. package/lib/browser/open-editors-widget/navigator-open-editors-commands.d.ts +8 -0
  82. package/lib/browser/open-editors-widget/navigator-open-editors-commands.d.ts.map +1 -0
  83. package/lib/browser/open-editors-widget/navigator-open-editors-commands.js +48 -0
  84. package/lib/browser/open-editors-widget/navigator-open-editors-commands.js.map +1 -0
  85. package/lib/browser/open-editors-widget/navigator-open-editors-decorator-service.d.ts +8 -0
  86. package/lib/browser/open-editors-widget/navigator-open-editors-decorator-service.d.ts.map +1 -0
  87. package/lib/browser/open-editors-widget/navigator-open-editors-decorator-service.js +37 -0
  88. package/lib/browser/open-editors-widget/navigator-open-editors-decorator-service.js.map +1 -0
  89. package/lib/browser/open-editors-widget/navigator-open-editors-menus.d.ts +10 -0
  90. package/lib/browser/open-editors-widget/navigator-open-editors-menus.d.ts.map +1 -0
  91. package/lib/browser/open-editors-widget/navigator-open-editors-menus.js +28 -0
  92. package/lib/browser/open-editors-widget/navigator-open-editors-menus.js.map +1 -0
  93. package/lib/browser/open-editors-widget/navigator-open-editors-tree-model.d.ts +39 -0
  94. package/lib/browser/open-editors-widget/navigator-open-editors-tree-model.d.ts.map +1 -0
  95. package/lib/browser/open-editors-widget/navigator-open-editors-tree-model.js +251 -0
  96. package/lib/browser/open-editors-widget/navigator-open-editors-tree-model.js.map +1 -0
  97. package/lib/browser/open-editors-widget/navigator-open-editors-widget.d.ts +46 -0
  98. package/lib/browser/open-editors-widget/navigator-open-editors-widget.d.ts.map +1 -0
  99. package/lib/browser/open-editors-widget/navigator-open-editors-widget.js +225 -0
  100. package/lib/browser/open-editors-widget/navigator-open-editors-widget.js.map +1 -0
  101. package/lib/common/navigator-preferences.d.ts +15 -0
  102. package/lib/common/navigator-preferences.d.ts.map +1 -0
  103. package/lib/common/navigator-preferences.js +58 -0
  104. package/lib/common/navigator-preferences.js.map +1 -0
  105. package/lib/electron-browser/electron-navigator-menu-contribution.d.ts +22 -0
  106. package/lib/electron-browser/electron-navigator-menu-contribution.d.ts.map +1 -0
  107. package/lib/electron-browser/electron-navigator-menu-contribution.js +120 -0
  108. package/lib/electron-browser/electron-navigator-menu-contribution.js.map +1 -0
  109. package/lib/electron-browser/electron-navigator-module.d.ts +4 -0
  110. package/lib/electron-browser/electron-navigator-module.d.ts.map +1 -0
  111. package/lib/electron-browser/electron-navigator-module.js +27 -0
  112. package/lib/electron-browser/electron-navigator-module.js.map +1 -0
  113. package/lib/node/navigator-backend-module.d.ts +4 -0
  114. package/lib/node/navigator-backend-module.d.ts.map +1 -0
  115. package/lib/node/navigator-backend-module.js +23 -0
  116. package/lib/node/navigator-backend-module.js.map +1 -0
  117. package/lib/package.spec.d.ts +1 -0
  118. package/lib/package.spec.d.ts.map +1 -0
  119. package/lib/package.spec.js +26 -0
  120. package/lib/package.spec.js.map +1 -0
  121. package/package.json +5 -5
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { FileNavigatorPreferences } from '../common/navigator-preferences';
3
+ import { FileTreeWidget } from '@theia/filesystem/lib/browser';
4
+ import { Attributes, HTMLAttributes } from '@theia/core/shared/react';
5
+ import { TreeNode } from '@theia/core/lib/browser';
6
+ export declare class AbstractNavigatorTreeWidget extends FileTreeWidget {
7
+ protected readonly navigatorPreferences: FileNavigatorPreferences;
8
+ protected init(): void;
9
+ protected decorateCaption(node: TreeNode, attrs: HTMLAttributes<HTMLElement>): Attributes & HTMLAttributes<HTMLElement>;
10
+ }
11
+ //# sourceMappingURL=abstract-navigator-tree-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract-navigator-tree-widget.d.ts","sourceRoot":"","sources":["../../src/browser/abstract-navigator-tree-widget.ts"],"names":[],"mappings":";AAiBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,qBACa,2BAA4B,SAAQ,cAAc;IAG3D,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;cAG/C,IAAI,IAAI,IAAI;cAWZ,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG,UAAU,GAAG,cAAc,CAAC,WAAW,CAAC;CAcnI"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2022 Ericsson and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.AbstractNavigatorTreeWidget = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const navigator_preferences_1 = require("../common/navigator-preferences");
22
+ const browser_1 = require("@theia/filesystem/lib/browser");
23
+ let AbstractNavigatorTreeWidget = class AbstractNavigatorTreeWidget extends browser_1.FileTreeWidget {
24
+ init() {
25
+ super.init();
26
+ this.toDispose.push(this.preferenceService.onPreferenceChanged(preference => {
27
+ if (preference.preferenceName === 'explorer.decorations.colors') {
28
+ this.update();
29
+ }
30
+ }));
31
+ }
32
+ decorateCaption(node, attrs) {
33
+ const attributes = super.decorateCaption(node, attrs);
34
+ if (this.navigatorPreferences.get('explorer.decorations.colors')) {
35
+ return attributes;
36
+ }
37
+ else {
38
+ return {
39
+ ...attributes,
40
+ style: {
41
+ ...attributes.style,
42
+ color: undefined,
43
+ }
44
+ };
45
+ }
46
+ }
47
+ };
48
+ exports.AbstractNavigatorTreeWidget = AbstractNavigatorTreeWidget;
49
+ tslib_1.__decorate([
50
+ (0, inversify_1.inject)(navigator_preferences_1.FileNavigatorPreferences),
51
+ tslib_1.__metadata("design:type", Object)
52
+ ], AbstractNavigatorTreeWidget.prototype, "navigatorPreferences", void 0);
53
+ tslib_1.__decorate([
54
+ (0, inversify_1.postConstruct)(),
55
+ tslib_1.__metadata("design:type", Function),
56
+ tslib_1.__metadata("design:paramtypes", []),
57
+ tslib_1.__metadata("design:returntype", void 0)
58
+ ], AbstractNavigatorTreeWidget.prototype, "init", null);
59
+ exports.AbstractNavigatorTreeWidget = AbstractNavigatorTreeWidget = tslib_1.__decorate([
60
+ (0, inversify_1.injectable)()
61
+ ], AbstractNavigatorTreeWidget);
62
+ //# sourceMappingURL=abstract-navigator-tree-widget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract-navigator-tree-widget.js","sourceRoot":"","sources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vC"}
@@ -0,0 +1,19 @@
1
+ import { Command } from '@theia/core/lib/common';
2
+ export declare namespace FileNavigatorCommands {
3
+ const REVEAL_IN_NAVIGATOR: Command;
4
+ const TOGGLE_HIDDEN_FILES: Command;
5
+ const TOGGLE_AUTO_REVEAL: Command;
6
+ const REFRESH_NAVIGATOR: Command;
7
+ const COLLAPSE_ALL: Command;
8
+ const ADD_ROOT_FOLDER: Command;
9
+ const FOCUS: Command;
10
+ const OPEN: Command;
11
+ const OPEN_WITH: Command;
12
+ const NEW_FILE_TOOLBAR: Command;
13
+ const NEW_FOLDER_TOOLBAR: Command;
14
+ /**
15
+ * @deprecated since 1.21.0. Use WorkspaceCommands.COPY_RELATIVE_FILE_COMMAND instead.
16
+ */
17
+ const COPY_RELATIVE_FILE_PATH: Command;
18
+ }
19
+ //# sourceMappingURL=file-navigator-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-navigator-commands.d.ts","sourceRoot":"","sources":["../../src/browser/file-navigator-commands.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,mBAAmB,SAGJ,CAAC;IACtB,MAAM,mBAAmB,SAGO,CAAC;IACjC,MAAM,kBAAkB,SAImC,CAAC;IAC5D,MAAM,iBAAiB,SAKiC,CAAC;IACzD,MAAM,YAAY,SAKvB,CAAC;IACI,MAAM,eAAe,EAAE,OAE7B,CAAC;IACK,MAAM,KAAK,SAIhB,CAAC;IACI,MAAM,IAAI,EAAE,OAElB,CAAC;IACK,MAAM,SAAS,EAAE,OAEvB,CAAC;IACK,MAAM,gBAAgB,EAAE,OAG9B,CAAC;IACK,MAAM,kBAAkB,EAAE,OAGhC,CAAC;IAEF;;OAEG;IACI,MAAM,uBAAuB,SAA4C,CAAC;CACpF"}
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2022 Ericsson and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.FileNavigatorCommands = void 0;
19
+ const browser_1 = require("@theia/core/lib/browser");
20
+ const common_1 = require("@theia/core/lib/common");
21
+ const browser_2 = require("@theia/workspace/lib/browser");
22
+ var FileNavigatorCommands;
23
+ (function (FileNavigatorCommands) {
24
+ FileNavigatorCommands.REVEAL_IN_NAVIGATOR = common_1.Command.toLocalizedCommand({
25
+ id: 'navigator.reveal',
26
+ label: 'Reveal in Explorer'
27
+ }, 'theia/navigator/reveal');
28
+ FileNavigatorCommands.TOGGLE_HIDDEN_FILES = common_1.Command.toLocalizedCommand({
29
+ id: 'navigator.toggle.hidden.files',
30
+ label: 'Toggle Hidden Files'
31
+ }, 'theia/navigator/toggleHiddenFiles');
32
+ FileNavigatorCommands.TOGGLE_AUTO_REVEAL = common_1.Command.toLocalizedCommand({
33
+ id: 'navigator.toggle.autoReveal',
34
+ category: browser_1.CommonCommands.FILE_CATEGORY,
35
+ label: 'Auto Reveal'
36
+ }, 'theia/navigator/autoReveal', browser_1.CommonCommands.FILE_CATEGORY_KEY);
37
+ FileNavigatorCommands.REFRESH_NAVIGATOR = common_1.Command.toLocalizedCommand({
38
+ id: 'navigator.refresh',
39
+ category: browser_1.CommonCommands.FILE_CATEGORY,
40
+ label: 'Refresh in Explorer',
41
+ iconClass: (0, browser_1.codicon)('refresh')
42
+ }, 'theia/navigator/refresh', browser_1.CommonCommands.FILE_CATEGORY_KEY);
43
+ FileNavigatorCommands.COLLAPSE_ALL = common_1.Command.toDefaultLocalizedCommand({
44
+ id: 'navigator.collapse.all',
45
+ category: browser_1.CommonCommands.FILE_CATEGORY,
46
+ label: 'Collapse Folders in Explorer',
47
+ iconClass: (0, browser_1.codicon)('collapse-all')
48
+ });
49
+ FileNavigatorCommands.ADD_ROOT_FOLDER = {
50
+ id: 'navigator.addRootFolder'
51
+ };
52
+ FileNavigatorCommands.FOCUS = common_1.Command.toDefaultLocalizedCommand({
53
+ id: 'workbench.files.action.focusFilesExplorer',
54
+ category: browser_1.CommonCommands.FILE_CATEGORY,
55
+ label: 'Focus on Files Explorer'
56
+ });
57
+ FileNavigatorCommands.OPEN = {
58
+ id: 'navigator.open',
59
+ };
60
+ FileNavigatorCommands.OPEN_WITH = {
61
+ id: 'navigator.openWith',
62
+ };
63
+ FileNavigatorCommands.NEW_FILE_TOOLBAR = {
64
+ id: `${browser_2.WorkspaceCommands.NEW_FILE.id}.toolbar`,
65
+ iconClass: (0, browser_1.codicon)('new-file')
66
+ };
67
+ FileNavigatorCommands.NEW_FOLDER_TOOLBAR = {
68
+ id: `${browser_2.WorkspaceCommands.NEW_FOLDER.id}.toolbar`,
69
+ iconClass: (0, browser_1.codicon)('new-folder')
70
+ };
71
+ /**
72
+ * @deprecated since 1.21.0. Use WorkspaceCommands.COPY_RELATIVE_FILE_COMMAND instead.
73
+ */
74
+ FileNavigatorCommands.COPY_RELATIVE_FILE_PATH = browser_2.WorkspaceCommands.COPY_RELATIVE_FILE_PATH;
75
+ })(FileNavigatorCommands || (exports.FileNavigatorCommands = FileNavigatorCommands = {}));
76
+ //# sourceMappingURL=file-navigator-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-navigator-commands.js","sourceRoot":"","sources":["../../src/browser/file-navigator-commands.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAA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W,2BAAK,GAAG,gBAAO,CAAC,yBAAyB,CAAC;QACnD,EAAE,EAAE,2CAA2C;QAC/C,QAAQ,EAAE,wBAAc,CAAC,aAAa;QACtC,KAAK,EAAE,yBAAyB;KACnC,CAAC,CAAC;IACU,0BAAI,GAAY;QACzB,EAAE,EAAE,gBAAgB;KACvB,CAAC;IACW,+BAAS,GAAY;QAC9B,EAAE,EAAE,oBAAoB;KAC3B,CAAC;IACW,sCAAgB,GAAY;QACrC,EAAE,EAAE,GAAG,2BAAiB,CAAC,QAAQ,CAAC,EAAE,UAAU;QAC9C,SAAS,EAAE,IAAA,iBAAO,EAAC,UAAU,CAAC;KACjC,CAAC;IACW,wCAAkB,GAAY;QACvC,EAAE,EAAE,GAAG,2BAAiB,CAAC,UAAU,CAAC,EAAE,UAAU;QAChD,SAAS,EAAE,IAAA,iBAAO,EAAC,YAAY,CAAC;KACnC,CAAC;IAEF;;OAEG;IACU,6CAAuB,GAAG,2BAAiB,CAAC,uBAAuB,CAAC;AACrF,CAAC,EArDgB,qBAAqB,qCAArB,qBAAqB,QAqDrC"}
@@ -0,0 +1,5 @@
1
+ export * from './navigator-model';
2
+ export * from './navigator-widget';
3
+ export * from './navigator-widget-factory';
4
+ export * from './navigator-decorator-service';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAgBA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
19
+ tslib_1.__exportStar(require("./navigator-model"), exports);
20
+ tslib_1.__exportStar(require("./navigator-widget"), exports);
21
+ tslib_1.__exportStar(require("./navigator-widget-factory"), exports);
22
+ tslib_1.__exportStar(require("./navigator-decorator-service"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,4DAAkC;AAClC,6DAAmC;AACnC,qEAA2C;AAC3C,wEAA8C"}
@@ -0,0 +1,7 @@
1
+ import { Container, interfaces } from '@theia/core/shared/inversify';
2
+ import { TreeProps } from '@theia/core/lib/browser';
3
+ import { FileNavigatorWidget } from './navigator-widget';
4
+ export declare const FILE_NAVIGATOR_PROPS: TreeProps;
5
+ export declare function createFileNavigatorContainer(parent: interfaces.Container): Container;
6
+ export declare function createFileNavigatorWidget(parent: interfaces.Container): FileNavigatorWidget;
7
+ //# sourceMappingURL=navigator-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator-container.d.ts","sourceRoot":"","sources":["../../src/browser/navigator-container.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAoB,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAIzD,eAAO,MAAM,oBAAoB,WAMhC,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAUpF;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,mBAAmB,CAE3F"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2017 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.createFileNavigatorWidget = exports.createFileNavigatorContainer = exports.FILE_NAVIGATOR_PROPS = void 0;
19
+ const browser_1 = require("@theia/core/lib/browser");
20
+ const browser_2 = require("@theia/filesystem/lib/browser");
21
+ const navigator_tree_1 = require("./navigator-tree");
22
+ const navigator_model_1 = require("./navigator-model");
23
+ const navigator_widget_1 = require("./navigator-widget");
24
+ const navigator_contribution_1 = require("./navigator-contribution");
25
+ const navigator_decorator_service_1 = require("./navigator-decorator-service");
26
+ exports.FILE_NAVIGATOR_PROPS = {
27
+ ...browser_1.defaultTreeProps,
28
+ contextMenuPath: navigator_contribution_1.NAVIGATOR_CONTEXT_MENU,
29
+ multiSelect: true,
30
+ search: true,
31
+ globalSelection: true
32
+ };
33
+ function createFileNavigatorContainer(parent) {
34
+ const child = (0, browser_2.createFileTreeContainer)(parent, {
35
+ tree: navigator_tree_1.FileNavigatorTree,
36
+ model: navigator_model_1.FileNavigatorModel,
37
+ widget: navigator_widget_1.FileNavigatorWidget,
38
+ decoratorService: navigator_decorator_service_1.NavigatorDecoratorService,
39
+ props: exports.FILE_NAVIGATOR_PROPS,
40
+ });
41
+ return child;
42
+ }
43
+ exports.createFileNavigatorContainer = createFileNavigatorContainer;
44
+ function createFileNavigatorWidget(parent) {
45
+ return createFileNavigatorContainer(parent).get(navigator_widget_1.FileNavigatorWidget);
46
+ }
47
+ exports.createFileNavigatorWidget = createFileNavigatorWidget;
48
+ //# sourceMappingURL=navigator-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator-container.js","sourceRoot":"","sources":["../../src/browser/navigator-container.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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;;;AAGhF,qDAAsE;AACtE,2DAAwE;AACxE,qDAAqD;AACrD,uDAAuD;AACvD,yDAAyD;AACzD,qEAAkE;AAClE,+EAA0E;AAE7D,QAAA,oBAAoB,GAAc;IAC3C,GAAG,0BAAgB;IACnB,eAAe,EAAE,+CAAsB;IACvC,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,IAAI;CACxB,CAAC;AAEF,SAAgB,4BAA4B,CAAC,MAA4B;IACrE,MAAM,KAAK,GAAG,IAAA,iCAAuB,EAAC,MAAM,EAAE;QAC1C,IAAI,EAAE,kCAAiB;QACvB,KAAK,EAAE,oCAAkB;QACzB,MAAM,EAAE,sCAAmB;QAC3B,gBAAgB,EAAE,uDAAyB;QAC3C,KAAK,EAAE,4BAAoB;KAC9B,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACjB,CAAC;AAVD,oEAUC;AAED,SAAgB,yBAAyB,CAAC,MAA4B;IAClE,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,sCAAmB,CAAC,CAAC;AACzE,CAAC;AAFD,8DAEC"}
@@ -0,0 +1,21 @@
1
+ import { ContextKeyService, ContextKey } from '@theia/core/lib/browser/context-key-service';
2
+ export declare class NavigatorContextKeyService {
3
+ protected readonly contextKeyService: ContextKeyService;
4
+ protected _explorerViewletVisible: ContextKey<boolean>;
5
+ get explorerViewletVisible(): ContextKey<boolean>;
6
+ protected _explorerViewletFocus: ContextKey<boolean>;
7
+ /** True if Explorer view has keyboard focus. */
8
+ get explorerViewletFocus(): ContextKey<boolean>;
9
+ protected _filesExplorerFocus: ContextKey<boolean>;
10
+ /** True if File Explorer section has keyboard focus. */
11
+ get filesExplorerFocus(): ContextKey<boolean>;
12
+ protected _explorerResourceIsFolder: ContextKey<boolean>;
13
+ get explorerResourceIsFolder(): ContextKey<boolean>;
14
+ protected _isFileSystemResource: ContextKey<boolean>;
15
+ /**
16
+ * True when the Explorer or editor file is a file system resource that can be handled from a file system provider.
17
+ */
18
+ get isFileSystemResource(): ContextKey<boolean>;
19
+ protected init(): void;
20
+ }
21
+ //# sourceMappingURL=navigator-context-key-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator-context-key-service.d.ts","sourceRoot":"","sources":["../../src/browser/navigator-context-key-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAE5F,qBACa,0BAA0B;IAGnC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAExD,SAAS,CAAC,uBAAuB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACvD,IAAI,sBAAsB,IAAI,UAAU,CAAC,OAAO,CAAC,CAEhD;IAED,SAAS,CAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACrD,gDAAgD;IAChD,IAAI,oBAAoB,IAAI,UAAU,CAAC,OAAO,CAAC,CAE9C;IAED,SAAS,CAAC,mBAAmB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACnD,wDAAwD;IACxD,IAAI,kBAAkB,IAAI,UAAU,CAAC,OAAO,CAAC,CAE5C;IAED,SAAS,CAAC,yBAAyB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACzD,IAAI,wBAAwB,IAAI,UAAU,CAAC,OAAO,CAAC,CAElD;IAED,SAAS,CAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAErD;;OAEG;IACH,IAAI,oBAAoB,IAAI,UAAU,CAAC,OAAO,CAAC,CAE9C;IAGD,SAAS,CAAC,IAAI,IAAI,IAAI;CAQzB"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2019 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.NavigatorContextKeyService = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
22
+ let NavigatorContextKeyService = class NavigatorContextKeyService {
23
+ get explorerViewletVisible() {
24
+ return this._explorerViewletVisible;
25
+ }
26
+ /** True if Explorer view has keyboard focus. */
27
+ get explorerViewletFocus() {
28
+ return this._explorerViewletFocus;
29
+ }
30
+ /** True if File Explorer section has keyboard focus. */
31
+ get filesExplorerFocus() {
32
+ return this._filesExplorerFocus;
33
+ }
34
+ get explorerResourceIsFolder() {
35
+ return this._explorerResourceIsFolder;
36
+ }
37
+ /**
38
+ * True when the Explorer or editor file is a file system resource that can be handled from a file system provider.
39
+ */
40
+ get isFileSystemResource() {
41
+ return this._isFileSystemResource;
42
+ }
43
+ init() {
44
+ this._explorerViewletVisible = this.contextKeyService.createKey('explorerViewletVisible', false);
45
+ this._explorerViewletFocus = this.contextKeyService.createKey('explorerViewletFocus', false);
46
+ this._filesExplorerFocus = this.contextKeyService.createKey('filesExplorerFocus', false);
47
+ this._explorerResourceIsFolder = this.contextKeyService.createKey('explorerResourceIsFolder', false);
48
+ this._isFileSystemResource = this.contextKeyService.createKey('isFileSystemResource', false);
49
+ }
50
+ };
51
+ exports.NavigatorContextKeyService = NavigatorContextKeyService;
52
+ tslib_1.__decorate([
53
+ (0, inversify_1.inject)(context_key_service_1.ContextKeyService),
54
+ tslib_1.__metadata("design:type", Object)
55
+ ], NavigatorContextKeyService.prototype, "contextKeyService", void 0);
56
+ tslib_1.__decorate([
57
+ (0, inversify_1.postConstruct)(),
58
+ tslib_1.__metadata("design:type", Function),
59
+ tslib_1.__metadata("design:paramtypes", []),
60
+ tslib_1.__metadata("design:returntype", void 0)
61
+ ], NavigatorContextKeyService.prototype, "init", null);
62
+ exports.NavigatorContextKeyService = NavigatorContextKeyService = tslib_1.__decorate([
63
+ (0, inversify_1.injectable)()
64
+ ], NavigatorContextKeyService);
65
+ //# sourceMappingURL=navigator-context-key-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator-context-key-service.js","sourceRoot":"","sources":["../../src/browser/navigator-context-key-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,E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B,IAAA,kBAAM,EAAC,uCAAiB,CAAC;;qEAC8B;AAkC9C;IADT,IAAA,yBAAa,GAAE;;;;sDAOf;qCA3CQ,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CA6CtC"}
@@ -0,0 +1,111 @@
1
+ import { AbstractViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
2
+ import { FrontendApplication, FrontendApplicationContribution, KeybindingRegistry, OpenerService, Widget, NavigatableWidget, OpenWithService } from '@theia/core/lib/browser';
3
+ import { CommandRegistry, MenuModelRegistry, MenuPath, Mutable, PreferenceService, QuickInputService } from '@theia/core/lib/common';
4
+ import { WorkspaceCommandContribution, WorkspaceService } from '@theia/workspace/lib/browser';
5
+ import { FileNavigatorWidget } from './navigator-widget';
6
+ import { FileNavigatorPreferences } from '../common/navigator-preferences';
7
+ import { FileNavigatorFilter } from './navigator-filter';
8
+ import { NavigatorContextKeyService } from './navigator-context-key-service';
9
+ import { RenderedToolbarAction, TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
10
+ import { NavigatorDiff } from './navigator-diff';
11
+ import { FileNode } from '@theia/filesystem/lib/browser';
12
+ import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
13
+ import { SelectionService } from '@theia/core/lib/common/selection-service';
14
+ import { OpenEditorsWidget } from './open-editors-widget/navigator-open-editors-widget';
15
+ import URI from '@theia/core/lib/common/uri';
16
+ import { FileNavigatorCommands } from './file-navigator-commands';
17
+ import { WorkspacePreferences } from '@theia/workspace/lib/common';
18
+ export { FileNavigatorCommands };
19
+ /**
20
+ * Navigator `More Actions...` toolbar item groups.
21
+ * Used in order to group items present in the toolbar.
22
+ */
23
+ export declare namespace NavigatorMoreToolbarGroups {
24
+ const NEW_OPEN = "1_navigator_new_open";
25
+ const TOOLS = "2_navigator_tools";
26
+ const WORKSPACE = "3_navigator_workspace";
27
+ }
28
+ export declare const NAVIGATOR_CONTEXT_MENU: MenuPath;
29
+ export declare const SHELL_TABBAR_CONTEXT_REVEAL: MenuPath;
30
+ /**
31
+ * Navigator context menu default groups should be aligned
32
+ * with VS Code default groups: https://code.visualstudio.com/api/references/contribution-points#contributes.menus
33
+ */
34
+ export declare namespace NavigatorContextMenu {
35
+ const NAVIGATION: string[];
36
+ /** @deprecated use NAVIGATION */
37
+ const OPEN: string[];
38
+ /** @deprecated use NAVIGATION */
39
+ const NEW: string[];
40
+ const WORKSPACE: string[];
41
+ const COMPARE: string[];
42
+ /** @deprecated use COMPARE */
43
+ const DIFF: string[];
44
+ const SEARCH: string[];
45
+ const CLIPBOARD: string[];
46
+ const MODIFICATION: string[];
47
+ /** @deprecated use MODIFICATION */
48
+ const MOVE: string[];
49
+ /** @deprecated use MODIFICATION */
50
+ const ACTIONS: string[];
51
+ /** @deprecated use the `FileNavigatorCommands.OPEN_WITH` command */
52
+ const OPEN_WITH: string[];
53
+ }
54
+ export declare const FILE_NAVIGATOR_TOGGLE_COMMAND_ID = "fileNavigator:toggle";
55
+ export declare class FileNavigatorContribution extends AbstractViewContribution<FileNavigatorWidget> implements FrontendApplicationContribution, TabBarToolbarContribution {
56
+ protected readonly fileNavigatorPreferences: FileNavigatorPreferences;
57
+ protected readonly openerService: OpenerService;
58
+ protected readonly fileNavigatorFilter: FileNavigatorFilter;
59
+ protected readonly workspaceService: WorkspaceService;
60
+ protected readonly workspacePreferences: WorkspacePreferences;
61
+ protected readonly clipboardService: ClipboardService;
62
+ protected readonly commandRegistry: CommandRegistry;
63
+ protected readonly tabbarToolbarRegistry: TabBarToolbarRegistry;
64
+ protected readonly contextKeyService: NavigatorContextKeyService;
65
+ protected readonly menuRegistry: MenuModelRegistry;
66
+ protected readonly navigatorDiff: NavigatorDiff;
67
+ protected readonly preferenceService: PreferenceService;
68
+ protected readonly selectionService: SelectionService;
69
+ protected readonly workspaceCommandContribution: WorkspaceCommandContribution;
70
+ protected readonly openWithService: OpenWithService;
71
+ protected readonly quickInputService: QuickInputService;
72
+ constructor(fileNavigatorPreferences: FileNavigatorPreferences, openerService: OpenerService, fileNavigatorFilter: FileNavigatorFilter, workspaceService: WorkspaceService, workspacePreferences: WorkspacePreferences);
73
+ protected init(): void;
74
+ protected doInit(): Promise<void>;
75
+ private onDidCreateNewResource;
76
+ initializeLayout(app: FrontendApplication): Promise<void>;
77
+ registerCommands(registry: CommandRegistry): void;
78
+ protected get editorWidgets(): NavigatableWidget[];
79
+ protected getSelectedFileNodes(): FileNode[];
80
+ protected withWidget<T>(widget: Widget | undefined, cb: (navigator: FileNavigatorWidget) => T): T | false;
81
+ protected withOpenEditorsWidget<T>(widget: Widget, cb: (navigator: OpenEditorsWidget) => T): T | false;
82
+ registerMenus(registry: MenuModelRegistry): void;
83
+ registerKeybindings(registry: KeybindingRegistry): void;
84
+ registerToolbarItems(toolbarRegistry: TabBarToolbarRegistry): Promise<void>;
85
+ /**
86
+ * Register commands to the `More Actions...` navigator toolbar item.
87
+ */
88
+ registerMoreToolbarItem: (item: Mutable<RenderedToolbarAction> & {
89
+ command: string;
90
+ }) => void;
91
+ /**
92
+ * Reveals and selects node in the file navigator to which given widget is related.
93
+ * Does nothing if given widget undefined or doesn't have related resource.
94
+ *
95
+ * @param widget widget file resource of which should be revealed and selected
96
+ */
97
+ selectWidgetFileNode(widget: Widget | undefined): Promise<boolean>;
98
+ selectFileNode(uri?: URI): Promise<boolean>;
99
+ protected onCurrentWidgetChangedHandler(): void;
100
+ /**
101
+ * Collapse file navigator nodes and set focus on first visible node
102
+ * - single root workspace: collapse all nodes except root
103
+ * - multiple root workspace: collapse all nodes, even roots
104
+ */
105
+ collapseFileNavigatorTree(): Promise<void>;
106
+ /**
107
+ * force refresh workspace in navigator
108
+ */
109
+ refreshWorkspace(): Promise<void>;
110
+ }
111
+ //# sourceMappingURL=navigator-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigator-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/navigator-contribution.ts"],"names":[],"mappings":"AAiBA,O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