@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.92 → 2.2.0-next.94
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/package.json +2 -2
- package/wf-glsp-server-node.js +518 -292
- package/wf-glsp-server-node.js.map +1 -1
package/wf-glsp-server-node.js
CHANGED
|
@@ -313,7 +313,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
313
313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
314
314
|
exports.CreateDecisionNodeHandler = void 0;
|
|
315
315
|
/********************************************************************************
|
|
316
|
-
* Copyright (c) 2022-
|
|
316
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
317
317
|
*
|
|
318
318
|
* This program and the accompanying materials are made available under the
|
|
319
319
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -573,7 +573,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
573
573
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
574
574
|
exports.CreateMergeNodeHandler = void 0;
|
|
575
575
|
/********************************************************************************
|
|
576
|
-
* Copyright (c) 2022-
|
|
576
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
577
577
|
*
|
|
578
578
|
* This program and the accompanying materials are made available under the
|
|
579
579
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1902,7 +1902,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
1902
1902
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1903
1903
|
exports.createDefaultEdgeTypeHint = exports.createDefaultShapeTypeHint = exports.WorkflowDiagramConfiguration = void 0;
|
|
1904
1904
|
/********************************************************************************
|
|
1905
|
-
* Copyright (c) 2022-
|
|
1905
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
1906
1906
|
*
|
|
1907
1907
|
* This program and the accompanying materials are made available under the
|
|
1908
1908
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1945,32 +1945,25 @@ let WorkflowDiagramConfiguration = class WorkflowDiagramConfiguration {
|
|
|
1945
1945
|
return [
|
|
1946
1946
|
createDefaultShapeTypeHint(model_types_1.ModelTypes.MANUAL_TASK),
|
|
1947
1947
|
createDefaultShapeTypeHint(model_types_1.ModelTypes.AUTOMATED_TASK),
|
|
1948
|
-
createDefaultShapeTypeHint(model_types_1.ModelTypes.FORK_NODE),
|
|
1949
|
-
createDefaultShapeTypeHint(model_types_1.ModelTypes.JOIN_NODE),
|
|
1948
|
+
createDefaultShapeTypeHint({ elementTypeId: model_types_1.ModelTypes.FORK_NODE, resizable: false }),
|
|
1949
|
+
createDefaultShapeTypeHint({ elementTypeId: model_types_1.ModelTypes.JOIN_NODE, resizable: false }),
|
|
1950
1950
|
createDefaultShapeTypeHint(model_types_1.ModelTypes.DECISION_NODE),
|
|
1951
1951
|
createDefaultShapeTypeHint(model_types_1.ModelTypes.MERGE_NODE),
|
|
1952
|
-
{
|
|
1952
|
+
createDefaultShapeTypeHint({
|
|
1953
1953
|
elementTypeId: model_types_1.ModelTypes.CATEGORY,
|
|
1954
|
-
repositionable: true,
|
|
1955
|
-
deletable: true,
|
|
1956
|
-
resizable: true,
|
|
1957
|
-
reparentable: true,
|
|
1958
1954
|
containableElementTypeIds: [model_types_1.ModelTypes.TASK, model_types_1.ModelTypes.ACTIVITY_NODE, model_types_1.ModelTypes.CATEGORY]
|
|
1959
|
-
}
|
|
1955
|
+
})
|
|
1960
1956
|
];
|
|
1961
1957
|
}
|
|
1962
1958
|
get edgeTypeHints() {
|
|
1963
1959
|
return [
|
|
1964
1960
|
createDefaultEdgeTypeHint(protocol_1.DefaultTypes.EDGE),
|
|
1965
|
-
{
|
|
1966
|
-
elementTypeId:
|
|
1967
|
-
repositionable: true,
|
|
1968
|
-
deletable: true,
|
|
1969
|
-
routable: true,
|
|
1961
|
+
createDefaultEdgeTypeHint({
|
|
1962
|
+
elementTypeId: protocol_1.DefaultTypes.EDGE,
|
|
1970
1963
|
dynamic: true,
|
|
1971
1964
|
sourceElementTypeIds: [model_types_1.ModelTypes.ACTIVITY_NODE],
|
|
1972
1965
|
targetElementTypeIds: [model_types_1.ModelTypes.TASK, model_types_1.ModelTypes.ACTIVITY_NODE]
|
|
1973
|
-
}
|
|
1966
|
+
})
|
|
1974
1967
|
];
|
|
1975
1968
|
}
|
|
1976
1969
|
};
|
|
@@ -1978,17 +1971,14 @@ exports.WorkflowDiagramConfiguration = WorkflowDiagramConfiguration;
|
|
|
1978
1971
|
exports.WorkflowDiagramConfiguration = WorkflowDiagramConfiguration = __decorate([
|
|
1979
1972
|
(0, inversify_1.injectable)()
|
|
1980
1973
|
], WorkflowDiagramConfiguration);
|
|
1981
|
-
function createDefaultShapeTypeHint(
|
|
1982
|
-
|
|
1974
|
+
function createDefaultShapeTypeHint(elementIdOrTemplate) {
|
|
1975
|
+
const template = typeof elementIdOrTemplate === 'string' ? { elementTypeId: elementIdOrTemplate } : elementIdOrTemplate;
|
|
1976
|
+
return Object.assign({ repositionable: true, deletable: true, resizable: true, reparentable: true }, template);
|
|
1983
1977
|
}
|
|
1984
1978
|
exports.createDefaultShapeTypeHint = createDefaultShapeTypeHint;
|
|
1985
|
-
function createDefaultEdgeTypeHint(
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
repositionable: true,
|
|
1989
|
-
deletable: true,
|
|
1990
|
-
routable: true,
|
|
1991
|
-
sourceElementTypeIds: [
|
|
1979
|
+
function createDefaultEdgeTypeHint(elementIdOrTemplate) {
|
|
1980
|
+
const template = typeof elementIdOrTemplate === 'string' ? { elementTypeId: elementIdOrTemplate } : elementIdOrTemplate;
|
|
1981
|
+
return Object.assign({ repositionable: true, deletable: true, routable: true, sourceElementTypeIds: [
|
|
1992
1982
|
model_types_1.ModelTypes.MANUAL_TASK,
|
|
1993
1983
|
model_types_1.ModelTypes.AUTOMATED_TASK,
|
|
1994
1984
|
model_types_1.ModelTypes.DECISION_NODE,
|
|
@@ -1996,8 +1986,7 @@ function createDefaultEdgeTypeHint(elementId) {
|
|
|
1996
1986
|
model_types_1.ModelTypes.FORK_NODE,
|
|
1997
1987
|
model_types_1.ModelTypes.JOIN_NODE,
|
|
1998
1988
|
model_types_1.ModelTypes.CATEGORY
|
|
1999
|
-
],
|
|
2000
|
-
targetElementTypeIds: [
|
|
1989
|
+
], targetElementTypeIds: [
|
|
2001
1990
|
model_types_1.ModelTypes.MANUAL_TASK,
|
|
2002
1991
|
model_types_1.ModelTypes.AUTOMATED_TASK,
|
|
2003
1992
|
model_types_1.ModelTypes.DECISION_NODE,
|
|
@@ -2005,8 +1994,7 @@ function createDefaultEdgeTypeHint(elementId) {
|
|
|
2005
1994
|
model_types_1.ModelTypes.FORK_NODE,
|
|
2006
1995
|
model_types_1.ModelTypes.JOIN_NODE,
|
|
2007
1996
|
model_types_1.ModelTypes.CATEGORY
|
|
2008
|
-
]
|
|
2009
|
-
};
|
|
1997
|
+
] }, template);
|
|
2010
1998
|
}
|
|
2011
1999
|
exports.createDefaultEdgeTypeHint = createDefaultEdgeTypeHint;
|
|
2012
2000
|
|
|
@@ -2172,7 +2160,7 @@ const graph_extension_1 = __webpack_require__(/*! ./graph-extension */ "./lib/co
|
|
|
2172
2160
|
const model_types_1 = __webpack_require__(/*! ./util/model-types */ "./lib/common/util/model-types.js");
|
|
2173
2161
|
let WorkflowEdgeCreationChecker = class WorkflowEdgeCreationChecker {
|
|
2174
2162
|
isValidSource(edgeType, sourceElement) {
|
|
2175
|
-
return edgeType !== model_types_1.ModelTypes.WEIGHTED_EDGE
|
|
2163
|
+
return edgeType !== model_types_1.ModelTypes.WEIGHTED_EDGE && sourceElement.type === model_types_1.ModelTypes.DECISION_NODE;
|
|
2176
2164
|
}
|
|
2177
2165
|
isValidTarget(edgeType, sourceElement, targetElement) {
|
|
2178
2166
|
return (targetElement instanceof graph_extension_1.TaskNode || targetElement.type === model_types_1.ModelTypes.FORK_NODE || targetElement.type === model_types_1.ModelTypes.JOIN_NODE);
|
|
@@ -2324,7 +2312,7 @@ exports.WorkflowPopupFactory = WorkflowPopupFactory = __decorate([
|
|
|
2324
2312
|
|
|
2325
2313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2326
2314
|
/********************************************************************************
|
|
2327
|
-
* Copyright (c) 2022-
|
|
2315
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
2328
2316
|
*
|
|
2329
2317
|
* This program and the accompanying materials are made available under the
|
|
2330
2318
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -4716,69 +4704,6 @@ var DeleteMarkersAction;
|
|
|
4716
4704
|
})(DeleteMarkersAction || (exports.DeleteMarkersAction = DeleteMarkersAction = {}));
|
|
4717
4705
|
|
|
4718
4706
|
|
|
4719
|
-
/***/ }),
|
|
4720
|
-
|
|
4721
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/index.js":
|
|
4722
|
-
/*!******************************************************************************!*\
|
|
4723
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/index.js ***!
|
|
4724
|
-
\******************************************************************************/
|
|
4725
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4726
|
-
|
|
4727
|
-
"use strict";
|
|
4728
|
-
|
|
4729
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4730
|
-
if (k2 === undefined) k2 = k;
|
|
4731
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4732
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
4733
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
4734
|
-
}
|
|
4735
|
-
Object.defineProperty(o, k2, desc);
|
|
4736
|
-
}) : (function(o, m, k, k2) {
|
|
4737
|
-
if (k2 === undefined) k2 = k;
|
|
4738
|
-
o[k2] = m[k];
|
|
4739
|
-
}));
|
|
4740
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
4741
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4742
|
-
};
|
|
4743
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4744
|
-
/********************************************************************************
|
|
4745
|
-
* Copyright (c) 2021-2023 STMicroelectronics and others.
|
|
4746
|
-
*
|
|
4747
|
-
* This program and the accompanying materials are made available under the
|
|
4748
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
4749
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
4750
|
-
*
|
|
4751
|
-
* This Source Code may also be made available under the following Secondary
|
|
4752
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
4753
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
4754
|
-
* with the GNU Classpath Exception which is available at
|
|
4755
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
4756
|
-
*
|
|
4757
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
4758
|
-
********************************************************************************/
|
|
4759
|
-
__exportStar(__webpack_require__(/*! ./base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js"), exports);
|
|
4760
|
-
__exportStar(__webpack_require__(/*! ./client-notification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/client-notification.js"), exports);
|
|
4761
|
-
__exportStar(__webpack_require__(/*! ./clipboard */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/clipboard.js"), exports);
|
|
4762
|
-
__exportStar(__webpack_require__(/*! ./contexts */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/contexts.js"), exports);
|
|
4763
|
-
__exportStar(__webpack_require__(/*! ./edge-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/edge-modification.js"), exports);
|
|
4764
|
-
__exportStar(__webpack_require__(/*! ./element-creation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-creation.js"), exports);
|
|
4765
|
-
__exportStar(__webpack_require__(/*! ./element-hover */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-hover.js"), exports);
|
|
4766
|
-
__exportStar(__webpack_require__(/*! ./element-navigation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-navigation.js"), exports);
|
|
4767
|
-
__exportStar(__webpack_require__(/*! ./element-selection */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-selection.js"), exports);
|
|
4768
|
-
__exportStar(__webpack_require__(/*! ./element-text-editing */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-text-editing.js"), exports);
|
|
4769
|
-
__exportStar(__webpack_require__(/*! ./element-type-hints */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-type-hints.js"), exports);
|
|
4770
|
-
__exportStar(__webpack_require__(/*! ./element-validation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-validation.js"), exports);
|
|
4771
|
-
__exportStar(__webpack_require__(/*! ./model-data */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js"), exports);
|
|
4772
|
-
__exportStar(__webpack_require__(/*! ./model-edit-mode */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-edit-mode.js"), exports);
|
|
4773
|
-
__exportStar(__webpack_require__(/*! ./model-layout */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-layout.js"), exports);
|
|
4774
|
-
__exportStar(__webpack_require__(/*! ./model-saving */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-saving.js"), exports);
|
|
4775
|
-
__exportStar(__webpack_require__(/*! ./node-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/node-modification.js"), exports);
|
|
4776
|
-
__exportStar(__webpack_require__(/*! ./tool-palette */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/tool-palette.js"), exports);
|
|
4777
|
-
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/types.js"), exports);
|
|
4778
|
-
__exportStar(__webpack_require__(/*! ./undo-redo */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/undo-redo.js"), exports);
|
|
4779
|
-
__exportStar(__webpack_require__(/*! ./viewport */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/viewport.js"), exports);
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
4707
|
/***/ }),
|
|
4783
4708
|
|
|
4784
4709
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js":
|
|
@@ -5497,7 +5422,7 @@ exports.BaseGLSPClient = BaseGLSPClient;
|
|
|
5497
5422
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5498
5423
|
exports.GLSPClient = exports.ClientState = exports.ApplicationIdProvider = void 0;
|
|
5499
5424
|
/********************************************************************************
|
|
5500
|
-
* Copyright (c) 2020-
|
|
5425
|
+
* Copyright (c) 2020-2024 EclipseSource and others.
|
|
5501
5426
|
*
|
|
5502
5427
|
* This program and the accompanying materials are made available under the
|
|
5503
5428
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5575,7 +5500,7 @@ var GLSPClient;
|
|
|
5575
5500
|
"use strict";
|
|
5576
5501
|
|
|
5577
5502
|
/********************************************************************************
|
|
5578
|
-
* Copyright (c) 2022-
|
|
5503
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
5579
5504
|
*
|
|
5580
5505
|
* This program and the accompanying materials are made available under the
|
|
5581
5506
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5596,53 +5521,6 @@ exports.GLSPServerListener = Symbol('GLSPServerListener');
|
|
|
5596
5521
|
exports.GLSPClientProxy = Symbol('GLSPClientProxy');
|
|
5597
5522
|
|
|
5598
5523
|
|
|
5599
|
-
/***/ }),
|
|
5600
|
-
|
|
5601
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/index.js":
|
|
5602
|
-
/*!*************************************************************************************!*\
|
|
5603
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/index.js ***!
|
|
5604
|
-
\*************************************************************************************/
|
|
5605
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5606
|
-
|
|
5607
|
-
"use strict";
|
|
5608
|
-
|
|
5609
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5610
|
-
if (k2 === undefined) k2 = k;
|
|
5611
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5612
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5613
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5614
|
-
}
|
|
5615
|
-
Object.defineProperty(o, k2, desc);
|
|
5616
|
-
}) : (function(o, m, k, k2) {
|
|
5617
|
-
if (k2 === undefined) k2 = k;
|
|
5618
|
-
o[k2] = m[k];
|
|
5619
|
-
}));
|
|
5620
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5621
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5622
|
-
};
|
|
5623
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5624
|
-
/********************************************************************************
|
|
5625
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
5626
|
-
*
|
|
5627
|
-
* This program and the accompanying materials are made available under the
|
|
5628
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5629
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
5630
|
-
*
|
|
5631
|
-
* This Source Code may also be made available under the following Secondary
|
|
5632
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5633
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5634
|
-
* with the GNU Classpath Exception which is available at
|
|
5635
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
5636
|
-
*
|
|
5637
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5638
|
-
********************************************************************************/
|
|
5639
|
-
__exportStar(__webpack_require__(/*! ./base-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/base-glsp-client.js"), exports);
|
|
5640
|
-
__exportStar(__webpack_require__(/*! ./glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-client.js"), exports);
|
|
5641
|
-
__exportStar(__webpack_require__(/*! ./glsp-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-server.js"), exports);
|
|
5642
|
-
__exportStar(__webpack_require__(/*! ./jsonrpc */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js"), exports);
|
|
5643
|
-
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js"), exports);
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
5524
|
/***/ }),
|
|
5647
5525
|
|
|
5648
5526
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js":
|
|
@@ -5662,7 +5540,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5662
5540
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5663
5541
|
exports.JsonrpcClientProxy = exports.BaseJsonrpcGLSPClient = void 0;
|
|
5664
5542
|
/********************************************************************************
|
|
5665
|
-
* Copyright (c) 2019-
|
|
5543
|
+
* Copyright (c) 2019-2024 EclipseSource and others.
|
|
5666
5544
|
*
|
|
5667
5545
|
* This program and the accompanying materials are made available under the
|
|
5668
5546
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5919,53 +5797,6 @@ function configureClientConnection(clientConnection, glspServer) {
|
|
|
5919
5797
|
exports.configureClientConnection = configureClientConnection;
|
|
5920
5798
|
|
|
5921
5799
|
|
|
5922
|
-
/***/ }),
|
|
5923
|
-
|
|
5924
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js":
|
|
5925
|
-
/*!*********************************************************************************************!*\
|
|
5926
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js ***!
|
|
5927
|
-
\*********************************************************************************************/
|
|
5928
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5929
|
-
|
|
5930
|
-
"use strict";
|
|
5931
|
-
|
|
5932
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5933
|
-
if (k2 === undefined) k2 = k;
|
|
5934
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5935
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5936
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5937
|
-
}
|
|
5938
|
-
Object.defineProperty(o, k2, desc);
|
|
5939
|
-
}) : (function(o, m, k, k2) {
|
|
5940
|
-
if (k2 === undefined) k2 = k;
|
|
5941
|
-
o[k2] = m[k];
|
|
5942
|
-
}));
|
|
5943
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5944
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5945
|
-
};
|
|
5946
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5947
|
-
/********************************************************************************
|
|
5948
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
5949
|
-
*
|
|
5950
|
-
* This program and the accompanying materials are made available under the
|
|
5951
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5952
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
5953
|
-
*
|
|
5954
|
-
* This Source Code may also be made available under the following Secondary
|
|
5955
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5956
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5957
|
-
* with the GNU Classpath Exception which is available at
|
|
5958
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
5959
|
-
*
|
|
5960
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5961
|
-
********************************************************************************/
|
|
5962
|
-
__exportStar(__webpack_require__(/*! ./base-jsonrpc-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js"), exports);
|
|
5963
|
-
__exportStar(__webpack_require__(/*! ./glsp-jsonrpc-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-client.js"), exports);
|
|
5964
|
-
__exportStar(__webpack_require__(/*! ./glsp-jsonrpc-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-server.js"), exports);
|
|
5965
|
-
__exportStar(__webpack_require__(/*! ./websocket-connection */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js"), exports);
|
|
5966
|
-
__exportStar(__webpack_require__(/*! ./ws-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js"), exports);
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
5800
|
/***/ }),
|
|
5970
5801
|
|
|
5971
5802
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js":
|
|
@@ -6133,6 +5964,53 @@ function listen(webSocket, onConnection, logger) {
|
|
|
6133
5964
|
exports.listen = listen;
|
|
6134
5965
|
|
|
6135
5966
|
|
|
5967
|
+
/***/ }),
|
|
5968
|
+
|
|
5969
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js":
|
|
5970
|
+
/*!******************************************************************************************************************!*\
|
|
5971
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js ***!
|
|
5972
|
+
\******************************************************************************************************************/
|
|
5973
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5974
|
+
|
|
5975
|
+
"use strict";
|
|
5976
|
+
|
|
5977
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5978
|
+
exports.GLSPWebWorkerProvider = void 0;
|
|
5979
|
+
/********************************************************************************
|
|
5980
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
5981
|
+
*
|
|
5982
|
+
* This program and the accompanying materials are made available under the
|
|
5983
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5984
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
5985
|
+
*
|
|
5986
|
+
* This Source Code may also be made available under the following Secondary
|
|
5987
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5988
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5989
|
+
* with the GNU Classpath Exception which is available at
|
|
5990
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
5991
|
+
*
|
|
5992
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5993
|
+
********************************************************************************/
|
|
5994
|
+
const browser_1 = __webpack_require__(/*! vscode-jsonrpc/browser */ "../../node_modules/vscode-jsonrpc/browser.js");
|
|
5995
|
+
class GLSPWebWorkerProvider {
|
|
5996
|
+
constructor(url) {
|
|
5997
|
+
this.url = url;
|
|
5998
|
+
}
|
|
5999
|
+
createWebWorker(url) {
|
|
6000
|
+
return new Worker(url);
|
|
6001
|
+
}
|
|
6002
|
+
listen(handler) {
|
|
6003
|
+
var _a, _b;
|
|
6004
|
+
this.worker = this.createWebWorker(this.url);
|
|
6005
|
+
const wwConnection = (0, browser_1.createMessageConnection)(new browser_1.BrowserMessageReader(this.worker), new browser_1.BrowserMessageWriter(this.worker));
|
|
6006
|
+
(_a = handler.logger) === null || _a === void 0 ? void 0 : _a.warn('GLSPWebWorkerProvider Initializing!');
|
|
6007
|
+
(_b = handler.onConnection) === null || _b === void 0 ? void 0 : _b.call(handler, wwConnection);
|
|
6008
|
+
return wwConnection;
|
|
6009
|
+
}
|
|
6010
|
+
}
|
|
6011
|
+
exports.GLSPWebWorkerProvider = GLSPWebWorkerProvider;
|
|
6012
|
+
|
|
6013
|
+
|
|
6136
6014
|
/***/ }),
|
|
6137
6015
|
|
|
6138
6016
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js":
|
|
@@ -6239,7 +6117,7 @@ exports.GLSPWebSocketProvider = GLSPWebSocketProvider;
|
|
|
6239
6117
|
"use strict";
|
|
6240
6118
|
|
|
6241
6119
|
/********************************************************************************
|
|
6242
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
6120
|
+
* Copyright (c) 2023-2024 EclipseSource and others.
|
|
6243
6121
|
*
|
|
6244
6122
|
* This program and the accompanying materials are made available under the
|
|
6245
6123
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6283,7 +6161,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6283
6161
|
********************************************************************************/
|
|
6284
6162
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6285
6163
|
exports.resolveContainerConfiguration = exports.initializeContainer = void 0;
|
|
6286
|
-
const
|
|
6164
|
+
const array_util_1 = __webpack_require__(/*! ../utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js");
|
|
6165
|
+
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6166
|
+
const feature_module_1 = __webpack_require__(/*! ./feature-module */ "../../node_modules/@eclipse-glsp/protocol/lib/di/feature-module.js");
|
|
6287
6167
|
/**
|
|
6288
6168
|
* Initializes a container with the given {@link ContainerConfiguration}. The container configuration
|
|
6289
6169
|
* consists of the set of {@link ContainerModule}s that should be loaded in the container.
|
|
@@ -6302,25 +6182,57 @@ exports.initializeContainer = initializeContainer;
|
|
|
6302
6182
|
/**
|
|
6303
6183
|
* Processes the given container configurations and returns the corresponding set of {@link ContainerModule}s.
|
|
6304
6184
|
* Container configurations are processed in the order they are passed. If a module is configured to be removed
|
|
6305
|
-
* it can be added again in a later configuration.
|
|
6306
|
-
*
|
|
6185
|
+
* it can be added again in a later configuration. This also means in case of `replace` configurations that affect the same feature id
|
|
6186
|
+
* the last configuration wins.
|
|
6187
|
+
* @param containerConfigurations The container configurations to resolve
|
|
6188
|
+
* @throws An error if featureModule ids are not unique in the resolved module array
|
|
6307
6189
|
* @returns an Array of resolved container modules
|
|
6308
6190
|
*/
|
|
6309
6191
|
function resolveContainerConfiguration(...containerConfigurations) {
|
|
6310
6192
|
const modules = [];
|
|
6311
6193
|
containerConfigurations.forEach(config => {
|
|
6312
6194
|
if (isContainerModule(config)) {
|
|
6313
|
-
(0,
|
|
6195
|
+
(0, array_util_1.distinctAdd)(modules, config);
|
|
6314
6196
|
}
|
|
6315
6197
|
else {
|
|
6316
6198
|
if (config.remove) {
|
|
6317
|
-
(0,
|
|
6199
|
+
(0, array_util_1.remove)(modules, ...(0, array_util_1.asArray)(config.remove));
|
|
6318
6200
|
}
|
|
6319
6201
|
if (config.add) {
|
|
6320
|
-
(0,
|
|
6202
|
+
(0, array_util_1.distinctAdd)(modules, ...(0, array_util_1.asArray)(config.add));
|
|
6203
|
+
}
|
|
6204
|
+
if (config.replace) {
|
|
6205
|
+
(0, array_util_1.asArray)(config.replace).forEach(replace => {
|
|
6206
|
+
const existingIndex = modules.findIndex(m => m instanceof feature_module_1.FeatureModule && m.featureId === replace.featureId);
|
|
6207
|
+
if (existingIndex >= 0) {
|
|
6208
|
+
modules[existingIndex] = replace;
|
|
6209
|
+
}
|
|
6210
|
+
else {
|
|
6211
|
+
console.warn(`Could not find module to replace with feature id ${replace.featureId.toString()}.` +
|
|
6212
|
+
'Adding replacement module to the end of the resolved configurations.');
|
|
6213
|
+
(0, array_util_1.distinctAdd)(modules, replace);
|
|
6214
|
+
}
|
|
6215
|
+
});
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
6218
|
+
});
|
|
6219
|
+
// Check for duplicate feature ids in resolved modules
|
|
6220
|
+
const featureIds = new Set();
|
|
6221
|
+
const duplicates = [];
|
|
6222
|
+
modules.forEach(module => {
|
|
6223
|
+
if (module instanceof feature_module_1.FeatureModule) {
|
|
6224
|
+
if (featureIds.has(module.featureId)) {
|
|
6225
|
+
duplicates.push(module);
|
|
6226
|
+
}
|
|
6227
|
+
else {
|
|
6228
|
+
featureIds.add(module.featureId);
|
|
6321
6229
|
}
|
|
6322
6230
|
}
|
|
6323
6231
|
});
|
|
6232
|
+
if (duplicates.length > 0) {
|
|
6233
|
+
const culprits = duplicates.map(m => m.featureId).join(', ');
|
|
6234
|
+
throw new Error(`Could not resolve container configuration. Non-unique feature ids found in container configuration: ${culprits}`);
|
|
6235
|
+
}
|
|
6324
6236
|
return modules;
|
|
6325
6237
|
}
|
|
6326
6238
|
exports.resolveContainerConfiguration = resolveContainerConfiguration;
|
|
@@ -6330,7 +6242,7 @@ exports.resolveContainerConfiguration = resolveContainerConfiguration;
|
|
|
6330
6242
|
* => use a simple typeguard instead.
|
|
6331
6243
|
*/
|
|
6332
6244
|
function isContainerModule(config) {
|
|
6333
|
-
return (0,
|
|
6245
|
+
return (0, type_util_1.hasNumberProp)(config, 'id') && (0, type_util_1.hasFunctionProp)(config, 'registry');
|
|
6334
6246
|
}
|
|
6335
6247
|
|
|
6336
6248
|
|
|
@@ -6362,7 +6274,7 @@ function isContainerModule(config) {
|
|
|
6362
6274
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6363
6275
|
exports.FeatureModule = void 0;
|
|
6364
6276
|
const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/es/inversify.js");
|
|
6365
|
-
const
|
|
6277
|
+
const array_util_1 = __webpack_require__(/*! ../utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js");
|
|
6366
6278
|
/**
|
|
6367
6279
|
* A `FeatureModule` is a specialized {@link ContainerModule} that can declare dependencies to other {@link FeatureModule}.
|
|
6368
6280
|
* A feature module will only be loaded into a container if all of its required modules haven been loaded before. T
|
|
@@ -6375,6 +6287,7 @@ class FeatureModule extends inversify_1.ContainerModule {
|
|
|
6375
6287
|
super((bind, unbind, isBound, ...rest) => {
|
|
6376
6288
|
if (this.configure(bind, isBound)) {
|
|
6377
6289
|
registry(bind, unbind, isBound, ...rest);
|
|
6290
|
+
this.debugLog(`Loading of feature module with id '${this.featureId.toString()}' completed`);
|
|
6378
6291
|
}
|
|
6379
6292
|
});
|
|
6380
6293
|
this.featureId = (_a = options.featureId) !== null && _a !== void 0 ? _a : this.createFeatureId();
|
|
@@ -6391,25 +6304,54 @@ class FeatureModule extends inversify_1.ContainerModule {
|
|
|
6391
6304
|
* @returns `true` if all requirements are met and the module is loaded. `false` otherwise
|
|
6392
6305
|
*/
|
|
6393
6306
|
configure(bind, isBound) {
|
|
6307
|
+
this.debugLog(`Trying to load feature module with id '${this.featureId.toString()}'`);
|
|
6308
|
+
if (this.isLoaded({ isBound })) {
|
|
6309
|
+
const message = `Could not load feature module. Another module with id '${this.featureId.toString()}' is already loaded`;
|
|
6310
|
+
this.debugLog(message);
|
|
6311
|
+
throw new Error(message);
|
|
6312
|
+
}
|
|
6394
6313
|
if (this.checkRequirements(isBound)) {
|
|
6314
|
+
this.debugLog(`Requirements are met, continue loading of feature module with id '${this.featureId.toString()}'`);
|
|
6395
6315
|
bind(this.featureId).toConstantValue(this.featureId);
|
|
6396
6316
|
return true;
|
|
6397
6317
|
}
|
|
6398
6318
|
return false;
|
|
6399
6319
|
}
|
|
6320
|
+
debugLog(message, ...optionalParams) {
|
|
6321
|
+
if (FeatureModule.DEBUG_LOG_ENABLED) {
|
|
6322
|
+
console.log(message, ...optionalParams);
|
|
6323
|
+
}
|
|
6324
|
+
}
|
|
6400
6325
|
/**
|
|
6401
6326
|
* Checks if all required {@link FeatureModule}s are already loaded/bound in the container.
|
|
6402
6327
|
* @param isBound The `isBound` property of the module callback. Used to check the required modules.
|
|
6403
6328
|
* @returns `true` if all requirements are met, `false` otherwise
|
|
6404
6329
|
*/
|
|
6405
6330
|
checkRequirements(isBound) {
|
|
6406
|
-
|
|
6331
|
+
var _a;
|
|
6332
|
+
const requires = (0, array_util_1.asArray)((_a = this.requires) !== null && _a !== void 0 ? _a : []);
|
|
6333
|
+
if (requires.length === 0) {
|
|
6334
|
+
return true;
|
|
6335
|
+
}
|
|
6336
|
+
const missing = requires.filter(module => !module.isLoaded({ isBound }));
|
|
6337
|
+
if (missing.length > 0) {
|
|
6338
|
+
this.debugLog(
|
|
6339
|
+
// eslint-disable-next-line max-len
|
|
6340
|
+
`Could not load feature module. Required modules are not loaded. Feature ids: ${missing.map(m => m.featureId.toString()).join(', ')}`);
|
|
6341
|
+
return false;
|
|
6342
|
+
}
|
|
6343
|
+
return true;
|
|
6407
6344
|
}
|
|
6408
6345
|
isLoaded(context) {
|
|
6409
6346
|
return context.isBound(this.featureId);
|
|
6410
6347
|
}
|
|
6411
6348
|
}
|
|
6412
6349
|
exports.FeatureModule = FeatureModule;
|
|
6350
|
+
/**
|
|
6351
|
+
* Global flag to enable/disable additional debug log output when loading feature modules
|
|
6352
|
+
* Default is `false`.
|
|
6353
|
+
*/
|
|
6354
|
+
FeatureModule.DEBUG_LOG_ENABLED = false;
|
|
6413
6355
|
|
|
6414
6356
|
|
|
6415
6357
|
/***/ }),
|
|
@@ -6658,7 +6600,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6658
6600
|
};
|
|
6659
6601
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6660
6602
|
/********************************************************************************
|
|
6661
|
-
* Copyright (c)
|
|
6603
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
6662
6604
|
*
|
|
6663
6605
|
* This program and the accompanying materials are made available under the
|
|
6664
6606
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6672,15 +6614,52 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6672
6614
|
*
|
|
6673
6615
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6674
6616
|
********************************************************************************/
|
|
6675
|
-
__exportStar(__webpack_require__(/*! ./action-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/
|
|
6676
|
-
__exportStar(__webpack_require__(/*! ./client-
|
|
6677
|
-
__exportStar(__webpack_require__(/*! ./
|
|
6617
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js"), exports);
|
|
6618
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/client-notification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/client-notification.js"), exports);
|
|
6619
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/clipboard */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/clipboard.js"), exports);
|
|
6620
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/contexts */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/contexts.js"), exports);
|
|
6621
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/edge-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/edge-modification.js"), exports);
|
|
6622
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-creation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-creation.js"), exports);
|
|
6623
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-hover */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-hover.js"), exports);
|
|
6624
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-navigation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-navigation.js"), exports);
|
|
6625
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-selection */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-selection.js"), exports);
|
|
6626
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-text-editing */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-text-editing.js"), exports);
|
|
6627
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-type-hints */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-type-hints.js"), exports);
|
|
6628
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-validation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-validation.js"), exports);
|
|
6629
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-data */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js"), exports);
|
|
6630
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-edit-mode */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-edit-mode.js"), exports);
|
|
6631
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-layout */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-layout.js"), exports);
|
|
6632
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-saving */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-saving.js"), exports);
|
|
6633
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/node-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/node-modification.js"), exports);
|
|
6634
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/tool-palette */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/tool-palette.js"), exports);
|
|
6635
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/types */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/types.js"), exports);
|
|
6636
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/undo-redo */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/undo-redo.js"), exports);
|
|
6637
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/viewport */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/viewport.js"), exports);
|
|
6638
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/base-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/base-glsp-client.js"), exports);
|
|
6639
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-client.js"), exports);
|
|
6640
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/glsp-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-server.js"), exports);
|
|
6641
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/base-jsonrpc-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js"), exports);
|
|
6642
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/glsp-jsonrpc-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-client.js"), exports);
|
|
6643
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/glsp-jsonrpc-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-server.js"), exports);
|
|
6644
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/websocket-connection */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js"), exports);
|
|
6645
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/worker-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js"), exports);
|
|
6646
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/ws-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js"), exports);
|
|
6647
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/types */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js"), exports);
|
|
6648
|
+
__exportStar(__webpack_require__(/*! ./model/default-types */ "../../node_modules/@eclipse-glsp/protocol/lib/model/default-types.js"), exports);
|
|
6649
|
+
__exportStar(__webpack_require__(/*! ./model/model-schema */ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js"), exports);
|
|
6678
6650
|
__exportStar(__webpack_require__(/*! ./re-exports */ "../../node_modules/@eclipse-glsp/protocol/lib/re-exports.js"), exports);
|
|
6679
6651
|
__exportStar(__webpack_require__(/*! ./sprotty-actions */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-actions.js"), exports);
|
|
6680
6652
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-bounds */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-bounds.js"), exports);
|
|
6681
6653
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-dimension */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-dimension.js"), exports);
|
|
6682
6654
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js"), exports);
|
|
6683
|
-
__exportStar(__webpack_require__(/*! ./utils */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
6655
|
+
__exportStar(__webpack_require__(/*! ./utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js"), exports);
|
|
6656
|
+
__exportStar(__webpack_require__(/*! ./utils/disposable */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/disposable.js"), exports);
|
|
6657
|
+
__exportStar(__webpack_require__(/*! ./utils/event */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/event.js"), exports);
|
|
6658
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-movement */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-movement.js"), exports);
|
|
6659
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-util.js"), exports);
|
|
6660
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js"), exports);
|
|
6661
|
+
__exportStar(__webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js"), exports);
|
|
6662
|
+
__exportStar(__webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js"), exports);
|
|
6684
6663
|
|
|
6685
6664
|
|
|
6686
6665
|
/***/ }),
|
|
@@ -6744,50 +6723,6 @@ var DefaultTypes;
|
|
|
6744
6723
|
})(DefaultTypes || (exports.DefaultTypes = DefaultTypes = {}));
|
|
6745
6724
|
|
|
6746
6725
|
|
|
6747
|
-
/***/ }),
|
|
6748
|
-
|
|
6749
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/model/index.js":
|
|
6750
|
-
/*!********************************************************************!*\
|
|
6751
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/model/index.js ***!
|
|
6752
|
-
\********************************************************************/
|
|
6753
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6754
|
-
|
|
6755
|
-
"use strict";
|
|
6756
|
-
|
|
6757
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6758
|
-
if (k2 === undefined) k2 = k;
|
|
6759
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6760
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6761
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6762
|
-
}
|
|
6763
|
-
Object.defineProperty(o, k2, desc);
|
|
6764
|
-
}) : (function(o, m, k, k2) {
|
|
6765
|
-
if (k2 === undefined) k2 = k;
|
|
6766
|
-
o[k2] = m[k];
|
|
6767
|
-
}));
|
|
6768
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
6769
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6770
|
-
};
|
|
6771
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6772
|
-
/********************************************************************************
|
|
6773
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
6774
|
-
*
|
|
6775
|
-
* This program and the accompanying materials are made available under the
|
|
6776
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6777
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
6778
|
-
*
|
|
6779
|
-
* This Source Code may also be made available under the following Secondary
|
|
6780
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
6781
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
6782
|
-
* with the GNU Classpath Exception which is available at
|
|
6783
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
6784
|
-
*
|
|
6785
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6786
|
-
********************************************************************************/
|
|
6787
|
-
__exportStar(__webpack_require__(/*! ./default-types */ "../../node_modules/@eclipse-glsp/protocol/lib/model/default-types.js"), exports);
|
|
6788
|
-
__exportStar(__webpack_require__(/*! ./model-schema */ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js"), exports);
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
6726
|
/***/ }),
|
|
6792
6727
|
|
|
6793
6728
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js":
|
|
@@ -6943,6 +6878,21 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6943
6878
|
exports.Bounds = void 0;
|
|
6944
6879
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
6945
6880
|
Object.defineProperty(exports, "Bounds", ({ enumerable: true, get: function () { return geometry_1.Bounds; } }));
|
|
6881
|
+
const sprotty_geometry_dimension_1 = __webpack_require__(/*! ./sprotty-geometry-dimension */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-dimension.js");
|
|
6882
|
+
const sprotty_geometry_point_1 = __webpack_require__(/*! ./sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js");
|
|
6883
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6884
|
+
geometry_1.Bounds.ZERO = Object.freeze({
|
|
6885
|
+
x: 0,
|
|
6886
|
+
y: 0,
|
|
6887
|
+
width: 0,
|
|
6888
|
+
height: 0
|
|
6889
|
+
});
|
|
6890
|
+
geometry_1.Bounds.is = (bounds) => type_util_1.AnyObject.is(bounds) &&
|
|
6891
|
+
(0, type_util_1.hasNumberProp)(bounds, 'x') &&
|
|
6892
|
+
(0, type_util_1.hasNumberProp)(bounds, 'y') &&
|
|
6893
|
+
(0, type_util_1.hasNumberProp)(bounds, 'width') &&
|
|
6894
|
+
(0, type_util_1.hasNumberProp)(bounds, 'height');
|
|
6895
|
+
geometry_1.Bounds.isValid = (bounds) => bounds !== undefined && sprotty_geometry_dimension_1.Dimension.isValid(bounds) && sprotty_geometry_point_1.Point.isValid(bounds);
|
|
6946
6896
|
geometry_1.Bounds.encompasses = (outer, inner) => geometry_1.Bounds.includes(outer, geometry_1.Bounds.topLeft(inner)) && geometry_1.Bounds.includes(outer, geometry_1.Bounds.bottomRight(inner));
|
|
6947
6897
|
geometry_1.Bounds.overlap = (one, other, touch) => {
|
|
6948
6898
|
const oneTopLeft = geometry_1.Bounds.topLeft(one);
|
|
@@ -6959,7 +6909,7 @@ geometry_1.Bounds.overlap = (one, other, touch) => {
|
|
|
6959
6909
|
oneBottomRight.y > otherTopLeft.y &&
|
|
6960
6910
|
otherBottomRight.y > oneTopLeft.y;
|
|
6961
6911
|
};
|
|
6962
|
-
geometry_1.Bounds.equals = (left, right) =>
|
|
6912
|
+
geometry_1.Bounds.equals = (left, right, eps) => sprotty_geometry_point_1.Point.equals(left, right, eps) && sprotty_geometry_dimension_1.Dimension.equals(left, right, eps);
|
|
6963
6913
|
geometry_1.Bounds.left = (bounds) => bounds.x;
|
|
6964
6914
|
geometry_1.Bounds.centerX = (bounds) => bounds.x + (bounds.width >= 0 ? bounds.width * 0.5 : 0);
|
|
6965
6915
|
geometry_1.Bounds.right = (bounds) => bounds.x + bounds.width;
|
|
@@ -6982,6 +6932,10 @@ geometry_1.Bounds.isBefore = (leftBounds, rightBounds) => geometry_1.Bounds.left
|
|
|
6982
6932
|
geometry_1.Bounds.isAfter = (leftBounds, rightBounds) => geometry_1.Bounds.left(leftBounds) >= geometry_1.Bounds.left(rightBounds);
|
|
6983
6933
|
geometry_1.Bounds.sortBy = (rankFunc, ...bounds) => bounds.sort((left, right) => rankFunc(left) - rankFunc(right));
|
|
6984
6934
|
geometry_1.Bounds.from = (topLeft, bottomRight) => (Object.assign(Object.assign({}, topLeft), { width: bottomRight.x - topLeft.x, height: bottomRight.y - topLeft.y }));
|
|
6935
|
+
geometry_1.Bounds.position = geometry_1.Bounds.topLeft;
|
|
6936
|
+
geometry_1.Bounds.dimension = (bounds) => ({ width: bounds.width, height: bounds.height });
|
|
6937
|
+
geometry_1.Bounds.move = geometry_1.Bounds.translate;
|
|
6938
|
+
geometry_1.Bounds.resize = (bounds, delta) => (Object.assign(Object.assign({}, bounds), { width: bounds.width + delta.width, height: bounds.height + delta.height }));
|
|
6985
6939
|
|
|
6986
6940
|
|
|
6987
6941
|
/***/ }),
|
|
@@ -7014,13 +6968,22 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7014
6968
|
exports.Dimension = void 0;
|
|
7015
6969
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
7016
6970
|
Object.defineProperty(exports, "Dimension", ({ enumerable: true, get: function () { return geometry_1.Dimension; } }));
|
|
6971
|
+
const math_util_1 = __webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js");
|
|
6972
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6973
|
+
geometry_1.Dimension.ZERO = Object.freeze({
|
|
6974
|
+
width: 0,
|
|
6975
|
+
height: 0
|
|
6976
|
+
});
|
|
6977
|
+
geometry_1.Dimension.is = (dimension) => type_util_1.AnyObject.is(dimension) && (0, type_util_1.hasNumberProp)(dimension, 'width') && (0, type_util_1.hasNumberProp)(dimension, 'height');
|
|
7017
6978
|
geometry_1.Dimension.center = (d) => ({ x: d.width * 0.5, y: d.height * 0.5 });
|
|
7018
6979
|
geometry_1.Dimension.add = (d, a) => ({ width: d.width + a.width, height: d.height + a.height });
|
|
7019
6980
|
geometry_1.Dimension.subtract = (d, a) => ({ width: d.width - a.width, height: d.height - a.height });
|
|
7020
6981
|
geometry_1.Dimension.multiplyMeasure = (d, m) => ({ width: d.width * m, height: d.height * m });
|
|
7021
6982
|
geometry_1.Dimension.divideMeasure = (d, m) => ({ width: d.width / m, height: d.height / m });
|
|
7022
6983
|
geometry_1.Dimension.map = (dimension, callbackfn) => (Object.assign(Object.assign({}, dimension), { width: callbackfn(dimension.width, 'width'), height: callbackfn(dimension.height, 'height') }));
|
|
7023
|
-
geometry_1.Dimension.equals = (left, right) => left.width
|
|
6984
|
+
geometry_1.Dimension.equals = (left, right, eps) => (0, math_util_1.equalUpTo)(left.width, right.width, eps) && (0, math_util_1.equalUpTo)(left.height, right.height, eps);
|
|
6985
|
+
geometry_1.Dimension.fromPoint = (point) => ({ width: point.x, height: point.y });
|
|
6986
|
+
geometry_1.Dimension.area = (dimension) => dimension.width * dimension.height;
|
|
7024
6987
|
|
|
7025
6988
|
|
|
7026
6989
|
/***/ }),
|
|
@@ -7053,8 +7016,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7053
7016
|
exports.Point = void 0;
|
|
7054
7017
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
7055
7018
|
Object.defineProperty(exports, "Point", ({ enumerable: true, get: function () { return geometry_1.Point; } }));
|
|
7056
|
-
const
|
|
7057
|
-
|
|
7019
|
+
const geometry_vector_1 = __webpack_require__(/*! ./utils/geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js");
|
|
7020
|
+
const math_util_1 = __webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js");
|
|
7021
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
7022
|
+
geometry_1.Point.is = (point) => type_util_1.AnyObject.is(point) && (0, type_util_1.hasNumberProp)(point, 'x') && (0, type_util_1.hasNumberProp)(point, 'y');
|
|
7058
7023
|
geometry_1.Point.isOrigin = (point) => geometry_1.Point.equals(point, geometry_1.Point.ORIGIN);
|
|
7059
7024
|
geometry_1.Point.isValid = (point) => point !== undefined && !isNaN(point.x) && !isNaN(point.y);
|
|
7060
7025
|
geometry_1.Point.abs = (point) => geometry_1.Point.map(point, Math.abs);
|
|
@@ -7075,14 +7040,15 @@ geometry_1.Point.snapToGrid = (point, grid, gridOrigin) => {
|
|
|
7075
7040
|
geometry_1.Point.vector = (from, to) => geometry_1.Point.subtract(to, from);
|
|
7076
7041
|
geometry_1.Point.move = (from, to) => {
|
|
7077
7042
|
const vector = geometry_1.Point.vector(from, to);
|
|
7078
|
-
const direction =
|
|
7043
|
+
const direction = geometry_vector_1.Vector.direction(vector);
|
|
7079
7044
|
return { from, to, vector, direction };
|
|
7080
7045
|
};
|
|
7081
7046
|
geometry_1.Point.moveTowards = (from, vector) => {
|
|
7082
7047
|
const to = geometry_1.Point.add(from, vector);
|
|
7083
|
-
const dir =
|
|
7048
|
+
const dir = geometry_vector_1.Vector.direction(vector);
|
|
7084
7049
|
return { from, to, vector, direction: dir };
|
|
7085
7050
|
};
|
|
7051
|
+
geometry_1.Point.equals = (one, other, eps) => (0, math_util_1.equalUpTo)(one.x, other.x, eps) && (0, math_util_1.equalUpTo)(one.y, other.y, eps);
|
|
7086
7052
|
|
|
7087
7053
|
|
|
7088
7054
|
/***/ }),
|
|
@@ -7429,7 +7395,7 @@ exports.Emitter = Emitter;
|
|
|
7429
7395
|
********************************************************************************/
|
|
7430
7396
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7431
7397
|
exports.Movement = void 0;
|
|
7432
|
-
const
|
|
7398
|
+
const sprotty_geometry_point_1 = __webpack_require__(/*! ../sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js");
|
|
7433
7399
|
const geometry_vector_1 = __webpack_require__(/*! ./geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js");
|
|
7434
7400
|
const type_util_1 = __webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
7435
7401
|
/**
|
|
@@ -7442,8 +7408,8 @@ var Movement;
|
|
|
7442
7408
|
* The zero movement. It has from and to set to the origin and the vector set to zero.
|
|
7443
7409
|
*/
|
|
7444
7410
|
Movement.ZERO = Object.freeze({
|
|
7445
|
-
from:
|
|
7446
|
-
to:
|
|
7411
|
+
from: sprotty_geometry_point_1.Point.ORIGIN,
|
|
7412
|
+
to: sprotty_geometry_point_1.Point.ORIGIN,
|
|
7447
7413
|
vector: geometry_vector_1.Vector.ZERO,
|
|
7448
7414
|
direction: []
|
|
7449
7415
|
});
|
|
@@ -7455,9 +7421,9 @@ var Movement;
|
|
|
7455
7421
|
function is(obj) {
|
|
7456
7422
|
return (type_util_1.AnyObject.is(obj) &&
|
|
7457
7423
|
(0, type_util_1.hasObjectProp)(obj, 'from') &&
|
|
7458
|
-
|
|
7424
|
+
sprotty_geometry_point_1.Point.is(obj.from) &&
|
|
7459
7425
|
(0, type_util_1.hasObjectProp)(obj, 'to') &&
|
|
7460
|
-
|
|
7426
|
+
sprotty_geometry_point_1.Point.is(obj.to) &&
|
|
7461
7427
|
(0, type_util_1.hasObjectProp)(obj, 'vector') &&
|
|
7462
7428
|
geometry_vector_1.Vector.is(obj.to) &&
|
|
7463
7429
|
(0, type_util_1.hasObjectProp)(obj, 'direction'));
|
|
@@ -7488,7 +7454,7 @@ var Movement;
|
|
|
7488
7454
|
* @returns true if the movements are equal, false otherwise
|
|
7489
7455
|
*/
|
|
7490
7456
|
function equals(left, right) {
|
|
7491
|
-
return
|
|
7457
|
+
return sprotty_geometry_point_1.Point.equals(left.from, right.from) && sprotty_geometry_point_1.Point.equals(left.to, right.to) && geometry_vector_1.Vector.equals(left.vector, right.vector);
|
|
7492
7458
|
}
|
|
7493
7459
|
Movement.equals = equals;
|
|
7494
7460
|
})(Movement || (exports.Movement = Movement = {}));
|
|
@@ -7771,31 +7737,16 @@ var Vector;
|
|
|
7771
7737
|
|
|
7772
7738
|
/***/ }),
|
|
7773
7739
|
|
|
7774
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
7775
|
-
|
|
7776
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
7777
|
-
|
|
7778
|
-
/***/ (
|
|
7740
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js":
|
|
7741
|
+
/*!************************************************************************!*\
|
|
7742
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js ***!
|
|
7743
|
+
\************************************************************************/
|
|
7744
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
7779
7745
|
|
|
7780
7746
|
"use strict";
|
|
7781
7747
|
|
|
7782
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7783
|
-
if (k2 === undefined) k2 = k;
|
|
7784
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7785
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7786
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7787
|
-
}
|
|
7788
|
-
Object.defineProperty(o, k2, desc);
|
|
7789
|
-
}) : (function(o, m, k, k2) {
|
|
7790
|
-
if (k2 === undefined) k2 = k;
|
|
7791
|
-
o[k2] = m[k];
|
|
7792
|
-
}));
|
|
7793
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
7794
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
7795
|
-
};
|
|
7796
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7797
7748
|
/********************************************************************************
|
|
7798
|
-
* Copyright (c)
|
|
7749
|
+
* Copyright (c) 2024 Axon Ivy AG and others.
|
|
7799
7750
|
*
|
|
7800
7751
|
* This program and the accompanying materials are made available under the
|
|
7801
7752
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -7809,13 +7760,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7809
7760
|
*
|
|
7810
7761
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
7811
7762
|
********************************************************************************/
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
__exportStar(__webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js"), exports);
|
|
7763
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7764
|
+
exports.equalUpTo = void 0;
|
|
7765
|
+
function equalUpTo(one, other, epsilon = Number.EPSILON) {
|
|
7766
|
+
return Math.abs(one - other) <= epsilon;
|
|
7767
|
+
}
|
|
7768
|
+
exports.equalUpTo = equalUpTo;
|
|
7819
7769
|
|
|
7820
7770
|
|
|
7821
7771
|
/***/ }),
|
|
@@ -7844,7 +7794,7 @@ __exportStar(__webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse
|
|
|
7844
7794
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
7845
7795
|
********************************************************************************/
|
|
7846
7796
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7847
|
-
exports.hasArrayProp = exports.hasFunctionProp = exports.hasObjectProp = exports.hasNumberProp = exports.hasBooleanProp = exports.hasStringProp = exports.call = exports.toTypeGuard = exports.AnyObject = void 0;
|
|
7797
|
+
exports.hasArrayProp = exports.hasFunctionProp = exports.hasObjectProp = exports.hasNumberProp = exports.hasBooleanProp = exports.hasStringProp = exports.call = exports.toTypeGuard = exports.typeGuard = exports.AnyObject = void 0;
|
|
7848
7798
|
var AnyObject;
|
|
7849
7799
|
(function (AnyObject) {
|
|
7850
7800
|
/**
|
|
@@ -7858,6 +7808,11 @@ var AnyObject;
|
|
|
7858
7808
|
}
|
|
7859
7809
|
AnyObject.is = is;
|
|
7860
7810
|
})(AnyObject || (exports.AnyObject = AnyObject = {}));
|
|
7811
|
+
/** Utility function to combine two type guards */
|
|
7812
|
+
function typeGuard(one, other) {
|
|
7813
|
+
return (element) => one(element) && other(element);
|
|
7814
|
+
}
|
|
7815
|
+
exports.typeGuard = typeGuard;
|
|
7861
7816
|
/**
|
|
7862
7817
|
* Utility function that create a typeguard function for a given class constructor.
|
|
7863
7818
|
* Essentially this wraps an instance of check as typeguard function.
|
|
@@ -31868,6 +31823,277 @@ function v4(options, buf, offset) {
|
|
|
31868
31823
|
module.exports = v4;
|
|
31869
31824
|
|
|
31870
31825
|
|
|
31826
|
+
/***/ }),
|
|
31827
|
+
|
|
31828
|
+
/***/ "../../node_modules/vscode-jsonrpc/browser.js":
|
|
31829
|
+
/*!****************************************************!*\
|
|
31830
|
+
!*** ../../node_modules/vscode-jsonrpc/browser.js ***!
|
|
31831
|
+
\****************************************************/
|
|
31832
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
31833
|
+
|
|
31834
|
+
"use strict";
|
|
31835
|
+
/* --------------------------------------------------------------------------------------------
|
|
31836
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31837
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
31838
|
+
* ----------------------------------------------------------------------------------------- */
|
|
31839
|
+
|
|
31840
|
+
|
|
31841
|
+
module.exports = __webpack_require__(/*! ./lib/browser/main */ "../../node_modules/vscode-jsonrpc/lib/browser/main.js");
|
|
31842
|
+
|
|
31843
|
+
/***/ }),
|
|
31844
|
+
|
|
31845
|
+
/***/ "../../node_modules/vscode-jsonrpc/lib/browser/main.js":
|
|
31846
|
+
/*!*************************************************************!*\
|
|
31847
|
+
!*** ../../node_modules/vscode-jsonrpc/lib/browser/main.js ***!
|
|
31848
|
+
\*************************************************************/
|
|
31849
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
31850
|
+
|
|
31851
|
+
"use strict";
|
|
31852
|
+
|
|
31853
|
+
/* --------------------------------------------------------------------------------------------
|
|
31854
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31855
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
31856
|
+
* ------------------------------------------------------------------------------------------ */
|
|
31857
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
31858
|
+
if (k2 === undefined) k2 = k;
|
|
31859
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31860
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
31861
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
31862
|
+
}
|
|
31863
|
+
Object.defineProperty(o, k2, desc);
|
|
31864
|
+
}) : (function(o, m, k, k2) {
|
|
31865
|
+
if (k2 === undefined) k2 = k;
|
|
31866
|
+
o[k2] = m[k];
|
|
31867
|
+
}));
|
|
31868
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
31869
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31870
|
+
};
|
|
31871
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31872
|
+
exports.createMessageConnection = exports.BrowserMessageWriter = exports.BrowserMessageReader = void 0;
|
|
31873
|
+
const ril_1 = __webpack_require__(/*! ./ril */ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js");
|
|
31874
|
+
// Install the browser runtime abstract.
|
|
31875
|
+
ril_1.default.install();
|
|
31876
|
+
const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
|
|
31877
|
+
__exportStar(__webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js"), exports);
|
|
31878
|
+
class BrowserMessageReader extends api_1.AbstractMessageReader {
|
|
31879
|
+
constructor(port) {
|
|
31880
|
+
super();
|
|
31881
|
+
this._onData = new api_1.Emitter();
|
|
31882
|
+
this._messageListener = (event) => {
|
|
31883
|
+
this._onData.fire(event.data);
|
|
31884
|
+
};
|
|
31885
|
+
port.addEventListener('error', (event) => this.fireError(event));
|
|
31886
|
+
port.onmessage = this._messageListener;
|
|
31887
|
+
}
|
|
31888
|
+
listen(callback) {
|
|
31889
|
+
return this._onData.event(callback);
|
|
31890
|
+
}
|
|
31891
|
+
}
|
|
31892
|
+
exports.BrowserMessageReader = BrowserMessageReader;
|
|
31893
|
+
class BrowserMessageWriter extends api_1.AbstractMessageWriter {
|
|
31894
|
+
constructor(port) {
|
|
31895
|
+
super();
|
|
31896
|
+
this.port = port;
|
|
31897
|
+
this.errorCount = 0;
|
|
31898
|
+
port.addEventListener('error', (event) => this.fireError(event));
|
|
31899
|
+
}
|
|
31900
|
+
write(msg) {
|
|
31901
|
+
try {
|
|
31902
|
+
this.port.postMessage(msg);
|
|
31903
|
+
return Promise.resolve();
|
|
31904
|
+
}
|
|
31905
|
+
catch (error) {
|
|
31906
|
+
this.handleError(error, msg);
|
|
31907
|
+
return Promise.reject(error);
|
|
31908
|
+
}
|
|
31909
|
+
}
|
|
31910
|
+
handleError(error, msg) {
|
|
31911
|
+
this.errorCount++;
|
|
31912
|
+
this.fireError(error, msg, this.errorCount);
|
|
31913
|
+
}
|
|
31914
|
+
end() {
|
|
31915
|
+
}
|
|
31916
|
+
}
|
|
31917
|
+
exports.BrowserMessageWriter = BrowserMessageWriter;
|
|
31918
|
+
function createMessageConnection(reader, writer, logger, options) {
|
|
31919
|
+
if (logger === undefined) {
|
|
31920
|
+
logger = api_1.NullLogger;
|
|
31921
|
+
}
|
|
31922
|
+
if (api_1.ConnectionStrategy.is(options)) {
|
|
31923
|
+
options = { connectionStrategy: options };
|
|
31924
|
+
}
|
|
31925
|
+
return (0, api_1.createMessageConnection)(reader, writer, logger, options);
|
|
31926
|
+
}
|
|
31927
|
+
exports.createMessageConnection = createMessageConnection;
|
|
31928
|
+
|
|
31929
|
+
|
|
31930
|
+
/***/ }),
|
|
31931
|
+
|
|
31932
|
+
/***/ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js":
|
|
31933
|
+
/*!************************************************************!*\
|
|
31934
|
+
!*** ../../node_modules/vscode-jsonrpc/lib/browser/ril.js ***!
|
|
31935
|
+
\************************************************************/
|
|
31936
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
31937
|
+
|
|
31938
|
+
"use strict";
|
|
31939
|
+
|
|
31940
|
+
/* --------------------------------------------------------------------------------------------
|
|
31941
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31942
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
31943
|
+
* ------------------------------------------------------------------------------------------ */
|
|
31944
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31945
|
+
const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
|
|
31946
|
+
class MessageBuffer extends api_1.AbstractMessageBuffer {
|
|
31947
|
+
constructor(encoding = 'utf-8') {
|
|
31948
|
+
super(encoding);
|
|
31949
|
+
this.asciiDecoder = new TextDecoder('ascii');
|
|
31950
|
+
}
|
|
31951
|
+
emptyBuffer() {
|
|
31952
|
+
return MessageBuffer.emptyBuffer;
|
|
31953
|
+
}
|
|
31954
|
+
fromString(value, _encoding) {
|
|
31955
|
+
return (new TextEncoder()).encode(value);
|
|
31956
|
+
}
|
|
31957
|
+
toString(value, encoding) {
|
|
31958
|
+
if (encoding === 'ascii') {
|
|
31959
|
+
return this.asciiDecoder.decode(value);
|
|
31960
|
+
}
|
|
31961
|
+
else {
|
|
31962
|
+
return (new TextDecoder(encoding)).decode(value);
|
|
31963
|
+
}
|
|
31964
|
+
}
|
|
31965
|
+
asNative(buffer, length) {
|
|
31966
|
+
if (length === undefined) {
|
|
31967
|
+
return buffer;
|
|
31968
|
+
}
|
|
31969
|
+
else {
|
|
31970
|
+
return buffer.slice(0, length);
|
|
31971
|
+
}
|
|
31972
|
+
}
|
|
31973
|
+
allocNative(length) {
|
|
31974
|
+
return new Uint8Array(length);
|
|
31975
|
+
}
|
|
31976
|
+
}
|
|
31977
|
+
MessageBuffer.emptyBuffer = new Uint8Array(0);
|
|
31978
|
+
class ReadableStreamWrapper {
|
|
31979
|
+
constructor(socket) {
|
|
31980
|
+
this.socket = socket;
|
|
31981
|
+
this._onData = new api_1.Emitter();
|
|
31982
|
+
this._messageListener = (event) => {
|
|
31983
|
+
const blob = event.data;
|
|
31984
|
+
blob.arrayBuffer().then((buffer) => {
|
|
31985
|
+
this._onData.fire(new Uint8Array(buffer));
|
|
31986
|
+
}, () => {
|
|
31987
|
+
(0, api_1.RAL)().console.error(`Converting blob to array buffer failed.`);
|
|
31988
|
+
});
|
|
31989
|
+
};
|
|
31990
|
+
this.socket.addEventListener('message', this._messageListener);
|
|
31991
|
+
}
|
|
31992
|
+
onClose(listener) {
|
|
31993
|
+
this.socket.addEventListener('close', listener);
|
|
31994
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));
|
|
31995
|
+
}
|
|
31996
|
+
onError(listener) {
|
|
31997
|
+
this.socket.addEventListener('error', listener);
|
|
31998
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));
|
|
31999
|
+
}
|
|
32000
|
+
onEnd(listener) {
|
|
32001
|
+
this.socket.addEventListener('end', listener);
|
|
32002
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));
|
|
32003
|
+
}
|
|
32004
|
+
onData(listener) {
|
|
32005
|
+
return this._onData.event(listener);
|
|
32006
|
+
}
|
|
32007
|
+
}
|
|
32008
|
+
class WritableStreamWrapper {
|
|
32009
|
+
constructor(socket) {
|
|
32010
|
+
this.socket = socket;
|
|
32011
|
+
}
|
|
32012
|
+
onClose(listener) {
|
|
32013
|
+
this.socket.addEventListener('close', listener);
|
|
32014
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));
|
|
32015
|
+
}
|
|
32016
|
+
onError(listener) {
|
|
32017
|
+
this.socket.addEventListener('error', listener);
|
|
32018
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));
|
|
32019
|
+
}
|
|
32020
|
+
onEnd(listener) {
|
|
32021
|
+
this.socket.addEventListener('end', listener);
|
|
32022
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));
|
|
32023
|
+
}
|
|
32024
|
+
write(data, encoding) {
|
|
32025
|
+
if (typeof data === 'string') {
|
|
32026
|
+
if (encoding !== undefined && encoding !== 'utf-8') {
|
|
32027
|
+
throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${encoding}`);
|
|
32028
|
+
}
|
|
32029
|
+
this.socket.send(data);
|
|
32030
|
+
}
|
|
32031
|
+
else {
|
|
32032
|
+
this.socket.send(data);
|
|
32033
|
+
}
|
|
32034
|
+
return Promise.resolve();
|
|
32035
|
+
}
|
|
32036
|
+
end() {
|
|
32037
|
+
this.socket.close();
|
|
32038
|
+
}
|
|
32039
|
+
}
|
|
32040
|
+
const _textEncoder = new TextEncoder();
|
|
32041
|
+
const _ril = Object.freeze({
|
|
32042
|
+
messageBuffer: Object.freeze({
|
|
32043
|
+
create: (encoding) => new MessageBuffer(encoding)
|
|
32044
|
+
}),
|
|
32045
|
+
applicationJson: Object.freeze({
|
|
32046
|
+
encoder: Object.freeze({
|
|
32047
|
+
name: 'application/json',
|
|
32048
|
+
encode: (msg, options) => {
|
|
32049
|
+
if (options.charset !== 'utf-8') {
|
|
32050
|
+
throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${options.charset}`);
|
|
32051
|
+
}
|
|
32052
|
+
return Promise.resolve(_textEncoder.encode(JSON.stringify(msg, undefined, 0)));
|
|
32053
|
+
}
|
|
32054
|
+
}),
|
|
32055
|
+
decoder: Object.freeze({
|
|
32056
|
+
name: 'application/json',
|
|
32057
|
+
decode: (buffer, options) => {
|
|
32058
|
+
if (!(buffer instanceof Uint8Array)) {
|
|
32059
|
+
throw new Error(`In a Browser environments only Uint8Arrays are supported.`);
|
|
32060
|
+
}
|
|
32061
|
+
return Promise.resolve(JSON.parse(new TextDecoder(options.charset).decode(buffer)));
|
|
32062
|
+
}
|
|
32063
|
+
})
|
|
32064
|
+
}),
|
|
32065
|
+
stream: Object.freeze({
|
|
32066
|
+
asReadableStream: (socket) => new ReadableStreamWrapper(socket),
|
|
32067
|
+
asWritableStream: (socket) => new WritableStreamWrapper(socket)
|
|
32068
|
+
}),
|
|
32069
|
+
console: console,
|
|
32070
|
+
timer: Object.freeze({
|
|
32071
|
+
setTimeout(callback, ms, ...args) {
|
|
32072
|
+
const handle = setTimeout(callback, ms, ...args);
|
|
32073
|
+
return { dispose: () => clearTimeout(handle) };
|
|
32074
|
+
},
|
|
32075
|
+
setImmediate(callback, ...args) {
|
|
32076
|
+
const handle = setTimeout(callback, 0, ...args);
|
|
32077
|
+
return { dispose: () => clearTimeout(handle) };
|
|
32078
|
+
},
|
|
32079
|
+
setInterval(callback, ms, ...args) {
|
|
32080
|
+
const handle = setInterval(callback, ms, ...args);
|
|
32081
|
+
return { dispose: () => clearInterval(handle) };
|
|
32082
|
+
},
|
|
32083
|
+
})
|
|
32084
|
+
});
|
|
32085
|
+
function RIL() {
|
|
32086
|
+
return _ril;
|
|
32087
|
+
}
|
|
32088
|
+
(function (RIL) {
|
|
32089
|
+
function install() {
|
|
32090
|
+
api_1.RAL.install(_ril);
|
|
32091
|
+
}
|
|
32092
|
+
RIL.install = install;
|
|
32093
|
+
})(RIL || (RIL = {}));
|
|
32094
|
+
exports["default"] = RIL;
|
|
32095
|
+
|
|
32096
|
+
|
|
31871
32097
|
/***/ }),
|
|
31872
32098
|
|
|
31873
32099
|
/***/ "../../node_modules/vscode-jsonrpc/lib/common/api.js":
|