@eclipse-glsp/client 1.1.0-next.c40feb3.207 → 1.1.0-next.cb7168a.239
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/README.md +1 -1
- package/css/decoration.css +1 -1
- package/css/glsp-sprotty.css +18 -18
- package/lib/base/auto-complete/auto-complete-widget.d.ts +2 -2
- package/lib/base/auto-complete/auto-complete-widget.js +3 -3
- package/lib/base/command-stack.d.ts +1 -2
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +5 -14
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts +32 -2
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +74 -40
- package/lib/base/container-modules.js.map +1 -1
- package/lib/base/di.config.d.ts +1 -1
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +7 -7
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +3 -3
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +3 -3
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +4 -5
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +15 -8
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/features/bounds/di.config.d.ts +0 -16
- package/lib/features/bounds/di.config.d.ts.map +1 -1
- package/lib/features/bounds/di.config.js +12 -9
- package/lib/features/bounds/di.config.js.map +1 -1
- package/lib/features/{layout → bounds}/freeform-layout.d.ts +2 -2
- package/lib/features/{layout → bounds}/freeform-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/freeform-layout.js +2 -2
- package/lib/features/{layout → bounds}/freeform-layout.js.map +1 -1
- package/lib/features/bounds/freeform-layout.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests → bounds}/freeform-layout.spec.js +37 -37
- package/lib/features/bounds/freeform-layout.spec.js.map +1 -0
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +3 -2
- package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.d.ts +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.js +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.js.map +1 -1
- package/lib/features/bounds/hbox-layout.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests → bounds}/hbox-layout.spec.js +18 -18
- package/lib/features/bounds/hbox-layout.spec.js.map +1 -0
- package/lib/features/{layout/tests/layouter-test-util.d.ts → bounds/layouter-test-util.spec.d.ts} +3 -4
- package/lib/features/bounds/layouter-test-util.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests/layouter-test-util.js → bounds/layouter-test-util.spec.js} +7 -7
- package/lib/features/bounds/layouter-test-util.spec.js.map +1 -0
- package/lib/features/{layout → bounds}/layouter.d.ts +1 -1
- package/lib/features/{layout → bounds}/layouter.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/layouter.js +1 -1
- package/lib/features/{layout → bounds}/layouter.js.map +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.d.ts +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.js +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.js.map +1 -1
- package/lib/features/bounds/vbox-layout.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests → bounds}/vbox-layout.spec.js +18 -18
- package/lib/features/bounds/vbox-layout.spec.js.map +1 -0
- package/lib/features/command-palette/command-palette-tool.d.ts +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js +3 -3
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.d.ts +0 -15
- package/lib/features/command-palette/di.config.d.ts.map +1 -1
- package/lib/features/command-palette/di.config.js +6 -7
- package/lib/features/command-palette/di.config.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +0 -15
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +4 -3
- package/lib/features/context-menu/di.config.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +2 -2
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +5 -5
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/decoration/di.config.d.ts +0 -15
- package/lib/features/decoration/di.config.d.ts.map +1 -1
- package/lib/features/decoration/di.config.js +4 -4
- package/lib/features/decoration/di.config.js.map +1 -1
- package/lib/features/edit-label/di.config.d.ts +0 -15
- package/lib/features/edit-label/di.config.d.ts.map +1 -1
- package/lib/features/edit-label/di.config.js +3 -2
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/export/di.config.d.ts +4 -0
- package/lib/features/export/di.config.d.ts.map +1 -0
- package/lib/features/export/di.config.js +30 -0
- package/lib/features/export/di.config.js.map +1 -0
- package/lib/features/export/glsp-svg-exporter.d.ts +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
- package/lib/features/export/glsp-svg-exporter.js +1 -2
- package/lib/features/export/glsp-svg-exporter.js.map +1 -1
- package/lib/features/hover/di.config.d.ts +0 -15
- package/lib/features/hover/di.config.d.ts.map +1 -1
- package/lib/features/hover/di.config.js +7 -7
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +2 -1
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +1 -1
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +1 -9
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.js +2 -2
- package/lib/features/layout/layout-elements-action.js.map +1 -1
- package/lib/features/navigation/di.config.d.ts +2 -1
- package/lib/features/navigation/di.config.d.ts.map +1 -1
- package/lib/features/navigation/di.config.js +3 -3
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +2 -2
- package/lib/features/navigation/navigation-action-handler.js +2 -2
- package/lib/features/save/di.config.d.ts +0 -15
- package/lib/features/save/di.config.d.ts.map +1 -1
- package/lib/features/save/di.config.js +3 -2
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/save/model.d.ts +1 -1
- package/lib/features/select/di.config.d.ts +0 -15
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +8 -7
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/select/select-mouse-listener.d.ts +1 -1
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +2 -1
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/select/selection-service.spec.js +19 -3
- package/lib/features/select/selection-service.spec.js.map +1 -1
- package/lib/features/source-model-watcher/di.config.js +1 -1
- package/lib/features/svg-metadata/di.config.d.ts +19 -0
- package/lib/features/svg-metadata/di.config.d.ts.map +1 -0
- package/lib/features/svg-metadata/di.config.js +26 -0
- package/lib/features/svg-metadata/di.config.js.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts +24 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.js +63 -0
- package/lib/features/svg-metadata/metadata-placer.js.map +1 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +4 -3
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +5 -4
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +7 -7
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +8 -11
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +0 -15
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +20 -18
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +2 -3
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +6 -11
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tool-palette/di.config.d.ts +0 -15
- package/lib/features/tool-palette/di.config.d.ts.map +1 -1
- package/lib/features/tool-palette/di.config.js +4 -4
- package/lib/features/tool-palette/di.config.js.map +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 +2 -2
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +6 -6
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +18 -5
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +15 -19
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts +2 -2
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.js +4 -4
- package/lib/features/tools/glsp-manhattan-edge-router.js.map +1 -1
- package/lib/features/validation/di.config.js +4 -4
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/issue-marker.d.ts +1 -1
- package/lib/features/validation/issue-marker.js +1 -1
- package/lib/features/validation/validate.d.ts +6 -6
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +18 -17
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.d.ts +0 -15
- package/lib/features/viewport/di.config.d.ts.map +1 -1
- package/lib/features/viewport/di.config.js +12 -11
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/index.d.ts +28 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +66 -34
- package/lib/index.js.map +1 -1
- package/lib/lib/model.d.ts +7 -3
- package/lib/lib/model.d.ts.map +1 -1
- package/lib/lib/model.js +48 -1
- package/lib/lib/model.js.map +1 -1
- package/lib/sprotty-reexport.d.ts +7 -7
- package/lib/sprotty-reexport.d.ts.map +1 -1
- package/lib/sprotty-reexport.js +19 -10
- package/lib/sprotty-reexport.js.map +1 -1
- package/lib/utils/html-utils.d.ts +1 -1
- package/lib/utils/html-utils.js +1 -1
- package/lib/utils/smodel-util.d.ts +1 -1
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +1 -1
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/views/base-view-module.d.ts +18 -6
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +1 -1
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +2 -2
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +2 -2
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/glsp-projection-view.d.ts +1 -1
- package/lib/views/glsp-projection-view.js +1 -1
- package/lib/views/index.d.ts +1 -1
- package/lib/views/index.js +1 -1
- package/lib/views/rounded-corner-view.js +2 -2
- package/lib/views/rounded-corner.d.ts +1 -1
- package/lib/views/rounded-corner.js +1 -1
- package/package.json +20 -19
- package/src/base/auto-complete/auto-complete-widget.ts +3 -3
- package/src/base/command-stack.ts +13 -11
- package/src/base/container-modules.ts +42 -9
- package/src/base/di.config.ts +8 -8
- package/src/base/editor-context-service.ts +4 -4
- package/src/base/selection-clearing-mouse-listener.ts +1 -1
- package/src/base/tool-manager/glsp-tool-manager.ts +15 -12
- package/src/features/bounds/di.config.ts +21 -11
- package/src/features/{layout/tests → bounds}/freeform-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/freeform-layout.ts +2 -2
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +4 -7
- package/src/features/{layout/tests → bounds}/hbox-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/hbox-layout.ts +1 -1
- package/src/features/{layout/tests/layouter-test-util.ts → bounds/layouter-test-util.spec.ts} +6 -6
- package/src/features/{layout → bounds}/layouter.ts +1 -1
- package/src/features/{layout/tests → bounds}/vbox-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/vbox-layout.ts +1 -1
- package/src/features/command-palette/command-palette-tool.ts +3 -3
- package/src/features/command-palette/di.config.ts +6 -7
- package/src/features/context-menu/di.config.ts +4 -3
- package/src/features/copy-paste/copy-paste-handler.ts +5 -5
- package/src/features/decoration/di.config.ts +4 -4
- package/src/features/edit-label/di.config.ts +3 -2
- package/src/features/export/di.config.ts +29 -0
- package/src/features/export/glsp-svg-exporter.ts +8 -7
- package/src/features/hover/di.config.ts +8 -7
- package/src/features/hover/hover.ts +2 -1
- package/src/features/layout/di.config.ts +2 -11
- package/src/features/layout/layout-elements-action.ts +2 -1
- package/src/features/navigation/di.config.ts +4 -2
- package/src/features/navigation/navigation-action-handler.ts +2 -2
- package/src/features/save/di.config.ts +3 -2
- package/src/features/save/model.ts +1 -1
- package/src/features/select/di.config.ts +8 -7
- package/src/features/select/select-mouse-listener.ts +2 -2
- package/src/features/select/selection-service.spec.ts +4 -5
- package/src/features/source-model-watcher/di.config.ts +1 -1
- package/src/features/svg-metadata/di.config.ts +26 -0
- package/src/features/svg-metadata/metadata-placer.ts +51 -0
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +4 -4
- package/src/features/tool-feedback/creation-tool-feedback.ts +22 -16
- package/src/features/tool-feedback/di.config.ts +20 -18
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +3 -11
- package/src/features/tool-palette/di.config.ts +4 -4
- package/src/features/tool-palette/tool-palette.ts +4 -4
- package/src/features/tools/change-bounds-tool.ts +7 -7
- package/src/features/tools/di.config.ts +19 -24
- package/src/features/tools/glsp-manhattan-edge-router.ts +8 -5
- package/src/features/validation/di.config.ts +5 -5
- package/src/features/validation/issue-marker.ts +1 -1
- package/src/features/validation/validate.ts +16 -19
- package/src/features/viewport/di.config.ts +13 -11
- package/src/index.ts +37 -5
- package/src/lib/model.ts +35 -3
- package/src/sprotty-reexport.ts +24 -8
- package/src/utils/html-utils.ts +1 -1
- package/src/utils/smodel-util.ts +12 -5
- package/src/views/base-view-module.ts +4 -9
- package/src/views/glsp-edge-view.tsx +3 -3
- package/src/views/glsp-projection-view.tsx +1 -1
- package/src/views/index.ts +1 -2
- package/src/views/rounded-corner-view.tsx +2 -2
- package/src/views/rounded-corner.ts +2 -2
- package/lib/features/layout/tests/freeform-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/freeform-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.d.ts.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.js.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.js.map +0 -1
- /package/lib/features/{layout/tests → bounds}/freeform-layout.spec.d.ts +0 -0
- /package/lib/features/{layout/tests → bounds}/hbox-layout.spec.d.ts +0 -0
- /package/lib/features/{layout/tests → bounds}/vbox-layout.spec.d.ts +0 -0
|
@@ -14,7 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.DeleteMarkersCommand = exports.ApplyMarkersCommand = exports.ApplyMarkersAction = exports.SetMarkersActionHandler = exports.ExternalMarkerManager = exports.ValidationFeedbackEmitter = void 0;
|
|
16
16
|
/********************************************************************************
|
|
17
|
-
* Copyright (c) 2019-
|
|
17
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
18
18
|
*
|
|
19
19
|
* This program and the accompanying materials are made available under the
|
|
20
20
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -41,23 +41,25 @@ const issue_marker_1 = require("./issue-marker");
|
|
|
41
41
|
* re-establishing this feedback visualization after the model has been updated.
|
|
42
42
|
*/
|
|
43
43
|
let ValidationFeedbackEmitter = class ValidationFeedbackEmitter {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
constructor() {
|
|
45
|
+
this.registeredFeedbackByReason = new Map();
|
|
46
|
+
}
|
|
46
47
|
/**
|
|
47
48
|
* Register the action that should be emitted for visualizing validation feedback.
|
|
48
49
|
* @param action the action that should be emitted when the model is updated and that will visualize the model validation feedback.
|
|
50
|
+
* @param reason the reason for this validation feedback.
|
|
49
51
|
*/
|
|
50
|
-
registerValidationFeedbackAction(action) {
|
|
51
|
-
// De-register
|
|
52
|
-
this.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const deleteMarkersAction = protocol_1.DeleteMarkersAction.create(
|
|
52
|
+
registerValidationFeedbackAction(action, reason = '') {
|
|
53
|
+
// De-register feedback and clear existing markers with the same reason
|
|
54
|
+
const previousFeedbackWithSameReason = this.registeredFeedbackByReason.get(reason);
|
|
55
|
+
if (previousFeedbackWithSameReason) {
|
|
56
|
+
this.feedbackActionDispatcher.deregisterFeedback(this, [previousFeedbackWithSameReason]);
|
|
57
|
+
const deleteMarkersAction = protocol_1.DeleteMarkersAction.create(previousFeedbackWithSameReason.markers);
|
|
56
58
|
this.actionDispatcher().then(dispatcher => dispatcher.dispatch(deleteMarkersAction));
|
|
57
59
|
}
|
|
58
60
|
// Register new action responsible for applying markers and re-applying them when the model is updated
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
+
this.registeredFeedbackByReason.set(reason, action);
|
|
62
|
+
this.feedbackActionDispatcher.registerFeedback(this, [...this.registeredFeedbackByReason.values()]);
|
|
61
63
|
}
|
|
62
64
|
};
|
|
63
65
|
__decorate([
|
|
@@ -69,8 +71,7 @@ __decorate([
|
|
|
69
71
|
__metadata("design:type", Function)
|
|
70
72
|
], ValidationFeedbackEmitter.prototype, "actionDispatcher", void 0);
|
|
71
73
|
ValidationFeedbackEmitter = __decorate([
|
|
72
|
-
(0, inversify_1.injectable)()
|
|
73
|
-
__metadata("design:paramtypes", [])
|
|
74
|
+
(0, inversify_1.injectable)()
|
|
74
75
|
], ValidationFeedbackEmitter);
|
|
75
76
|
exports.ValidationFeedbackEmitter = ValidationFeedbackEmitter;
|
|
76
77
|
/**
|
|
@@ -96,14 +97,14 @@ exports.ExternalMarkerManager = ExternalMarkerManager;
|
|
|
96
97
|
let SetMarkersActionHandler = class SetMarkersActionHandler {
|
|
97
98
|
handle(action) {
|
|
98
99
|
const markers = action.markers;
|
|
99
|
-
this.setMarkers(markers);
|
|
100
|
+
this.setMarkers(markers, action.reason);
|
|
100
101
|
}
|
|
101
|
-
async setMarkers(markers) {
|
|
102
|
+
async setMarkers(markers, reason) {
|
|
102
103
|
var _a;
|
|
103
104
|
const uri = await this.editorContextService.getSourceUri();
|
|
104
|
-
(_a = this.externalMarkerManager) === null || _a === void 0 ? void 0 : _a.setMarkers(markers, uri);
|
|
105
|
+
(_a = this.externalMarkerManager) === null || _a === void 0 ? void 0 : _a.setMarkers(markers, reason, uri);
|
|
105
106
|
const applyMarkersAction = ApplyMarkersAction.create(markers);
|
|
106
|
-
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction);
|
|
107
|
+
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction, reason);
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
110
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/features/validation/validate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA6G;AAC7G,yCAAyD;AACzD,qCAA4I;AAC5I,8EAAyE;AACzE,4CAAyC;AACzC,yDAA2D;AAE3D,kDAAyD;AACzD,iDAAmH;AAEnH;;;GAGG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/features/validation/validate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA6G;AAC7G,yCAAyD;AACzD,qCAA4I;AAC5I,8EAAyE;AACzE,4CAAyC;AACzC,yDAA2D;AAE3D,kDAAyD;AACzD,iDAAmH;AAEnH;;;GAGG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QAKO,+BAA0B,GAAoC,IAAI,GAAG,EAAE,CAAC;IAoBtF,CAAC;IAlBG;;;;OAIG;IACH,gCAAgC,CAAC,MAA0B,EAAE,MAAM,GAAG,EAAE;QACpE,uEAAuE;QACvE,MAAM,8BAA8B,GAAG,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACnF,IAAI,8BAA8B,EAAE;YAChC,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC;YACzF,MAAM,mBAAmB,GAAG,8BAAmB,CAAC,MAAM,CAAC,8BAA8B,CAAC,OAA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,WAAW,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;wBACjC,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;qBACpC;yBAAM;wBACH,mCAAmC,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;qBAClE;iBACJ;aACJ;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CAAC;IACxB,CAAC;;AA7BM,yBAAI,GAAG,8BAAmB,CAAC,IAAI,CAAC;AAD9B,oBAAoB;IADhC,IAAA,sBAAU,GAAE;IAII,WAAA,IAAA,kBAAM,EAAC,aAAK,CAAC,MAAM,CAAC,CAAA;;GAHxB,oBAAoB,CA+BhC;AA/BY,oDAAoB"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021-2022 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
1
|
import { ContainerModule } from 'inversify';
|
|
17
2
|
declare const glspViewportModule: ContainerModule;
|
|
18
3
|
export default glspViewportModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAgB5C,QAAA,MAAM,kBAAkB,iBAatB,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/********************************************************************************
|
|
4
|
-
* Copyright (c) 2021-
|
|
4
|
+
* Copyright (c) 2021-2023 EclipseSource and others.
|
|
5
5
|
*
|
|
6
6
|
* This program and the accompanying materials are made available under the
|
|
7
7
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -15,20 +15,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
*
|
|
16
16
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
17
|
********************************************************************************/
|
|
18
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
18
19
|
const inversify_1 = require("inversify");
|
|
19
20
|
const sprotty_1 = require("sprotty");
|
|
20
21
|
const glsp_scroll_mouse_listener_1 = require("./glsp-scroll-mouse-listener");
|
|
21
22
|
const glspViewportModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
22
|
-
|
|
23
|
-
(0, sprotty_1.configureCommand)(
|
|
24
|
-
(0, sprotty_1.configureCommand)(
|
|
25
|
-
(0, sprotty_1.configureCommand)(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
(0, sprotty_1.configureActionHandler)(
|
|
31
|
-
(0, sprotty_1.configureActionHandler)(
|
|
23
|
+
const context = { bind, isBound };
|
|
24
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.CenterCommand);
|
|
25
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.FitToScreenCommand);
|
|
26
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.GetViewportCommand);
|
|
27
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.SetViewportCommand);
|
|
28
|
+
(0, protocol_1.bindAsService)(context, sprotty_1.TYPES.KeyListener, sprotty_1.CenterKeyboardListener);
|
|
29
|
+
(0, protocol_1.bindAsService)(context, sprotty_1.TYPES.MouseListener, sprotty_1.ZoomMouseListener);
|
|
30
|
+
(0, protocol_1.bindAsService)(context, sprotty_1.TYPES.MouseListener, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
31
|
+
(0, sprotty_1.configureActionHandler)(context, sprotty_1.EnableToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
32
|
+
(0, sprotty_1.configureActionHandler)(context, sprotty_1.EnableDefaultToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
32
33
|
});
|
|
33
34
|
exports.default = glspViewportModule;
|
|
34
35
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAYiB;AACjB,6EAAuE;AAEvE,MAAM,kBAAkB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACtE,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,qCAYiB;AACjB,6EAAuE;AAEvE,MAAM,kBAAkB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACtE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,0BAAgB,EAAC,OAAO,EAAE,uBAAa,CAAC,CAAC;IACzC,IAAA,0BAAgB,EAAC,OAAO,EAAE,4BAAkB,CAAC,CAAC;IAC9C,IAAA,0BAAgB,EAAC,OAAO,EAAE,4BAAkB,CAAC,CAAC;IAC9C,IAAA,0BAAgB,EAAC,OAAO,EAAE,4BAAkB,CAAC,CAAC;IAE9C,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,WAAW,EAAE,gCAAsB,CAAC,CAAC;IAClE,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,aAAa,EAAE,2BAAiB,CAAC,CAAC;IAC/D,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,aAAa,EAAE,oDAAuB,CAAC,CAAC;IAErE,IAAA,gCAAsB,EAAC,OAAO,EAAE,2BAAiB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;IACjF,IAAA,gCAAsB,EAAC,OAAO,EAAE,kCAAwB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;AAC5F,CAAC,CAAC,CAAC;AAEH,kBAAe,kBAAkB,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 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,19 +18,20 @@ import glspCommandPaletteModule from './features/command-palette/di.config';
|
|
|
18
18
|
import glspContextMenuModule from './features/context-menu/di.config';
|
|
19
19
|
import { copyPasteContextMenuModule, glspServerCopyPasteModule } from './features/copy-paste/di.config';
|
|
20
20
|
import glspDecorationModule from './features/decoration/di.config';
|
|
21
|
+
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
21
22
|
import glspEditLabelModule from './features/edit-label/di.config';
|
|
22
23
|
import modelHintsModule from './features/hints/di.config';
|
|
23
24
|
import glspHoverModule from './features/hover/di.config';
|
|
24
25
|
import layoutModule from './features/layout/di.config';
|
|
25
26
|
import glspMouseToolModule from './features/mouse-tool/di.config';
|
|
26
|
-
import
|
|
27
|
+
import navigationModule from './features/navigation/di.config';
|
|
27
28
|
import saveModule from './features/save/di.config';
|
|
28
29
|
import glspSelectModule from './features/select/di.config';
|
|
29
30
|
import sourceModelWatcherModule from './features/source-model-watcher/di.config';
|
|
30
31
|
import toolFeedbackModule from './features/tool-feedback/di.config';
|
|
31
32
|
import paletteModule from './features/tool-palette/di.config';
|
|
32
33
|
import { enableDefaultToolsOnFocusLossModule, toolsModule } from './features/tools/di.config';
|
|
33
|
-
import { markerNavigatorModule, validationModule } from './features/validation/di.config';
|
|
34
|
+
import { markerNavigatorContextMenuModule, markerNavigatorModule, validationModule } from './features/validation/di.config';
|
|
34
35
|
import glspViewportModule from './features/viewport/di.config';
|
|
35
36
|
export * from './base/action-dispatcher';
|
|
36
37
|
export * from './base/actions/focus-change-action';
|
|
@@ -49,18 +50,30 @@ export * from './base/model/model-registry';
|
|
|
49
50
|
export * from './base/model/update-model-command';
|
|
50
51
|
export * from './base/selection-clearing-mouse-listener';
|
|
51
52
|
export * from './base/source-uri-aware';
|
|
53
|
+
export * from './base/tool-manager/glsp-tool-manager';
|
|
52
54
|
export * from './base/tool-manager/tool-actions';
|
|
53
55
|
export * from './base/types';
|
|
54
56
|
export * from './base/view/view-registry';
|
|
57
|
+
export * from './features/bounds/freeform-layout';
|
|
58
|
+
export * from './features/bounds/glsp-hidden-bounds-updater';
|
|
59
|
+
export * from './features/bounds/hbox-layout';
|
|
60
|
+
export * from './features/bounds/layouter';
|
|
61
|
+
export * from './features/bounds/vbox-layout';
|
|
55
62
|
export * from './features/change-bounds/model';
|
|
56
63
|
export * from './features/change-bounds/movement-restrictor';
|
|
57
64
|
export * from './features/change-bounds/snap';
|
|
65
|
+
export * from './features/command-palette/command-palette-tool';
|
|
58
66
|
export * from './features/command-palette/server-command-palette-provider';
|
|
59
67
|
export * from './features/context-menu/delete-element-context-menu';
|
|
68
|
+
export * from './features/context-menu/selection-service-aware-context-menu-mouse-listener';
|
|
69
|
+
export * from './features/context-menu/server-context-menu-provider';
|
|
70
|
+
export * from './features/copy-paste/copy-paste-context-menu';
|
|
60
71
|
export * from './features/copy-paste/copy-paste-handler';
|
|
61
72
|
export * from './features/decoration/decoration-placer';
|
|
73
|
+
export * from './features/svg-metadata/metadata-placer';
|
|
62
74
|
export * from './features/edit-label/edit-label-tool';
|
|
63
75
|
export * from './features/edit-label/edit-label-validator';
|
|
76
|
+
export * from './features/export/glsp-svg-exporter';
|
|
64
77
|
export * from './features/hints/model';
|
|
65
78
|
export * from './features/hints/type-hints';
|
|
66
79
|
export * from './features/hover/hover';
|
|
@@ -72,20 +85,29 @@ export * from './features/rank/model';
|
|
|
72
85
|
export * from './features/reconnect/model';
|
|
73
86
|
export * from './features/save/model';
|
|
74
87
|
export * from './features/save/save-keylistener';
|
|
88
|
+
export * from './features/select/select-feedback-action';
|
|
89
|
+
export * from './features/select/select-mouse-listener';
|
|
90
|
+
export * from './features/select/selection-service';
|
|
75
91
|
export * from './features/source-model-watcher/source-model-changed-action-handler';
|
|
76
92
|
export * from './features/tool-feedback/change-bounds-tool-feedback';
|
|
77
93
|
export * from './features/tool-feedback/creation-tool-feedback';
|
|
78
94
|
export * from './features/tool-feedback/css-feedback';
|
|
79
95
|
export * from './features/tool-feedback/edge-edit-tool-feedback';
|
|
80
96
|
export * from './features/tool-feedback/feedback-action-dispatcher';
|
|
97
|
+
export * from './features/tool-feedback/marquee-tool-feedback';
|
|
81
98
|
export * from './features/tool-feedback/model';
|
|
99
|
+
export * from './features/tool-feedback/view';
|
|
82
100
|
export * from './features/tool-palette/tool-palette';
|
|
83
101
|
export * from './features/tools/base-glsp-tool';
|
|
84
102
|
export * from './features/tools/change-bounds-tool';
|
|
85
103
|
export * from './features/tools/delete-tool';
|
|
104
|
+
export { configureMarqueeTool } from './features/tools/di.config';
|
|
86
105
|
export * from './features/tools/edge-creation-tool';
|
|
87
106
|
export * from './features/tools/edge-edit-tool';
|
|
107
|
+
export * from './features/tools/enable-default-tools-on-focus-loss';
|
|
108
|
+
export * from './features/tools/glsp-manhattan-edge-router';
|
|
88
109
|
export * from './features/tools/marquee-behavior';
|
|
110
|
+
export * from './features/tools/model';
|
|
89
111
|
export * from './features/tools/node-creation-tool';
|
|
90
112
|
export * from './features/validation/issue-marker';
|
|
91
113
|
export * from './features/validation/marker-navigator';
|
|
@@ -95,9 +117,11 @@ export * from './lib/model';
|
|
|
95
117
|
export * from './model-source/glsp-diagram-server';
|
|
96
118
|
export * from './sprotty-reexport';
|
|
97
119
|
export * from './utils/argument-utils';
|
|
120
|
+
export * from './utils/html-utils';
|
|
121
|
+
export * from './utils/layout-utils';
|
|
98
122
|
export * from './utils/marker';
|
|
99
123
|
export * from './utils/smodel-util';
|
|
100
124
|
export * from './utils/viewpoint-util';
|
|
101
125
|
export * from './views';
|
|
102
|
-
export { validationModule, saveModule, paletteModule, toolFeedbackModule, defaultGLSPModule, modelHintsModule, glspCommandPaletteModule, glspContextMenuModule, glspServerCopyPasteModule, copyPasteContextMenuModule, glspSelectModule, glspMouseToolModule, layoutModule, glspEditLabelModule, glspHoverModule, toolsModule, enableDefaultToolsOnFocusLossModule, navigationModule, markerNavigatorModule, glspDecorationModule, sourceModelWatcherModule
|
|
126
|
+
export { validationModule, saveModule, paletteModule, toolFeedbackModule, defaultGLSPModule, modelHintsModule, glspCommandPaletteModule, glspContextMenuModule, glspServerCopyPasteModule, copyPasteContextMenuModule, glspSelectModule, glspMouseToolModule, layoutModule, glspEditLabelModule, glspHoverModule, toolsModule, enableDefaultToolsOnFocusLossModule, navigationModule, markerNavigatorModule, glspDecorationModule, sourceModelWatcherModule, markerNavigatorContextMenuModule, glspViewportModule, svgMetadataModule };
|
|
103
127
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,iBAAiB,MAAM,kBAAkB,CAAC;AACjD,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACxG,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,iBAAiB,MAAM,kBAAkB,CAAC;AACjD,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACxG,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,iBAAiB,MAAM,mCAAmC,CAAC;AAClE,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,gBAAgB,MAAM,6BAA6B,CAA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ACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gDAAgD,CAAC;AAG/D,cAAc,aAAa,CAAC;AAC5B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AAExB,OAAO,EACH,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,mCAAmC,EACnC,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB,EACpB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.glspViewportModule = exports.
|
|
17
|
+
exports.svgMetadataModule = exports.glspViewportModule = exports.markerNavigatorContextMenuModule = exports.sourceModelWatcherModule = exports.glspDecorationModule = exports.markerNavigatorModule = exports.navigationModule = exports.enableDefaultToolsOnFocusLossModule = exports.toolsModule = exports.glspHoverModule = exports.glspEditLabelModule = exports.layoutModule = exports.glspMouseToolModule = exports.glspSelectModule = exports.copyPasteContextMenuModule = exports.glspServerCopyPasteModule = exports.glspContextMenuModule = exports.glspCommandPaletteModule = exports.modelHintsModule = exports.defaultGLSPModule = exports.toolFeedbackModule = exports.paletteModule = exports.saveModule = exports.validationModule = exports.configureMarqueeTool = exports.configureServerActions = void 0;
|
|
18
18
|
/********************************************************************************
|
|
19
|
-
* Copyright (c) 2019-
|
|
19
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
20
20
|
*
|
|
21
21
|
* This program and the accompanying materials are made available under the
|
|
22
22
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -41,36 +41,40 @@ Object.defineProperty(exports, "copyPasteContextMenuModule", { enumerable: true,
|
|
|
41
41
|
Object.defineProperty(exports, "glspServerCopyPasteModule", { enumerable: true, get: function () { return di_config_4.glspServerCopyPasteModule; } });
|
|
42
42
|
const di_config_5 = require("./features/decoration/di.config");
|
|
43
43
|
exports.glspDecorationModule = di_config_5.default;
|
|
44
|
-
const di_config_6 = require("./features/
|
|
45
|
-
exports.
|
|
46
|
-
const di_config_7 = require("./features/
|
|
47
|
-
exports.
|
|
48
|
-
const di_config_8 = require("./features/
|
|
49
|
-
exports.
|
|
50
|
-
const di_config_9 = require("./features/
|
|
51
|
-
exports.
|
|
52
|
-
const di_config_10 = require("./features/
|
|
53
|
-
exports.
|
|
54
|
-
const di_config_11 = require("./features/
|
|
55
|
-
|
|
56
|
-
const di_config_12 = require("./features/
|
|
57
|
-
exports.
|
|
58
|
-
const di_config_13 = require("./features/
|
|
59
|
-
exports.
|
|
60
|
-
const di_config_14 = require("./features/
|
|
61
|
-
exports.
|
|
62
|
-
const di_config_15 = require("./features/
|
|
63
|
-
exports.
|
|
64
|
-
const di_config_16 = require("./features/tool-
|
|
65
|
-
exports.
|
|
66
|
-
const di_config_17 = require("./features/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
Object.defineProperty(exports, "
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
exports
|
|
44
|
+
const di_config_6 = require("./features/svg-metadata/di.config");
|
|
45
|
+
exports.svgMetadataModule = di_config_6.default;
|
|
46
|
+
const di_config_7 = require("./features/edit-label/di.config");
|
|
47
|
+
exports.glspEditLabelModule = di_config_7.default;
|
|
48
|
+
const di_config_8 = require("./features/hints/di.config");
|
|
49
|
+
exports.modelHintsModule = di_config_8.default;
|
|
50
|
+
const di_config_9 = require("./features/hover/di.config");
|
|
51
|
+
exports.glspHoverModule = di_config_9.default;
|
|
52
|
+
const di_config_10 = require("./features/layout/di.config");
|
|
53
|
+
exports.layoutModule = di_config_10.default;
|
|
54
|
+
const di_config_11 = require("./features/mouse-tool/di.config");
|
|
55
|
+
exports.glspMouseToolModule = di_config_11.default;
|
|
56
|
+
const di_config_12 = require("./features/navigation/di.config");
|
|
57
|
+
exports.navigationModule = di_config_12.default;
|
|
58
|
+
const di_config_13 = require("./features/save/di.config");
|
|
59
|
+
exports.saveModule = di_config_13.default;
|
|
60
|
+
const di_config_14 = require("./features/select/di.config");
|
|
61
|
+
exports.glspSelectModule = di_config_14.default;
|
|
62
|
+
const di_config_15 = require("./features/source-model-watcher/di.config");
|
|
63
|
+
exports.sourceModelWatcherModule = di_config_15.default;
|
|
64
|
+
const di_config_16 = require("./features/tool-feedback/di.config");
|
|
65
|
+
exports.toolFeedbackModule = di_config_16.default;
|
|
66
|
+
const di_config_17 = require("./features/tool-palette/di.config");
|
|
67
|
+
exports.paletteModule = di_config_17.default;
|
|
68
|
+
const di_config_18 = require("./features/tools/di.config");
|
|
69
|
+
Object.defineProperty(exports, "enableDefaultToolsOnFocusLossModule", { enumerable: true, get: function () { return di_config_18.enableDefaultToolsOnFocusLossModule; } });
|
|
70
|
+
Object.defineProperty(exports, "toolsModule", { enumerable: true, get: function () { return di_config_18.toolsModule; } });
|
|
71
|
+
const di_config_19 = require("./features/validation/di.config");
|
|
72
|
+
Object.defineProperty(exports, "markerNavigatorContextMenuModule", { enumerable: true, get: function () { return di_config_19.markerNavigatorContextMenuModule; } });
|
|
73
|
+
Object.defineProperty(exports, "markerNavigatorModule", { enumerable: true, get: function () { return di_config_19.markerNavigatorModule; } });
|
|
74
|
+
Object.defineProperty(exports, "validationModule", { enumerable: true, get: function () { return di_config_19.validationModule; } });
|
|
75
|
+
const di_config_20 = require("./features/viewport/di.config");
|
|
76
|
+
exports.glspViewportModule = di_config_20.default;
|
|
77
|
+
// ------------------ Base ------------------
|
|
74
78
|
__exportStar(require("./base/action-dispatcher"), exports);
|
|
75
79
|
__exportStar(require("./base/actions/focus-change-action"), exports);
|
|
76
80
|
__exportStar(require("./base/argumentable"), exports);
|
|
@@ -79,8 +83,8 @@ __exportStar(require("./base/auto-complete/auto-complete-widget"), exports);
|
|
|
79
83
|
__exportStar(require("./base/auto-complete/validation-decorator"), exports);
|
|
80
84
|
__exportStar(require("./base/command-stack"), exports);
|
|
81
85
|
__exportStar(require("./base/container-modules"), exports);
|
|
82
|
-
var
|
|
83
|
-
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return
|
|
86
|
+
var di_config_21 = require("./base/di.config");
|
|
87
|
+
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return di_config_21.configureServerActions; } });
|
|
84
88
|
__exportStar(require("./base/drag-aware-mouse-listener"), exports);
|
|
85
89
|
__exportStar(require("./base/editor-context-service"), exports);
|
|
86
90
|
__exportStar(require("./base/focus-tracker"), exports);
|
|
@@ -89,18 +93,32 @@ __exportStar(require("./base/model/model-registry"), exports);
|
|
|
89
93
|
__exportStar(require("./base/model/update-model-command"), exports);
|
|
90
94
|
__exportStar(require("./base/selection-clearing-mouse-listener"), exports);
|
|
91
95
|
__exportStar(require("./base/source-uri-aware"), exports);
|
|
96
|
+
__exportStar(require("./base/tool-manager/glsp-tool-manager"), exports);
|
|
92
97
|
__exportStar(require("./base/tool-manager/tool-actions"), exports);
|
|
93
98
|
__exportStar(require("./base/types"), exports);
|
|
94
99
|
__exportStar(require("./base/view/view-registry"), exports);
|
|
100
|
+
//
|
|
101
|
+
// ------------------ Features ------------------
|
|
102
|
+
__exportStar(require("./features/bounds/freeform-layout"), exports);
|
|
103
|
+
__exportStar(require("./features/bounds/glsp-hidden-bounds-updater"), exports);
|
|
104
|
+
__exportStar(require("./features/bounds/hbox-layout"), exports);
|
|
105
|
+
__exportStar(require("./features/bounds/layouter"), exports);
|
|
106
|
+
__exportStar(require("./features/bounds/vbox-layout"), exports);
|
|
95
107
|
__exportStar(require("./features/change-bounds/model"), exports);
|
|
96
108
|
__exportStar(require("./features/change-bounds/movement-restrictor"), exports);
|
|
97
109
|
__exportStar(require("./features/change-bounds/snap"), exports);
|
|
110
|
+
__exportStar(require("./features/command-palette/command-palette-tool"), exports);
|
|
98
111
|
__exportStar(require("./features/command-palette/server-command-palette-provider"), exports);
|
|
99
112
|
__exportStar(require("./features/context-menu/delete-element-context-menu"), exports);
|
|
113
|
+
__exportStar(require("./features/context-menu/selection-service-aware-context-menu-mouse-listener"), exports);
|
|
114
|
+
__exportStar(require("./features/context-menu/server-context-menu-provider"), exports);
|
|
115
|
+
__exportStar(require("./features/copy-paste/copy-paste-context-menu"), exports);
|
|
100
116
|
__exportStar(require("./features/copy-paste/copy-paste-handler"), exports);
|
|
101
117
|
__exportStar(require("./features/decoration/decoration-placer"), exports);
|
|
118
|
+
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
102
119
|
__exportStar(require("./features/edit-label/edit-label-tool"), exports);
|
|
103
120
|
__exportStar(require("./features/edit-label/edit-label-validator"), exports);
|
|
121
|
+
__exportStar(require("./features/export/glsp-svg-exporter"), exports);
|
|
104
122
|
__exportStar(require("./features/hints/model"), exports);
|
|
105
123
|
__exportStar(require("./features/hints/type-hints"), exports);
|
|
106
124
|
__exportStar(require("./features/hover/hover"), exports);
|
|
@@ -112,29 +130,43 @@ __exportStar(require("./features/rank/model"), exports);
|
|
|
112
130
|
__exportStar(require("./features/reconnect/model"), exports);
|
|
113
131
|
__exportStar(require("./features/save/model"), exports);
|
|
114
132
|
__exportStar(require("./features/save/save-keylistener"), exports);
|
|
133
|
+
__exportStar(require("./features/select/select-feedback-action"), exports);
|
|
134
|
+
__exportStar(require("./features/select/select-mouse-listener"), exports);
|
|
135
|
+
__exportStar(require("./features/select/selection-service"), exports);
|
|
115
136
|
__exportStar(require("./features/source-model-watcher/source-model-changed-action-handler"), exports);
|
|
116
137
|
__exportStar(require("./features/tool-feedback/change-bounds-tool-feedback"), exports);
|
|
117
138
|
__exportStar(require("./features/tool-feedback/creation-tool-feedback"), exports);
|
|
118
139
|
__exportStar(require("./features/tool-feedback/css-feedback"), exports);
|
|
119
140
|
__exportStar(require("./features/tool-feedback/edge-edit-tool-feedback"), exports);
|
|
120
141
|
__exportStar(require("./features/tool-feedback/feedback-action-dispatcher"), exports);
|
|
142
|
+
__exportStar(require("./features/tool-feedback/marquee-tool-feedback"), exports);
|
|
121
143
|
__exportStar(require("./features/tool-feedback/model"), exports);
|
|
144
|
+
__exportStar(require("./features/tool-feedback/view"), exports);
|
|
122
145
|
__exportStar(require("./features/tool-palette/tool-palette"), exports);
|
|
123
146
|
__exportStar(require("./features/tools/base-glsp-tool"), exports);
|
|
124
147
|
__exportStar(require("./features/tools/change-bounds-tool"), exports);
|
|
125
148
|
__exportStar(require("./features/tools/delete-tool"), exports);
|
|
149
|
+
var di_config_22 = require("./features/tools/di.config");
|
|
150
|
+
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return di_config_22.configureMarqueeTool; } });
|
|
126
151
|
__exportStar(require("./features/tools/edge-creation-tool"), exports);
|
|
127
152
|
__exportStar(require("./features/tools/edge-edit-tool"), exports);
|
|
153
|
+
__exportStar(require("./features/tools/enable-default-tools-on-focus-loss"), exports);
|
|
154
|
+
__exportStar(require("./features/tools/glsp-manhattan-edge-router"), exports);
|
|
128
155
|
__exportStar(require("./features/tools/marquee-behavior"), exports);
|
|
156
|
+
__exportStar(require("./features/tools/model"), exports);
|
|
129
157
|
__exportStar(require("./features/tools/node-creation-tool"), exports);
|
|
130
158
|
__exportStar(require("./features/validation/issue-marker"), exports);
|
|
131
159
|
__exportStar(require("./features/validation/marker-navigator"), exports);
|
|
132
160
|
__exportStar(require("./features/validation/validate"), exports);
|
|
133
161
|
__exportStar(require("./features/viewport/glsp-scroll-mouse-listener"), exports);
|
|
162
|
+
//
|
|
163
|
+
// ------------------ Misc ------------------
|
|
134
164
|
__exportStar(require("./lib/model"), exports);
|
|
135
165
|
__exportStar(require("./model-source/glsp-diagram-server"), exports);
|
|
136
166
|
__exportStar(require("./sprotty-reexport"), exports);
|
|
137
167
|
__exportStar(require("./utils/argument-utils"), exports);
|
|
168
|
+
__exportStar(require("./utils/html-utils"), exports);
|
|
169
|
+
__exportStar(require("./utils/layout-utils"), exports);
|
|
138
170
|
__exportStar(require("./utils/marker"), exports);
|
|
139
171
|
__exportStar(require("./utils/smodel-util"), exports);
|
|
140
172
|
__exportStar(require("./utils/viewpoint-util"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAAiD;AA0H7C,4BA1HG,mBAAiB,CA0HH;AAzHrB,oEAA4E;AA2HxE,mCA3HG,mBAAwB,CA2HH;AA1H5B,iEAAsE;AA2HlE,gCA3HG,mBAAqB,CA2HH;AA1HzB,+DAAwG;AA4HpG,2GA5HK,sCAA0B,OA4HL;AAD1B,0GA3HiC,qCAAyB,OA2HjC;AA1H7B,+DAAmE;AAqI/D,+BArIG,mBAAoB,CAqIH;AApIxB,iEAAkE;AAwI9D,4BAxIG,mBAAiB,CAwIH;AAvIrB,+DAAkE;AA6H9D,8BA7HG,mBAAmB,CA6HH;AA5HvB,0DAA0D;AAoHtD,2BApHG,mBAAgB,CAoHH;AAnHpB,0DAAyD;AA4HrD,0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FAAqE;AACrE,gFAA8D;AAC9D,2EAAyD;AACzD,0EAAwD;AACxD,0EAAwD;AACxD,wEAAsD;AACtD,6EAA2D;AAC3D,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,2EAAyD;AACzD,mEAAiD;AACjD,kFAAgE;AAChE,mFAAiE;AACjE,wDAAsC;AACtC,6DAA2C;AAC3C,wDAAsC;AACtC,mEAAiD;AACjD,2EAAyD;AACzD,0EAAwD;AACxD,sEAAoD;AACpD,sGAAoF;AACpF,uFAAqE;AACrE,kFAAgE;AAChE,wEAAsD;AACtD,mFAAiE;AACjE,sFAAoE;AACpE,iFAA+D;AAC/D,iEAA+C;AAC/C,gEAA8C;AAC9C,uEAAqD;AACrD,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,yDAAkE;AAAzD,kHAAA,oBAAoB,OAAA;AAC7B,sEAAoD;AACpD,kEAAgD;AAChD,sFAAoE;AACpE,8EAA4D;AAC5D,oEAAkD;AAClD,yDAAuC;AACvC,sEAAoD;AACpD,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,iFAA+D;AAC/D,EAAE;AACF,6CAA6C;AAC7C,8CAA4B;AAC5B,qEAAmD;AACnD,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,yDAAuC;AACvC,0CAAwB"}
|
package/lib/lib/model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 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
|
-
import { SModelElementSchema } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { SGraph, SModelElement } from 'sprotty';
|
|
16
|
+
import { Bounds, Point, SModelElementSchema } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { SEdge, SGraph, SModelElement } from 'sprotty';
|
|
18
18
|
import { Containable } from '../features/hints/model';
|
|
19
19
|
import { Saveable } from '../features/save/model';
|
|
20
20
|
export declare class GLSPGraph extends SGraph implements Saveable, Containable {
|
|
@@ -22,4 +22,8 @@ export declare class GLSPGraph extends SGraph implements Saveable, Containable {
|
|
|
22
22
|
dirty: boolean;
|
|
23
23
|
isContainableElement(input: string | SModelElement | SModelElementSchema): boolean;
|
|
24
24
|
}
|
|
25
|
+
export declare class GEdge extends SEdge {
|
|
26
|
+
localToParent(point: Point | Bounds): Bounds;
|
|
27
|
+
parentToLocal(point: Point | Bounds): Bounds;
|
|
28
|
+
}
|
|
25
29
|
//# sourceMappingURL=model.d.ts.map
|
package/lib/lib/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAiC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAmB,MAAM,SAAS,CAAC;AACvG,OAAO,EAAE,WAAW,EAAoB,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAe,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,SAAU,SAAQ,MAAO,YAAW,QAAQ,EAAE,WAAW;IAClE,gBAAyB,gBAAgB,WAAmE;IAC5G,KAAK,UAAS;IACd,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,mBAAmB,GAAG,OAAO;CAGrF;AAED,qBAAa,KAAM,SAAQ,KAAK;IACnB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM;IAe5C,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM;CAcxD"}
|
package/lib/lib/model.js
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GLSPGraph = void 0;
|
|
3
|
+
exports.GEdge = exports.GLSPGraph = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
4
20
|
const sprotty_1 = require("sprotty");
|
|
5
21
|
const model_1 = require("../features/hints/model");
|
|
6
22
|
const model_2 = require("../features/save/model");
|
|
@@ -15,4 +31,35 @@ class GLSPGraph extends sprotty_1.SGraph {
|
|
|
15
31
|
}
|
|
16
32
|
exports.GLSPGraph = GLSPGraph;
|
|
17
33
|
GLSPGraph.DEFAULT_FEATURES = [sprotty_1.viewportFeature, sprotty_1.exportFeature, model_2.saveFeature, model_1.containerFeature];
|
|
34
|
+
class GEdge extends sprotty_1.SEdge {
|
|
35
|
+
localToParent(point) {
|
|
36
|
+
const bounds = (0, sprotty_1.getRouteBounds)(this.routingPoints);
|
|
37
|
+
const result = {
|
|
38
|
+
x: point.x + bounds.x,
|
|
39
|
+
y: point.y + bounds.y,
|
|
40
|
+
width: -1,
|
|
41
|
+
height: -1
|
|
42
|
+
};
|
|
43
|
+
if ((0, protocol_1.isBounds)(point)) {
|
|
44
|
+
result.width = point.width;
|
|
45
|
+
result.height = point.height;
|
|
46
|
+
}
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
parentToLocal(point) {
|
|
50
|
+
const bounds = (0, sprotty_1.getRouteBounds)(this.routingPoints);
|
|
51
|
+
const result = {
|
|
52
|
+
x: point.x - bounds.x,
|
|
53
|
+
y: point.y - bounds.y,
|
|
54
|
+
width: -1,
|
|
55
|
+
height: -1
|
|
56
|
+
};
|
|
57
|
+
if ((0, protocol_1.isBounds)(point)) {
|
|
58
|
+
result.width = point.width;
|
|
59
|
+
result.height = point.height;
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.GEdge = GEdge;
|
|
18
65
|
//# sourceMappingURL=model.js.map
|
package/lib/lib/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsF;AACtF,qCAAuG;AACvG,mDAAwE;AACxE,kDAA+D;AAE/D,MAAa,SAAU,SAAQ,gBAAM;IAArC;;QAEI,UAAK,GAAG,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