@theia/property-view 1.67.0-next.13 → 1.67.0-next.56

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 (74) hide show
  1. package/README.md +1 -6
  2. package/package.json +4 -4
  3. package/lib/browser/empty-property-view-widget-provider.d.ts +0 -33
  4. package/lib/browser/empty-property-view-widget-provider.d.ts.map +0 -1
  5. package/lib/browser/empty-property-view-widget-provider.js +0 -76
  6. package/lib/browser/empty-property-view-widget-provider.js.map +0 -1
  7. package/lib/browser/property-data-service.d.ts +0 -29
  8. package/lib/browser/property-data-service.d.ts.map +0 -1
  9. package/lib/browser/property-data-service.js +0 -20
  10. package/lib/browser/property-data-service.js.map +0 -1
  11. package/lib/browser/property-view-content-widget.d.ts +0 -11
  12. package/lib/browser/property-view-content-widget.d.ts.map +0 -1
  13. package/lib/browser/property-view-content-widget.js +0 -18
  14. package/lib/browser/property-view-content-widget.js.map +0 -1
  15. package/lib/browser/property-view-contribution.d.ts +0 -6
  16. package/lib/browser/property-view-contribution.d.ts.map +0 -1
  17. package/lib/browser/property-view-contribution.js +0 -41
  18. package/lib/browser/property-view-contribution.js.map +0 -1
  19. package/lib/browser/property-view-frontend-module.d.ts +0 -5
  20. package/lib/browser/property-view-frontend-module.d.ts.map +0 -1
  21. package/lib/browser/property-view-frontend-module.js +0 -43
  22. package/lib/browser/property-view-frontend-module.js.map +0 -1
  23. package/lib/browser/property-view-service.d.ts +0 -18
  24. package/lib/browser/property-view-service.d.ts.map +0 -1
  25. package/lib/browser/property-view-service.js +0 -74
  26. package/lib/browser/property-view-service.js.map +0 -1
  27. package/lib/browser/property-view-widget-provider.d.ts +0 -58
  28. package/lib/browser/property-view-widget-provider.d.ts.map +0 -1
  29. package/lib/browser/property-view-widget-provider.js +0 -77
  30. package/lib/browser/property-view-widget-provider.js.map +0 -1
  31. package/lib/browser/property-view-widget.d.ts +0 -27
  32. package/lib/browser/property-view-widget.d.ts.map +0 -1
  33. package/lib/browser/property-view-widget.js +0 -123
  34. package/lib/browser/property-view-widget.js.map +0 -1
  35. package/lib/browser/resource-property-view/index.d.ts +0 -2
  36. package/lib/browser/resource-property-view/index.d.ts.map +0 -1
  37. package/lib/browser/resource-property-view/index.js +0 -20
  38. package/lib/browser/resource-property-view/index.js.map +0 -1
  39. package/lib/browser/resource-property-view/resource-property-data-service.d.ts +0 -18
  40. package/lib/browser/resource-property-view/resource-property-data-service.d.ts.map +0 -1
  41. package/lib/browser/resource-property-view/resource-property-data-service.js +0 -65
  42. package/lib/browser/resource-property-view/resource-property-data-service.js.map +0 -1
  43. package/lib/browser/resource-property-view/resource-property-data-service.spec.d.ts +0 -2
  44. package/lib/browser/resource-property-view/resource-property-data-service.spec.d.ts.map +0 -1
  45. package/lib/browser/resource-property-view/resource-property-data-service.spec.js +0 -102
  46. package/lib/browser/resource-property-view/resource-property-data-service.spec.js.map +0 -1
  47. package/lib/browser/resource-property-view/resource-property-view-label-provider.d.ts +0 -11
  48. package/lib/browser/resource-property-view/resource-property-view-label-provider.d.ts.map +0 -1
  49. package/lib/browser/resource-property-view/resource-property-view-label-provider.js +0 -53
  50. package/lib/browser/resource-property-view/resource-property-view-label-provider.js.map +0 -1
  51. package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.d.ts +0 -2
  52. package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.d.ts.map +0 -1
  53. package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.js +0 -130
  54. package/lib/browser/resource-property-view/resource-property-view-label-provider.spec.js.map +0 -1
  55. package/lib/browser/resource-property-view/resource-property-view-tree-container.d.ts +0 -3
  56. package/lib/browser/resource-property-view/resource-property-view-tree-container.d.ts.map +0 -1
  57. package/lib/browser/resource-property-view/resource-property-view-tree-container.js +0 -44
  58. package/lib/browser/resource-property-view/resource-property-view-tree-container.js.map +0 -1
  59. package/lib/browser/resource-property-view/resource-property-view-tree-items.d.ts +0 -28
  60. package/lib/browser/resource-property-view/resource-property-view-tree-items.d.ts.map +0 -1
  61. package/lib/browser/resource-property-view/resource-property-view-tree-items.js +0 -42
  62. package/lib/browser/resource-property-view/resource-property-view-tree-items.js.map +0 -1
  63. package/lib/browser/resource-property-view/resource-property-view-tree-widget.d.ts +0 -41
  64. package/lib/browser/resource-property-view/resource-property-view-tree-widget.d.ts.map +0 -1
  65. package/lib/browser/resource-property-view/resource-property-view-tree-widget.js +0 -181
  66. package/lib/browser/resource-property-view/resource-property-view-tree-widget.js.map +0 -1
  67. package/lib/browser/resource-property-view/resource-property-view-widget-provider.d.ts +0 -17
  68. package/lib/browser/resource-property-view/resource-property-view-widget-provider.d.ts.map +0 -1
  69. package/lib/browser/resource-property-view/resource-property-view-widget-provider.js +0 -59
  70. package/lib/browser/resource-property-view/resource-property-view-widget-provider.js.map +0 -1
  71. package/lib/package.spec.d.ts +0 -1
  72. package/lib/package.spec.d.ts.map +0 -1
  73. package/lib/package.spec.js +0 -26
  74. package/lib/package.spec.js.map +0 -1
package/README.md CHANGED
@@ -27,7 +27,7 @@ To contribute a specific property view, it is necessary to implement a `Property
27
27
 
28
28
  ## Additional Information
29
29
 
30
- - [API documentation for `@theia/property-view`](https://eclipse-theia.github.io/theia/docs/next/modules/property_view.html)
30
+ - [API documentation for `@theia/property-view`](https://eclipse-theia.github.io/theia/docs/next/modules/_theia_property-view.html)
31
31
  - [Theia - GitHub](https://github.com/eclipse-theia/theia)
32
32
  - [Theia - Website](https://theia-ide.org/)
33
33
 
@@ -40,8 +40,3 @@ To contribute a specific property view, it is necessary to implement a `Property
40
40
 
41
41
  "Theia" is a trademark of the Eclipse Foundation
42
42
  <https://www.eclipse.org/theia>
43
-
44
- ## License
45
-
46
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
47
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@theia/property-view",
3
- "version": "1.67.0-next.13+c409d5d18",
3
+ "version": "1.67.0-next.56+d8f18cc386c",
4
4
  "description": "Theia - Property View Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.67.0-next.13+c409d5d18",
7
- "@theia/filesystem": "1.67.0-next.13+c409d5d18",
6
+ "@theia/core": "1.67.0-next.56+d8f18cc386c",
7
+ "@theia/filesystem": "1.67.0-next.56+d8f18cc386c",
8
8
  "tslib": "^2.6.2"
9
9
  },
10
10
  "publishConfig": {
@@ -45,5 +45,5 @@
45
45
  "nyc": {
46
46
  "extends": "../../configs/nyc.json"
47
47
  },
48
- "gitHead": "c409d5d18d8c4f5a722f87b37ea9d6fd5af47ea8"
48
+ "gitHead": "d8f18cc386c45a736cd193d42eab02c8f64c6b10"
49
49
  }
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import { ReactWidget } from '@theia/core/lib/browser';
3
- import * as React from '@theia/core/shared/react';
4
- import { PropertyViewContentWidget } from './property-view-content-widget';
5
- import { DefaultPropertyViewWidgetProvider } from './property-view-widget-provider';
6
- /**
7
- * Property view widget that is shown if no property data or selection is available.
8
- * This widget is provided by the {@link EmptyPropertyViewWidgetProvider}.
9
- */
10
- declare class EmptyPropertyViewWidget extends ReactWidget implements PropertyViewContentWidget {
11
- static readonly ID = "theia-empty-property-view";
12
- static readonly LABEL = "No Properties";
13
- constructor();
14
- updatePropertyViewContent(): void;
15
- protected render(): React.ReactNode;
16
- protected emptyComponent: JSX.Element;
17
- }
18
- /**
19
- * `EmptyPropertyViewWidgetProvider` is implemented to provide the {@link EmptyPropertyViewWidget}
20
- * if the given selection is undefined or no other provider can handle the given selection.
21
- */
22
- export declare class EmptyPropertyViewWidgetProvider extends DefaultPropertyViewWidgetProvider {
23
- static readonly ID = "no-properties";
24
- readonly id = "no-properties";
25
- readonly label = "DefaultPropertyViewWidgetProvider";
26
- private emptyWidget;
27
- constructor();
28
- canHandle(selection: Object | undefined): number;
29
- provideWidget(selection: Object | undefined): Promise<EmptyPropertyViewWidget>;
30
- updateContentWidget(selection: Object | undefined): void;
31
- }
32
- export {};
33
- //# sourceMappingURL=empty-property-view-widget-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty-property-view-widget-provider.d.ts","sourceRoot":"","sources":["../../src/browser/empty-property-view-widget-provider.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AAEpF;;;GAGG;AACH,cAAM,uBAAwB,SAAQ,WAAY,YAAW,yBAAyB;IAElF,MAAM,CAAC,QAAQ,CAAC,EAAE,+BAA+B;IACjD,MAAM,CAAC,QAAQ,CAAC,KAAK,mBAAmB;;IAWxC,yBAAyB,IAAI,IAAI;IAIjC,SAAS,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS;IAInC,SAAS,CAAC,cAAc,EAAE,GAAG,CAAC,OAAO,CAA+H;CAEvK;AAED;;;GAGG;AACH,qBACa,+BAAgC,SAAQ,iCAAiC;IAElF,MAAM,CAAC,QAAQ,CAAC,EAAE,mBAAmB;IACrC,SAAkB,EAAE,mBAAsC;IAC1D,SAAkB,KAAK,uCAAuC;IAE9D,OAAO,CAAC,WAAW,CAA0B;;IAOpC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAIhD,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAI9E,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CAGpE"}
@@ -1,76 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 EclipseSource 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
- var EmptyPropertyViewWidgetProvider_1;
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.EmptyPropertyViewWidgetProvider = void 0;
20
- const tslib_1 = require("tslib");
21
- const nls_1 = require("@theia/core/lib/common/nls");
22
- const browser_1 = require("@theia/core/lib/browser");
23
- const inversify_1 = require("@theia/core/shared/inversify");
24
- const React = require("@theia/core/shared/react");
25
- const property_view_widget_provider_1 = require("./property-view-widget-provider");
26
- /**
27
- * Property view widget that is shown if no property data or selection is available.
28
- * This widget is provided by the {@link EmptyPropertyViewWidgetProvider}.
29
- */
30
- class EmptyPropertyViewWidget extends browser_1.ReactWidget {
31
- constructor() {
32
- super();
33
- this.emptyComponent = React.createElement("div", { className: 'theia-widget-noInfo' }, nls_1.nls.localize('theia/property-view/noProperties', 'No properties available.'));
34
- this.id = EmptyPropertyViewWidget.ID;
35
- this.title.label = EmptyPropertyViewWidget.LABEL;
36
- this.title.caption = EmptyPropertyViewWidget.LABEL;
37
- this.title.closable = false;
38
- this.node.tabIndex = 0;
39
- }
40
- updatePropertyViewContent() {
41
- this.update();
42
- }
43
- render() {
44
- return this.emptyComponent;
45
- }
46
- }
47
- EmptyPropertyViewWidget.ID = 'theia-empty-property-view';
48
- EmptyPropertyViewWidget.LABEL = 'No Properties';
49
- /**
50
- * `EmptyPropertyViewWidgetProvider` is implemented to provide the {@link EmptyPropertyViewWidget}
51
- * if the given selection is undefined or no other provider can handle the given selection.
52
- */
53
- let EmptyPropertyViewWidgetProvider = EmptyPropertyViewWidgetProvider_1 = class EmptyPropertyViewWidgetProvider extends property_view_widget_provider_1.DefaultPropertyViewWidgetProvider {
54
- constructor() {
55
- super();
56
- this.id = EmptyPropertyViewWidgetProvider_1.ID;
57
- this.label = 'DefaultPropertyViewWidgetProvider';
58
- this.emptyWidget = new EmptyPropertyViewWidget();
59
- }
60
- canHandle(selection) {
61
- return selection === undefined ? 1 : 0;
62
- }
63
- provideWidget(selection) {
64
- return Promise.resolve(this.emptyWidget);
65
- }
66
- updateContentWidget(selection) {
67
- this.emptyWidget.updatePropertyViewContent();
68
- }
69
- };
70
- exports.EmptyPropertyViewWidgetProvider = EmptyPropertyViewWidgetProvider;
71
- EmptyPropertyViewWidgetProvider.ID = 'no-properties';
72
- exports.EmptyPropertyViewWidgetProvider = EmptyPropertyViewWidgetProvider = EmptyPropertyViewWidgetProvider_1 = tslib_1.__decorate([
73
- (0, inversify_1.injectable)(),
74
- tslib_1.__metadata("design:paramtypes", [])
75
- ], EmptyPropertyViewWidgetProvider);
76
- //# sourceMappingURL=empty-property-view-widget-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty-property-view-widget-provider.js","sourceRoot":"","sources":["../../src/browser/empty-property-view-widget-provider.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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,oDAAiD;AACjD,qDAAsD;AACtD,4DAA0D;AAC1D,kDAAkD;AAElD,mFAAoF;AAEpF;;;GAGG;AACH,MAAM,uBAAwB,SAAQ,qBAAW;IAK7C;QACI,KAAK,EAAE,CAAC;QAgBF,mBAAc,GAAgB,6BAAK,SAAS,EAAE,qBAAqB,IAAG,SAAG,CAAC,QAAQ,CAAC,kCAAkC,EAAE,0BAA0B,CAAC,CAAO,CAAC;QAfhK,IAAI,CAAC,EAAE,GAAG,uBAAuB,CAAC,EAAE,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,uBAAuB,CAAC,KAAK,CAAC;QACjD,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,uBAAuB,CAAC,KAAK,CAAC;QACnD,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC5B,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAC3B,CAAC;IAED,yBAAyB;QACrB,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAES,MAAM;QACZ,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;;AAlBe,0BAAE,GAAG,2BAA2B,AAA9B,CAA+B;AACjC,6BAAK,GAAG,eAAe,AAAlB,CAAmB;AAuB5C;;;GAGG;AAEI,IAAM,+BAA+B,uCAArC,MAAM,+BAAgC,SAAQ,iEAAiC;IAQlF;QACI,KAAK,EAAE,CAAC;QANM,OAAE,GAAG,iCAA+B,CAAC,EAAE,CAAC;QACxC,UAAK,GAAG,mCAAmC,CAAC;QAM1D,IAAI,CAAC,WAAW,GAAG,IAAI,uBAAuB,EAAE,CAAC;IACrD,CAAC;IAEQ,SAAS,CAAC,SAA6B;QAC5C,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;IAEQ,aAAa,CAAC,SAA6B;QAChD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7C,CAAC;IAEQ,mBAAmB,CAAC,SAA6B;QACtD,IAAI,CAAC,WAAW,CAAC,yBAAyB,EAAE,CAAC;IACjD,CAAC;;AAvBQ,0EAA+B;AAExB,kCAAE,GAAG,eAAe,AAAlB,CAAmB;0CAF5B,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;;GACA,+BAA+B,CAwB3C"}
@@ -1,29 +0,0 @@
1
- export declare const PropertyDataService: unique symbol;
2
- /**
3
- * `PropertyDataService` should be implemented to provide property data for the given selection.
4
- */
5
- export interface PropertyDataService {
6
- /**
7
- * A unique id for this provider.
8
- */
9
- readonly id: string;
10
- /**
11
- * A human-readable name for this provider.
12
- */
13
- readonly label?: string;
14
- /**
15
- * Test whether this provider can provide property data for the given selection.
16
- * Return a nonzero number if this provider can provide; otherwise it cannot.
17
- * Never reject.
18
- *
19
- * A returned value indicating a priority of this provider.
20
- */
21
- canHandleSelection(selection: Object | undefined): number;
22
- /**
23
- * Provide property data for the given selection.
24
- * Resolve to a property view content widget.
25
- * Never reject if `canHandle` returns a positive number; otherwise should reject.
26
- */
27
- providePropertyData(selection: Object | undefined): Promise<Object | undefined>;
28
- }
29
- //# sourceMappingURL=property-data-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-data-service.d.ts","sourceRoot":"","sources":["../../src/browser/property-data-service.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,mBAAmB,eAAgC,CAAC;AACjE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAE1D;;;;OAIG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAEnF"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 EclipseSource 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.PropertyDataService = void 0;
19
- exports.PropertyDataService = Symbol('PropertyDataService');
20
- //# sourceMappingURL=property-data-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-data-service.js","sourceRoot":"","sources":["../../src/browser/property-data-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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;;;AAEnE,QAAA,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- import { Widget } from '@theia/core/lib/browser/widgets/widget';
2
- import { PropertyDataService } from './property-data-service';
3
- /**
4
- * A widget that fetches the property data via the given {@link PropertyDataService} and the given selection
5
- * and renders that property data.
6
- * This widget can be provided by a registered `PropertyViewWidgetProvider`.
7
- */
8
- export interface PropertyViewContentWidget extends Widget {
9
- updatePropertyViewContent(propertyDataService?: PropertyDataService, selection?: Object): void;
10
- }
11
- //# sourceMappingURL=property-view-content-widget.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-content-widget.d.ts","sourceRoot":"","sources":["../../src/browser/property-view-content-widget.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,yBAA0B,SAAQ,MAAM;IACrD,yBAAyB,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClG"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 EclipseSource 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
- //# sourceMappingURL=property-view-content-widget.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-content-widget.js","sourceRoot":"","sources":["../../src/browser/property-view-content-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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"}
@@ -1,6 +0,0 @@
1
- import { AbstractViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
2
- import { PropertyViewWidget } from './property-view-widget';
3
- export declare class PropertyViewContribution extends AbstractViewContribution<PropertyViewWidget> {
4
- constructor();
5
- }
6
- //# sourceMappingURL=property-view-contribution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/property-view-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAE3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBACa,wBAAyB,SAAQ,wBAAwB,CAAC,kBAAkB,CAAC;;CAczF"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 EclipseSource 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.PropertyViewContribution = void 0;
19
- const tslib_1 = require("tslib");
20
- const view_contribution_1 = require("@theia/core/lib/browser/shell/view-contribution");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const property_view_widget_1 = require("./property-view-widget");
23
- let PropertyViewContribution = class PropertyViewContribution extends view_contribution_1.AbstractViewContribution {
24
- constructor() {
25
- super({
26
- widgetId: property_view_widget_1.PropertyViewWidget.ID,
27
- widgetName: property_view_widget_1.PropertyViewWidget.LABEL,
28
- defaultWidgetOptions: {
29
- area: 'bottom'
30
- },
31
- toggleCommandId: 'property-view:toggle',
32
- toggleKeybinding: 'shift+alt+p'
33
- });
34
- }
35
- };
36
- exports.PropertyViewContribution = PropertyViewContribution;
37
- exports.PropertyViewContribution = PropertyViewContribution = tslib_1.__decorate([
38
- (0, inversify_1.injectable)(),
39
- tslib_1.__metadata("design:paramtypes", [])
40
- ], PropertyViewContribution);
41
- //# sourceMappingURL=property-view-contribution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-contribution.js","sourceRoot":"","sources":["../../src/browser/property-view-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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,uFAA2F;AAC3F,4DAA0D;AAC1D,iEAA4D;AAGrD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,4CAA4C;IAEtF;QACI,KAAK,CAAC;YACF,QAAQ,EAAE,yCAAkB,CAAC,EAAE;YAC/B,UAAU,EAAE,yCAAkB,CAAC,KAAK;YACpC,oBAAoB,EAAE;gBAClB,IAAI,EAAE,QAAQ;aACjB;YACD,eAAe,EAAE,sBAAsB;YACvC,gBAAgB,EAAE,aAAa;SAClC,CAAC,CAAC;IACP,CAAC;CAEJ,CAAA;AAdY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,sBAAU,GAAE;;GACA,wBAAwB,CAcpC"}
@@ -1,5 +0,0 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- import '../../src/browser/style/property-view.css';
3
- declare const _default: ContainerModule;
4
- export default _default;
5
- //# sourceMappingURL=property-view-frontend-module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/property-view-frontend-module.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAQ/D,OAAO,2CAA2C,CAAC;;AAEnD,wBAkBG"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 EclipseSource 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 browser_1 = require("@theia/core/lib/browser");
19
- const contribution_provider_1 = require("@theia/core/lib/common/contribution-provider");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const empty_property_view_widget_provider_1 = require("./empty-property-view-widget-provider");
22
- const property_data_service_1 = require("./property-data-service");
23
- const property_view_contribution_1 = require("./property-view-contribution");
24
- const property_view_service_1 = require("./property-view-service");
25
- const property_view_widget_1 = require("./property-view-widget");
26
- const property_view_widget_provider_1 = require("./property-view-widget-provider");
27
- const resource_property_view_1 = require("./resource-property-view");
28
- require("../../src/browser/style/property-view.css");
29
- exports.default = new inversify_1.ContainerModule(bind => {
30
- bind(property_view_service_1.PropertyViewService).toSelf().inSingletonScope();
31
- (0, contribution_provider_1.bindContributionProvider)(bind, property_data_service_1.PropertyDataService);
32
- (0, contribution_provider_1.bindContributionProvider)(bind, property_view_widget_provider_1.PropertyViewWidgetProvider);
33
- bind(empty_property_view_widget_provider_1.EmptyPropertyViewWidgetProvider).toSelf().inSingletonScope();
34
- bind(property_view_widget_provider_1.PropertyViewWidgetProvider).to(empty_property_view_widget_provider_1.EmptyPropertyViewWidgetProvider);
35
- bind(property_view_widget_1.PropertyViewWidget).toSelf();
36
- bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
37
- id: property_view_widget_1.PropertyViewWidget.ID,
38
- createWidget: () => container.get(property_view_widget_1.PropertyViewWidget)
39
- })).inSingletonScope();
40
- (0, browser_1.bindViewContribution)(bind, property_view_contribution_1.PropertyViewContribution);
41
- (0, resource_property_view_1.bindResourcePropertyView)(bind);
42
- });
43
- //# sourceMappingURL=property-view-frontend-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-frontend-module.js","sourceRoot":"","sources":["../../src/browser/property-view-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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,qDAA8E;AAC9E,wFAAwF;AACxF,4DAA+D;AAC/D,+FAAwF;AACxF,mEAA8D;AAC9D,6EAAwE;AACxE,mEAA8D;AAC9D,iEAA4D;AAC5D,mFAA6E;AAC7E,qEAAoE;AACpE,qDAAmD;AAEnD,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,2CAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAEtD,IAAA,gDAAwB,EAAC,IAAI,EAAE,2CAAmB,CAAC,CAAC;IACpD,IAAA,gDAAwB,EAAC,IAAI,EAAE,0DAA0B,CAAC,CAAC;IAE3D,IAAI,CAAC,qEAA+B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAClE,IAAI,CAAC,0DAA0B,CAAC,CAAC,EAAE,CAAC,qEAA+B,CAAC,CAAC;IAErE,IAAI,CAAC,yCAAkB,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,IAAI,CAAC,uBAAa,CAAC,CAAC,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QACnD,EAAE,EAAE,yCAAkB,CAAC,EAAE;QACzB,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,yCAAkB,CAAC;KACxD,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAEvB,IAAA,8BAAoB,EAAC,IAAI,EAAE,qDAAwB,CAAC,CAAC;IAErD,IAAA,iDAAwB,EAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import { PropertyViewWidgetProvider } from './property-view-widget-provider';
2
- /**
3
- * `PropertyViewService` provides an access to existing property view widget providers.
4
- */
5
- export declare class PropertyViewService {
6
- private readonly contributions;
7
- private readonly emptyWidgetProvider;
8
- private providers;
9
- init(): void;
10
- /**
11
- * Return a property view widget provider with the highest priority for the given selection.
12
- * Never reject, return the default provider ({@link EmptyPropertyViewWidgetProvider};
13
- * displays `No properties available`) if there are no other matches.
14
- */
15
- getProvider(selection: Object | undefined): Promise<PropertyViewWidgetProvider>;
16
- protected prioritize(selection: Object | undefined): Promise<PropertyViewWidgetProvider | undefined>;
17
- }
18
- //# sourceMappingURL=property-view-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-service.d.ts","sourceRoot":"","sources":["../../src/browser/property-view-service.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;GAEG;AACH,qBACa,mBAAmB;IAG5B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmD;IAGjF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAkC;IAEtE,OAAO,CAAC,SAAS,CAAoC;IAGrD,IAAI,IAAI,IAAI;IAIZ;;;;OAIG;IACG,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,0BAA0B,CAAC;cAKrE,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC;CAW7G"}
@@ -1,74 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 EclipseSource 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.PropertyViewService = void 0;
19
- const tslib_1 = require("tslib");
20
- const core_1 = require("@theia/core");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const empty_property_view_widget_provider_1 = require("./empty-property-view-widget-provider");
23
- const property_view_widget_provider_1 = require("./property-view-widget-provider");
24
- /**
25
- * `PropertyViewService` provides an access to existing property view widget providers.
26
- */
27
- let PropertyViewService = class PropertyViewService {
28
- constructor() {
29
- this.providers = [];
30
- }
31
- init() {
32
- this.providers = this.providers.concat(this.contributions.getContributions());
33
- }
34
- /**
35
- * Return a property view widget provider with the highest priority for the given selection.
36
- * Never reject, return the default provider ({@link EmptyPropertyViewWidgetProvider};
37
- * displays `No properties available`) if there are no other matches.
38
- */
39
- async getProvider(selection) {
40
- const provider = await this.prioritize(selection);
41
- return provider !== null && provider !== void 0 ? provider : this.emptyWidgetProvider;
42
- }
43
- async prioritize(selection) {
44
- const prioritized = await core_1.Prioritizeable.prioritizeAll(this.providers, async (provider) => {
45
- try {
46
- return await provider.canHandle(selection);
47
- }
48
- catch {
49
- return 0;
50
- }
51
- });
52
- return prioritized.length !== 0 ? prioritized[0].value : undefined;
53
- }
54
- };
55
- exports.PropertyViewService = PropertyViewService;
56
- tslib_1.__decorate([
57
- (0, inversify_1.inject)(core_1.ContributionProvider),
58
- (0, inversify_1.named)(property_view_widget_provider_1.PropertyViewWidgetProvider),
59
- tslib_1.__metadata("design:type", Object)
60
- ], PropertyViewService.prototype, "contributions", void 0);
61
- tslib_1.__decorate([
62
- (0, inversify_1.inject)(empty_property_view_widget_provider_1.EmptyPropertyViewWidgetProvider),
63
- tslib_1.__metadata("design:type", empty_property_view_widget_provider_1.EmptyPropertyViewWidgetProvider)
64
- ], PropertyViewService.prototype, "emptyWidgetProvider", void 0);
65
- tslib_1.__decorate([
66
- (0, inversify_1.postConstruct)(),
67
- tslib_1.__metadata("design:type", Function),
68
- tslib_1.__metadata("design:paramtypes", []),
69
- tslib_1.__metadata("design:returntype", void 0)
70
- ], PropertyViewService.prototype, "init", null);
71
- exports.PropertyViewService = PropertyViewService = tslib_1.__decorate([
72
- (0, inversify_1.injectable)()
73
- ], PropertyViewService);
74
- //# sourceMappingURL=property-view-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-service.js","sourceRoot":"","sources":["../../src/browser/property-view-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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,sCAAmE;AACnE,4DAAwF;AACxF,+FAAwF;AACxF,mFAA6E;AAE7E;;GAEG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAAzB;QAQK,cAAS,GAAiC,EAAE,CAAC;IA4BzD,CAAC;IAzBG,IAAI;QACA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAW,CAAC,SAA6B;QAC3C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAClD,OAAO,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC,mBAAmB,CAAC;IAChD,CAAC;IAES,KAAK,CAAC,UAAU,CAAC,SAA6B;QACpD,MAAM,WAAW,GAAG,MAAM,qBAAc,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,QAAoC,EAAE,EAAE;YAClH,IAAI,CAAC;gBACD,OAAO,MAAM,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YAC/C,CAAC;YAAC,MAAM,CAAC;gBACL,OAAO,CAAC,CAAC;YACb,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACvE,CAAC;CAEJ,CAAA;AApCY,kDAAmB;AAGX;IADhB,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,0DAA0B,CAAC;;0DACiB;AAGhE;IADhB,IAAA,kBAAM,EAAC,qEAA+B,CAAC;sCACF,qEAA+B;gEAAC;AAKtE;IADC,IAAA,yBAAa,GAAE;;;;+CAGf;8BAbQ,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;GACA,mBAAmB,CAoC/B"}
@@ -1,58 +0,0 @@
1
- import { ContributionProvider, MaybePromise } from '@theia/core';
2
- import { PropertyDataService } from './property-data-service';
3
- import { PropertyViewContentWidget } from './property-view-content-widget';
4
- export declare const PropertyViewWidgetProvider: unique symbol;
5
- /**
6
- * The `PropertyViewWidgetProvider` should be implemented to provide a property view content widget for the given selection..
7
- */
8
- export interface PropertyViewWidgetProvider {
9
- /**
10
- * A unique id for this provider.
11
- */
12
- id: string;
13
- /**
14
- * A human-readable name for this provider.
15
- */
16
- label?: string;
17
- /**
18
- * Test whether this provider can provide a widget for the given selection.
19
- * A returned value indicating a priority of this provider.
20
- *
21
- * @param selection the global selection object
22
- * @returns a nonzero number if this provider can provide; otherwise it cannot; never reject
23
- */
24
- canHandle(selection: Object | undefined): MaybePromise<number>;
25
- /**
26
- * Provide a widget for the given selection.
27
- * Never reject if `canHandle` return a positive number; otherwise should reject.
28
- *
29
- * @param selection the global selection object
30
- * @returns a resolved property view content widget.
31
- */
32
- provideWidget(selection: Object | undefined): Promise<PropertyViewContentWidget>;
33
- /**
34
- * Update the widget with the given selection.
35
- * Never reject if `canHandle` return a positive number; otherwise should reject.
36
- *
37
- * @param selection the global selection object
38
- * @returns a resolved property view content widget.
39
- */
40
- updateContentWidget(selection: Object | undefined): void;
41
- }
42
- /**
43
- * The `DefaultPropertyViewWidgetProvider` is the default abstract implementation of the {@link PropertyViewWidgetProvider}
44
- * and should be extended to provide a property view content widget for the given selection.
45
- */
46
- export declare abstract class DefaultPropertyViewWidgetProvider implements PropertyViewWidgetProvider {
47
- protected readonly contributions: ContributionProvider<PropertyDataService>;
48
- protected propertyDataServices: PropertyDataService[];
49
- id: string;
50
- label: string;
51
- init(): void;
52
- canHandle(selection: Object | undefined): MaybePromise<number>;
53
- provideWidget(selection: Object | undefined): Promise<PropertyViewContentWidget>;
54
- updateContentWidget(selection: Object | undefined): void;
55
- protected getPropertyDataService(selection: Object | undefined): Promise<PropertyDataService>;
56
- protected prioritize(selection: Object | undefined): Promise<PropertyDataService | undefined>;
57
- }
58
- //# sourceMappingURL=property-view-widget-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-widget-provider.d.ts","sourceRoot":"","sources":["../../src/browser/property-view-widget-provider.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,eAAO,MAAM,0BAA0B,eAAuC,CAAC;AAC/E;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IAE/D;;;;;;OAMG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAEjF;;;;;;OAMG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CAE5D;AAED;;;GAGG;AACH,8BACsB,iCAAkC,YAAW,0BAA0B;IAGzF,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAE5E,SAAS,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAAM;IAE3D,EAAE,SAAa;IACf,KAAK,SAAuC;IAG5C,IAAI,IAAI,IAAI;IAIZ,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC;IAI9D,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAIhF,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;cAIxC,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,mBAAmB,CAAC;cAKnF,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;CAUtG"}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 EclipseSource 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.DefaultPropertyViewWidgetProvider = exports.PropertyViewWidgetProvider = void 0;
19
- const tslib_1 = require("tslib");
20
- const core_1 = require("@theia/core");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const property_data_service_1 = require("./property-data-service");
23
- exports.PropertyViewWidgetProvider = Symbol('PropertyViewWidgetProvider');
24
- /**
25
- * The `DefaultPropertyViewWidgetProvider` is the default abstract implementation of the {@link PropertyViewWidgetProvider}
26
- * and should be extended to provide a property view content widget for the given selection.
27
- */
28
- let DefaultPropertyViewWidgetProvider = class DefaultPropertyViewWidgetProvider {
29
- constructor() {
30
- this.propertyDataServices = [];
31
- this.id = 'default';
32
- this.label = 'DefaultPropertyViewWidgetProvider';
33
- }
34
- init() {
35
- this.propertyDataServices = this.propertyDataServices.concat(this.contributions.getContributions());
36
- }
37
- canHandle(selection) {
38
- return 0;
39
- }
40
- provideWidget(selection) {
41
- throw new Error('not implemented');
42
- }
43
- updateContentWidget(selection) {
44
- // no-op
45
- }
46
- async getPropertyDataService(selection) {
47
- const dataService = await this.prioritize(selection);
48
- return dataService !== null && dataService !== void 0 ? dataService : this.propertyDataServices[0];
49
- }
50
- async prioritize(selection) {
51
- const prioritized = await core_1.Prioritizeable.prioritizeAll(this.propertyDataServices, async (service) => {
52
- try {
53
- return service.canHandleSelection(selection);
54
- }
55
- catch {
56
- return 0;
57
- }
58
- });
59
- return prioritized.length !== 0 ? prioritized[0].value : undefined;
60
- }
61
- };
62
- exports.DefaultPropertyViewWidgetProvider = DefaultPropertyViewWidgetProvider;
63
- tslib_1.__decorate([
64
- (0, inversify_1.inject)(core_1.ContributionProvider),
65
- (0, inversify_1.named)(property_data_service_1.PropertyDataService),
66
- tslib_1.__metadata("design:type", Object)
67
- ], DefaultPropertyViewWidgetProvider.prototype, "contributions", void 0);
68
- tslib_1.__decorate([
69
- (0, inversify_1.postConstruct)(),
70
- tslib_1.__metadata("design:type", Function),
71
- tslib_1.__metadata("design:paramtypes", []),
72
- tslib_1.__metadata("design:returntype", void 0)
73
- ], DefaultPropertyViewWidgetProvider.prototype, "init", null);
74
- exports.DefaultPropertyViewWidgetProvider = DefaultPropertyViewWidgetProvider = tslib_1.__decorate([
75
- (0, inversify_1.injectable)()
76
- ], DefaultPropertyViewWidgetProvider);
77
- //# sourceMappingURL=property-view-widget-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property-view-widget-provider.js","sourceRoot":"","sources":["../../src/browser/property-view-widget-provider.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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,sCAAiF;AACjF,4DAAwF;AACxF,mEAA8D;AAGjD,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AA2C/E;;;GAGG;AAEI,IAAe,iCAAiC,GAAhD,MAAe,iCAAiC;IAAhD;QAKO,yBAAoB,GAA0B,EAAE,CAAC;QAE3D,OAAE,GAAG,SAAS,CAAC;QACf,UAAK,GAAG,mCAAmC,CAAC;IAkChD,CAAC;IA/BG,IAAI;QACA,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACxG,CAAC;IAED,SAAS,CAAC,SAA6B;QACnC,OAAO,CAAC,CAAC;IACb,CAAC;IAED,aAAa,CAAC,SAA6B;QACvC,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED,mBAAmB,CAAC,SAA6B;QAC7C,QAAQ;IACZ,CAAC;IAES,KAAK,CAAC,sBAAsB,CAAC,SAA6B;QAChE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QACrD,OAAO,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAES,KAAK,CAAC,UAAU,CAAC,SAA6B;QACpD,MAAM,WAAW,GAAG,MAAM,qBAAc,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,EAAE,OAA4B,EAAE,EAAE;YACrH,IAAI,CAAC;gBACD,OAAO,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;YACjD,CAAC;YAAC,MAAM,CAAC;gBACL,OAAO,CAAC,CAAC;YACb,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACvE,CAAC;CACJ,CAAA;AA1CqB,8EAAiC;AAGhC;IADlB,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,2CAAmB,CAAC;;wEACmB;AAQ5E;IADC,IAAA,yBAAa,GAAE;;;;6DAGf;4CAbiB,iCAAiC;IADtD,IAAA,sBAAU,GAAE;GACS,iCAAiC,CA0CtD"}