@eclipse-glsp/client 2.2.0-next.325 → 2.2.0-next.328
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/css/command-palette.css +6 -2
- package/css/key-shortcut.css +6 -2
- package/css/keyboard-tool-palette.css +3 -1
- package/css/keyboard.css +3 -1
- package/css/tool-palette.css +6 -2
- package/lib/default-modules.d.ts.map +1 -1
- package/lib/default-modules.js +2 -1
- package/lib/default-modules.js.map +1 -1
- package/lib/features/accessibility/move-zoom/move-handler.js +1 -1
- package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +16 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +2 -16
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/command-palette/command-palette-module.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-module.js +2 -1
- package/lib/features/command-palette/command-palette-module.js.map +1 -1
- package/lib/features/command-palette/command-palette.d.ts +21 -0
- package/lib/features/command-palette/command-palette.d.ts.map +1 -0
- package/lib/features/command-palette/command-palette.js +46 -0
- package/lib/features/command-palette/command-palette.js.map +1 -0
- package/lib/features/command-palette/index.d.ts +1 -0
- package/lib/features/command-palette/index.d.ts.map +1 -1
- package/lib/features/command-palette/index.js +1 -0
- package/lib/features/command-palette/index.js.map +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.d.ts +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.d.ts.map +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.js +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.js.map +1 -1
- package/lib/features/helper-lines/helper-line-feedback.d.ts.map +1 -1
- package/lib/features/helper-lines/helper-line-feedback.js +42 -39
- package/lib/features/helper-lines/helper-line-feedback.js.map +1 -1
- package/lib/features/helper-lines/model.d.ts +3 -9
- package/lib/features/helper-lines/model.d.ts.map +1 -1
- package/lib/features/helper-lines/model.js +10 -28
- package/lib/features/helper-lines/model.js.map +1 -1
- package/lib/features/label-edit-ui/index.d.ts +18 -0
- package/lib/features/label-edit-ui/index.d.ts.map +1 -0
- package/lib/features/label-edit-ui/index.js +34 -0
- package/lib/features/label-edit-ui/index.js.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.d.ts +18 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.d.ts.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.js +27 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.js.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui.d.ts +21 -0
- package/lib/features/label-edit-ui/label-edit-ui.d.ts.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui.js +46 -0
- package/lib/features/label-edit-ui/label-edit-ui.js.map +1 -0
- package/lib/features/layout/layout-elements-action.d.ts +16 -1
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.js +7 -6
- package/lib/features/layout/layout-elements-action.js.map +1 -1
- package/lib/features/viewport/reposition.d.ts +1 -1
- package/lib/features/viewport/reposition.d.ts.map +1 -1
- package/lib/features/viewport/reposition.js +10 -13
- package/lib/features/viewport/reposition.js.map +1 -1
- package/lib/utils/geometry-util.d.ts +42 -22
- package/lib/utils/geometry-util.d.ts.map +1 -1
- package/lib/utils/geometry-util.js +42 -83
- package/lib/utils/geometry-util.js.map +1 -1
- package/lib/utils/gmodel-util.js +1 -1
- package/lib/utils/gmodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +10 -20
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/package.json +4 -3
- package/src/base/feedback/index.ts +0 -1
- package/src/base/tool-manager/index.ts +2 -2
- package/src/default-modules.ts +2 -2
- package/src/features/accessibility/key-shortcut/index.ts +2 -2
- package/src/features/accessibility/keyboard-grid/index.ts +2 -2
- package/src/features/accessibility/keyboard-pointer/index.ts +2 -2
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-listener.ts +5 -2
- package/src/features/accessibility/keyboard-tool-palette/index.ts +2 -2
- package/src/features/accessibility/search/index.ts +2 -2
- package/src/features/command-palette/command-palette-module.ts +4 -3
- package/src/features/command-palette/command-palette.ts +34 -0
- package/src/features/command-palette/index.ts +2 -1
- package/src/features/helper-lines/index.ts +2 -2
- package/src/features/hover/index.ts +2 -2
- package/src/features/index.ts +2 -1
- package/src/features/label-edit-ui/index.ts +17 -0
- package/src/features/label-edit-ui/label-edit-ui-module.ts +24 -0
- package/src/features/label-edit-ui/label-edit-ui.ts +33 -0
- package/src/features/tool-palette/index.ts +2 -2
- package/src/features/tools/change-bounds/index.ts +2 -2
- package/src/features/tools/edge-creation/edge-creation-tool-feedback.ts +5 -2
- package/src/features/tools/edge-creation/index.ts +2 -2
- package/src/features/tools/edge-edit/index.ts +2 -2
- package/src/features/tools/marquee-selection/index.ts +2 -2
- package/src/views/index.ts +2 -2
- package/src/views/rounded-corner.ts +5 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
export * from './helper-line-feedback';
|
|
17
|
-
export * from './helper-line-manager-default';
|
|
18
17
|
export * from './helper-line-manager';
|
|
18
|
+
export * from './helper-line-manager-default';
|
|
19
19
|
export * from './helper-line-module';
|
|
20
20
|
export * from './model';
|
|
21
21
|
export * from './view';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
export * from './hover-module';
|
|
17
16
|
export * from './hover';
|
|
17
|
+
export * from './hover-module';
|
package/src/features/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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
|
|
@@ -26,6 +26,7 @@ export * from './helper-lines';
|
|
|
26
26
|
export * from './hints';
|
|
27
27
|
export * from './hover';
|
|
28
28
|
export * from './label-edit';
|
|
29
|
+
export * from './label-edit-ui';
|
|
29
30
|
export * from './layout';
|
|
30
31
|
export * from './navigation';
|
|
31
32
|
export * from './reconnect';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './label-edit-ui';
|
|
17
|
+
export * from './label-edit-ui-module';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { EditLabelAction, EditLabelActionHandler, FeatureModule, TYPES, configureActionHandler } from '@eclipse-glsp/sprotty';
|
|
17
|
+
import { GlspEditLabelUI } from './label-edit-ui';
|
|
18
|
+
|
|
19
|
+
export const labelEditUiModule = new FeatureModule((bind, unbind, isBound, rebind, ...rest) => {
|
|
20
|
+
const context = { bind, unbind, isBound, rebind };
|
|
21
|
+
configureActionHandler(context, EditLabelAction.KIND, EditLabelActionHandler);
|
|
22
|
+
bind(GlspEditLabelUI).toSelf().inSingletonScope();
|
|
23
|
+
bind(TYPES.IUIExtension).toService(GlspEditLabelUI);
|
|
24
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { CSS_HIDDEN_EXTENSION_CLASS, CSS_UI_EXTENSION_CLASS, EditLabelUI } from '@eclipse-glsp/sprotty';
|
|
17
|
+
import { injectable } from 'inversify';
|
|
18
|
+
|
|
19
|
+
@injectable()
|
|
20
|
+
export class GlspEditLabelUI extends EditLabelUI {
|
|
21
|
+
protected override initializeContents(containerElement: HTMLElement): void {
|
|
22
|
+
super.initializeContents(containerElement);
|
|
23
|
+
containerElement.classList.add(CSS_UI_EXTENSION_CLASS);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
protected override setContainerVisible(visible: boolean): void {
|
|
27
|
+
if (visible) {
|
|
28
|
+
this.containerElement?.classList.remove(CSS_HIDDEN_EXTENSION_CLASS);
|
|
29
|
+
} else {
|
|
30
|
+
this.containerElement?.classList.add(CSS_HIDDEN_EXTENSION_CLASS);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
export * from './tool-palette-module';
|
|
17
16
|
export * from './tool-palette';
|
|
17
|
+
export * from './tool-palette-module';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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
|
+
export * from './change-bounds-tool';
|
|
16
17
|
export * from './change-bounds-tool-feedback';
|
|
17
18
|
export * from './change-bounds-tool-module';
|
|
18
|
-
export * from './change-bounds-tool';
|
|
19
19
|
export * from './view';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2024 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
|
|
@@ -34,7 +34,10 @@ import { absoluteToParent, getAbsolutePosition, toAbsoluteBounds } from '../../.
|
|
|
34
34
|
import { FeedbackEdgeEnd, feedbackEdgeEndId } from './dangling-edge-feedback';
|
|
35
35
|
|
|
36
36
|
export class FeedbackEdgeEndMovingMouseListener extends MouseListener implements Disposable {
|
|
37
|
-
constructor(
|
|
37
|
+
constructor(
|
|
38
|
+
protected anchorRegistry: AnchorComputerRegistry,
|
|
39
|
+
protected feedbackDispatcher: IFeedbackActionDispatcher
|
|
40
|
+
) {
|
|
38
41
|
super();
|
|
39
42
|
}
|
|
40
43
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
export * from './dangling-edge-feedback';
|
|
17
17
|
export * from './edege-creation-module';
|
|
18
|
-
export * from './edge-creation-tool-feedback';
|
|
19
18
|
export * from './edge-creation-tool';
|
|
19
|
+
export * from './edge-creation-tool-feedback';
|
|
20
20
|
export * from './view';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
export * from './edge-edit-module';
|
|
17
|
-
export * from './edge-edit-tool-feedback';
|
|
18
17
|
export * from './edge-edit-tool';
|
|
18
|
+
export * from './edge-edit-tool-feedback';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
export * from './marquee-behavior';
|
|
17
17
|
export * from './marquee-mouse-tool';
|
|
18
18
|
export * from './marquee-selection-module';
|
|
19
|
-
export * from './marquee-tool-feedback';
|
|
20
19
|
export * from './marquee-tool';
|
|
20
|
+
export * from './marquee-tool-feedback';
|
|
21
21
|
export * from './model';
|
|
22
22
|
export * from './view';
|
package/src/views/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 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
|
|
@@ -18,5 +18,5 @@ export * from './compartments';
|
|
|
18
18
|
export * from './gedge-view';
|
|
19
19
|
export * from './glsp-projection-view';
|
|
20
20
|
export * from './issue-marker-view';
|
|
21
|
-
export * from './rounded-corner-view';
|
|
22
21
|
export * from './rounded-corner';
|
|
22
|
+
export * from './rounded-corner-view';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021-
|
|
2
|
+
* Copyright (c) 2021-2024 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
|
|
@@ -27,7 +27,10 @@ export class RoundedCornerWrapper {
|
|
|
27
27
|
protected _bottomRightCorner: RoundedCorner;
|
|
28
28
|
protected _bottomLeftCorner: RoundedCorner;
|
|
29
29
|
|
|
30
|
-
constructor(
|
|
30
|
+
constructor(
|
|
31
|
+
public readonly element: GShapeElement & Hoverable & Selectable,
|
|
32
|
+
public readonly cornerRadius: CornerRadius
|
|
33
|
+
) {}
|
|
31
34
|
|
|
32
35
|
get size(): Dimension {
|
|
33
36
|
return this.element.size;
|