@eclipse-glsp/client 2.7.0-next.0 → 2.7.0-next.2
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/base/auto-complete/auto-complete-widget.d.ts +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +3 -5
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +1 -4
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/default.module.d.ts +1 -1
- package/lib/base/default.module.js +2 -2
- package/lib/base/default.module.js.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.d.ts +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.js +2 -4
- package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/base/feedback/feedback-command.d.ts +1 -1
- package/lib/base/feedback/feedback-command.js +2 -2
- package/lib/base/feedback/feedback-command.js.map +1 -1
- package/lib/base/focus/focus-tracker.d.ts +1 -1
- package/lib/base/focus/focus-tracker.js +1 -1
- package/lib/base/model/model-change-service.d.ts +1 -1
- package/lib/base/model/model-change-service.js +1 -1
- package/lib/base/ui-extension/ui-extension.d.ts +1 -1
- package/lib/base/ui-extension/ui-extension.js +3 -3
- package/lib/base/ui-extension/ui-extension.js.map +1 -1
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.d.ts +1 -1
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js +1 -1
- package/lib/features/bounds/bounds-module.d.ts +1 -1
- package/lib/features/bounds/bounds-module.js +2 -2
- package/lib/features/bounds/bounds-module.js.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +1 -1
- package/lib/features/bounds/hbox-layout.d.ts +1 -1
- package/lib/features/bounds/hbox-layout.js +1 -2
- package/lib/features/bounds/hbox-layout.js.map +1 -1
- package/lib/features/bounds/vbox-layout.d.ts +1 -1
- package/lib/features/bounds/vbox-layout.js +1 -2
- package/lib/features/bounds/vbox-layout.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +1 -1
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +1 -2
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/point-position-updater.d.ts +1 -1
- package/lib/features/change-bounds/point-position-updater.js +3 -4
- package/lib/features/change-bounds/point-position-updater.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +1 -1
- package/lib/features/change-bounds/snap.js +15 -0
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/command-palette/command-palette.d.ts +1 -1
- package/lib/features/command-palette/command-palette.js +1 -1
- package/lib/features/context-menu/context-menu-module.d.ts +1 -1
- package/lib/features/context-menu/context-menu-module.js +1 -2
- package/lib/features/context-menu/context-menu-module.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +2 -2
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/debug/debug-bounds-decorator.d.ts +1 -1
- package/lib/features/debug/debug-bounds-decorator.js +12 -13
- package/lib/features/debug/debug-bounds-decorator.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +1 -1
- package/lib/features/navigation/navigation-action-handler.js +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +1 -3
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/views/issue-marker-view.d.ts +1 -1
- package/lib/views/issue-marker-view.js +9 -10
- package/lib/views/issue-marker-view.js.map +1 -1
- package/package.json +4 -4
- package/src/base/action-dispatcher.spec.ts +2 -2
- package/src/base/action-dispatcher.ts +1 -1
- package/src/base/auto-complete/auto-complete-widget.ts +3 -3
- package/src/base/auto-complete/validation-decorator.ts +3 -4
- package/src/base/default.module.ts +2 -2
- package/src/base/feedback/feedback-action-dispatcher.ts +2 -2
- package/src/base/feedback/feedback-command.ts +2 -2
- package/src/base/focus/focus-tracker.ts +1 -1
- package/src/base/model/model-change-service.ts +1 -1
- package/src/base/model/model-initialization-constraint.spec.ts +2 -2
- package/src/base/selection-service.spec.ts +3 -4
- package/src/base/ui-extension/ui-extension.ts +3 -3
- package/src/default-modules.spec.ts +2 -2
- package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.ts +1 -1
- package/src/features/bounds/bounds-module.ts +2 -2
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +1 -1
- package/src/features/bounds/hbox-layout.spec.ts +2 -2
- package/src/features/bounds/hbox-layout.ts +2 -2
- package/src/features/bounds/vbox-layout.spec.ts +2 -2
- package/src/features/bounds/vbox-layout.ts +2 -2
- package/src/features/change-bounds/model.ts +1 -2
- package/src/features/change-bounds/point-position-updater.spec.ts +3 -3
- package/src/features/change-bounds/point-position-updater.ts +4 -4
- package/src/features/change-bounds/snap.ts +2 -2
- package/src/features/command-palette/command-palette.ts +1 -1
- package/src/features/context-menu/context-menu-module.ts +2 -2
- package/src/features/context-menu/delete-element-context-menu.ts +2 -2
- package/src/features/copy-paste/copy-paste-context-menu.ts +2 -2
- package/src/features/debug/debug-bounds-decorator.tsx +2 -2
- package/src/features/layout/layout-elements-action.spec.ts +2 -2
- package/src/features/navigation/navigation-action-handler.ts +3 -3
- package/src/features/tool-palette/tool-palette.ts +1 -3
- package/src/views/issue-marker-view.tsx +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -61,7 +61,7 @@ export interface AutoCompleteWidgetOptions {
|
|
|
61
61
|
selectedSuggestionChanged?: (suggestion?: LabeledAction) => void;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
65
65
|
const configureAutocomplete: (settings: AutocompleteSettings<LabeledAction>) => AutocompleteResult = require('autocompleter');
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -91,7 +91,7 @@ export class AutoCompleteWidget {
|
|
|
91
91
|
public autoSuggestionSettings: AutoCompleteSettings,
|
|
92
92
|
public suggestionProvider: SuggestionProvider,
|
|
93
93
|
public suggestionSubmitHandler: SuggestionSubmitHandler,
|
|
94
|
-
|
|
94
|
+
|
|
95
95
|
protected notifyClose: (reason: CloseReason) => void = () => {},
|
|
96
96
|
protected logger?: ILogger,
|
|
97
97
|
protected options?: AutoCompleteWidgetOptions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -24,14 +24,13 @@ export interface IValidationDecorator {
|
|
|
24
24
|
|
|
25
25
|
export namespace IValidationDecorator {
|
|
26
26
|
export const NO_DECORATION: IValidationDecorator = {
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
28
27
|
decorateValidationResult(_status: ValidationStatus) {},
|
|
29
28
|
isValidatedOk(): boolean {
|
|
30
29
|
return false;
|
|
31
30
|
},
|
|
32
|
-
|
|
31
|
+
|
|
33
32
|
invalidate() {},
|
|
34
|
-
|
|
33
|
+
|
|
35
34
|
dispose() {}
|
|
36
35
|
};
|
|
37
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -75,7 +75,7 @@ export const defaultModule = new FeatureModule(
|
|
|
75
75
|
|
|
76
76
|
bind(EditorContextService).toSelf().inSingletonScope();
|
|
77
77
|
bind(TYPES.IDiagramStartup).toService(EditorContextService);
|
|
78
|
-
// eslint-disable-next-line
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
79
79
|
bind(TYPES.IEditorContextServiceProvider).toProvider<EditorContextService>(
|
|
80
80
|
ctx => async () => ctx.container.get(EditorContextService)
|
|
81
81
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -109,7 +109,7 @@ export class FeedbackActionDispatcher implements IFeedbackActionDispatcher, Disp
|
|
|
109
109
|
if (feedbackEmitter instanceof GModelElement) {
|
|
110
110
|
this.logger.log(
|
|
111
111
|
this,
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
'GModelElements as feedback emitters are discouraged, as they usually change between model updates and are considered unstable.'
|
|
114
114
|
);
|
|
115
115
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
/* eslint-disable
|
|
16
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
17
17
|
import { Command, CommandExecutionContext, CommandReturn, ICommand } from '@eclipse-glsp/sprotty';
|
|
18
18
|
import { Ranked } from '../ranked';
|
|
19
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021-
|
|
2
|
+
* Copyright (c) 2021-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2025 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2025-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -22,7 +22,7 @@ import { DefaultModelInitializationConstraint, ModelInitializationConstraint } f
|
|
|
22
22
|
const sandbox = sinon.createSandbox();
|
|
23
23
|
const container = new Container();
|
|
24
24
|
let constraint: ModelInitializationConstraint;
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
const listener = sandbox.spy((): void => {});
|
|
27
27
|
|
|
28
28
|
describe('DefaultModelInitializationConstraint', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -65,20 +65,19 @@ class MockSelectionListener implements ISelectionListener {
|
|
|
65
65
|
|
|
66
66
|
function createContainer(): Container {
|
|
67
67
|
const container = initializeContainer(new Container(), defaultModule);
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
container.rebind(TYPES.IFeedbackActionDispatcher).to(MockFeedbackActionDispatcher).inSingletonScope();
|
|
70
70
|
return container;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
describe('SelectionService', () => {
|
|
74
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
75
74
|
let root: GModelRoot;
|
|
76
75
|
let selectionService: SelectionService;
|
|
77
76
|
let feedbackDispatcher: MockFeedbackActionDispatcher;
|
|
78
77
|
|
|
79
78
|
beforeEach(() => {
|
|
80
79
|
const container = createContainer();
|
|
81
|
-
|
|
80
|
+
|
|
82
81
|
root = createRoot('node1', 'node2', 'node3', 'node4', 'node5');
|
|
83
82
|
selectionService = container.get<SelectionService>(SelectionService);
|
|
84
83
|
feedbackDispatcher = container.get<MockFeedbackActionDispatcher>(TYPES.IFeedbackActionDispatcher);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024-
|
|
2
|
+
* Copyright (c) 2024-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -53,7 +53,7 @@ export abstract class GLSPAbstractUIExtension extends AbstractUIExtension {
|
|
|
53
53
|
this.initializeContainer(this.containerElement);
|
|
54
54
|
this.initializeContents(this.containerElement);
|
|
55
55
|
} catch (error) {
|
|
56
|
-
const msg = error instanceof Error ? error.message : `Could not retrieve container element for UI extension ${this.id}`;
|
|
56
|
+
const msg = error instanceof Error ? error.message : `Could not retrieve container element for UI extension ${this.id()}`;
|
|
57
57
|
this.logger.error(this, msg);
|
|
58
58
|
return false;
|
|
59
59
|
}
|
|
@@ -73,7 +73,7 @@ export abstract class GLSPAbstractUIExtension extends AbstractUIExtension {
|
|
|
73
73
|
// to create a container the parent container
|
|
74
74
|
const parent = this.getParentContainer();
|
|
75
75
|
if (!parent?.isConnected) {
|
|
76
|
-
throw new Error(`Could not obtain attached parent for initializing UI extension ${this.id}`);
|
|
76
|
+
throw new Error(`Could not obtain attached parent for initializing UI extension ${this.id()}`);
|
|
77
77
|
}
|
|
78
78
|
const container = this.createContainer(parent);
|
|
79
79
|
this.insertContainerIntoParent(container, parent);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2024-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -46,7 +46,7 @@ describe('default-modules', () => {
|
|
|
46
46
|
it('should throw an error if the base (default) module is removed via configuration', () => {
|
|
47
47
|
expect(() => initializeDiagramContainer(container, { remove: defaultModule })).to.throw(/Invalid module configuration/);
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
it('should throw an error if the base (default) module is not the first module of the resolved configured (removed and added again)', () => {
|
|
51
51
|
expect(() => initializeDiagramContainer(container, { remove: defaultModule, add: defaultModule })).to.throw(
|
|
52
52
|
/Invalid module configuration/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023-
|
|
2
|
+
* Copyright (c) 2023-2026 Business Informatics Group (TU Wien) and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -60,7 +60,7 @@ export const boundsModule = new FeatureModule(
|
|
|
60
60
|
configureActionHandler(context, MoveElementRelativeAction.KIND, MoveElementHandler);
|
|
61
61
|
|
|
62
62
|
// backwards compatibility
|
|
63
|
-
// eslint-disable-next-line
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
64
64
|
bind(PositionSnapper).toSelf();
|
|
65
65
|
},
|
|
66
66
|
{ featureId: Symbol('bounds') }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 TypeFox, STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
import { expect } from 'chai';
|
|
18
18
|
import 'mocha';
|
|
19
19
|
import 'reflect-metadata';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021-
|
|
2
|
+
* Copyright (c) 2021-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -204,7 +204,7 @@ export class HBoxLayouterExt extends HBoxLayouter {
|
|
|
204
204
|
layouter: StatefulLayouter
|
|
205
205
|
): Bounds {
|
|
206
206
|
const currentContainer = container;
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
if (isBoundsAware(currentContainer)) {
|
|
209
209
|
const bounds = currentContainer.bounds;
|
|
210
210
|
const elementOptions = this.getElementLayoutOptions(currentContainer);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 TypeFox, STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
import { expect } from 'chai';
|
|
18
18
|
import 'mocha';
|
|
19
19
|
import 'reflect-metadata';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021-
|
|
2
|
+
* Copyright (c) 2021-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -204,7 +204,7 @@ export class VBoxLayouterExt extends VBoxLayouter {
|
|
|
204
204
|
layouter: StatefulLayouter
|
|
205
205
|
): Bounds {
|
|
206
206
|
const currentContainer = container;
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
if (isBoundsAware(currentContainer)) {
|
|
209
209
|
const bounds = currentContainer.bounds;
|
|
210
210
|
const elementOptions = this.getElementLayoutOptions(currentContainer);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -35,7 +35,6 @@ export function isResizable(element: GModelElement): element is ResizableModelEl
|
|
|
35
35
|
return isBoundsAware(element) && isSelectable(element) && element instanceof GParentElement && element.hasFeature(resizeFeature);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// eslint-disable-next-line no-shadow
|
|
39
38
|
export enum ResizeHandleLocation {
|
|
40
39
|
TopLeft = 'top-left',
|
|
41
40
|
Top = 'top',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
/* eslint-disable import/no-deprecated */
|
|
17
|
-
/* eslint-disable
|
|
16
|
+
/* eslint-disable import-x/no-deprecated */
|
|
17
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
18
18
|
|
|
19
19
|
import { GModelElement } from '@eclipse-glsp/sprotty';
|
|
20
20
|
import { expect } from 'chai';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
/* eslint-disable import/no-deprecated */
|
|
18
|
-
/* eslint-disable
|
|
16
|
+
|
|
17
|
+
/* eslint-disable import-x/no-deprecated */
|
|
18
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
19
19
|
|
|
20
20
|
import { GModelElement, ISnapper, Point, Writable } from '@eclipse-glsp/sprotty';
|
|
21
21
|
import { calculateDeltaBetweenPoints } from '../../utils/gmodel-util';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
import { KeyboardModifier } from '@eclipse-glsp/sprotty';
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2024-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -24,7 +24,7 @@ export const contextMenuModule = new FeatureModule(
|
|
|
24
24
|
return ctx.container.get<IContextMenuService>(TYPES.IContextMenuService);
|
|
25
25
|
}
|
|
26
26
|
console.warn("'TYPES.IContextMenuService' is not bound. Use no-op implementation instead");
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
return { show: () => {} };
|
|
29
29
|
});
|
|
30
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -21,7 +21,7 @@ import { messages } from '../../base/messages';
|
|
|
21
21
|
@injectable()
|
|
22
22
|
export class DeleteElementContextMenuItemProvider implements IContextMenuItemProvider {
|
|
23
23
|
/** @deprecated No longer used. The {@link EditorContextService} is now directly injected.*/
|
|
24
|
-
// eslint-disable-next-line
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
25
25
|
@inject(TYPES.IEditorContextServiceProvider) editorContextServiceProvider: EditorContextServiceProvider;
|
|
26
26
|
|
|
27
27
|
@inject(EditorContextService)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
/* eslint-disable
|
|
16
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
17
17
|
import {
|
|
18
18
|
Action,
|
|
19
19
|
ClientMenuItem,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 Axon Ivy AG and others.
|
|
2
|
+
* Copyright (c) 2024-2026 Axon Ivy AG and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
/** @jsx svg */
|
|
18
18
|
import { Bounds, GModelElement, IVNodePostprocessor, Point, TYPES, isDecoration, isSizeable, setClass, svg } from '@eclipse-glsp/sprotty';
|
|
19
19
|
import { inject, injectable, optional } from 'inversify';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
import {
|
|
18
18
|
Action,
|
|
19
19
|
AnimationFrameSyncer,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -141,10 +141,10 @@ export class NavigationActionHandler implements IActionHandler {
|
|
|
141
141
|
@inject(TYPES.ILogger) protected logger: ILogger;
|
|
142
142
|
@inject(TYPES.IActionDispatcher) protected dispatcher: IActionDispatcher;
|
|
143
143
|
/** @deprecated No longer in used. The {@link ActionHandlerRegistry} is now directly injected */
|
|
144
|
-
// eslint-disable-next-line
|
|
144
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
145
145
|
@inject(TYPES.ActionHandlerRegistryProvider) protected actionHandlerRegistryProvider: () => Promise<ActionHandlerRegistry>;
|
|
146
146
|
/** @deprecated No longer in used. The {@link EditorContextService} is now directly injected */
|
|
147
|
-
// eslint-disable-next-line
|
|
147
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
148
148
|
@inject(TYPES.IEditorContextServiceProvider) protected editorContextService: EditorContextServiceProvider;
|
|
149
149
|
@inject(ActionHandlerRegistry) protected actionHandlerRegistry: ActionHandlerRegistry;
|
|
150
150
|
@inject(NavigationTargetResolver) protected resolver: NavigationTargetResolver;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -580,12 +580,10 @@ export function createToolGroup(item: PaletteItem): HTMLElement {
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
export function changeCSSClass(element: Element, css: string): void {
|
|
583
|
-
// eslint-disable-next-line chai-friendly/no-unused-expressions
|
|
584
583
|
element.classList.contains(css) ? element.classList.remove(css) : element.classList.add(css);
|
|
585
584
|
}
|
|
586
585
|
|
|
587
586
|
export function changeCodiconClass(element: Element, codiconId: string): void {
|
|
588
|
-
// eslint-disable-next-line chai-friendly/no-unused-expressions
|
|
589
587
|
element.classList.contains(codiconCSSClasses(codiconId)[1])
|
|
590
588
|
? element.classList.remove(codiconCSSClasses(codiconId)[1])
|
|
591
589
|
: element.classList.add(codiconCSSClasses(codiconId)[1]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2026 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
/** @jsx svg */
|
|
18
18
|
import { GIssueSeverity, IssueMarkerView, RenderingContext, setClass, svg } from '@eclipse-glsp/sprotty';
|
|
19
19
|
import { injectable } from 'inversify';
|