@eclipse-glsp-examples/workflow-server-bundled 2.2.0 → 2.2.1
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 +325 -91
- package/wf-glsp-server-node.js.map +1 -1
package/wf-glsp-server-node.js
CHANGED
|
@@ -1597,7 +1597,11 @@ var EditTaskOperation;
|
|
|
1597
1597
|
}
|
|
1598
1598
|
EditTaskOperation.is = is;
|
|
1599
1599
|
function create(options) {
|
|
1600
|
-
return
|
|
1600
|
+
return {
|
|
1601
|
+
kind: EditTaskOperation.KIND,
|
|
1602
|
+
isOperation: true,
|
|
1603
|
+
...options
|
|
1604
|
+
};
|
|
1601
1605
|
}
|
|
1602
1606
|
EditTaskOperation.create = create;
|
|
1603
1607
|
})(EditTaskOperation || (exports.EditTaskOperation = EditTaskOperation = {}));
|
|
@@ -1959,7 +1963,7 @@ let WorkflowDiagramConfiguration = class WorkflowDiagramConfiguration {
|
|
|
1959
1963
|
return [
|
|
1960
1964
|
createDefaultEdgeTypeHint(protocol_1.DefaultTypes.EDGE),
|
|
1961
1965
|
createDefaultEdgeTypeHint({
|
|
1962
|
-
elementTypeId:
|
|
1966
|
+
elementTypeId: model_types_1.ModelTypes.WEIGHTED_EDGE,
|
|
1963
1967
|
dynamic: true,
|
|
1964
1968
|
sourceElementTypeIds: [model_types_1.ModelTypes.ACTIVITY_NODE],
|
|
1965
1969
|
targetElementTypeIds: [model_types_1.ModelTypes.TASK, model_types_1.ModelTypes.ACTIVITY_NODE]
|
|
@@ -1973,12 +1977,16 @@ exports.WorkflowDiagramConfiguration = WorkflowDiagramConfiguration = __decorate
|
|
|
1973
1977
|
], WorkflowDiagramConfiguration);
|
|
1974
1978
|
function createDefaultShapeTypeHint(elementIdOrTemplate) {
|
|
1975
1979
|
const template = typeof elementIdOrTemplate === 'string' ? { elementTypeId: elementIdOrTemplate } : elementIdOrTemplate;
|
|
1976
|
-
return
|
|
1980
|
+
return { repositionable: true, deletable: true, resizable: true, reparentable: true, ...template };
|
|
1977
1981
|
}
|
|
1978
1982
|
exports.createDefaultShapeTypeHint = createDefaultShapeTypeHint;
|
|
1979
1983
|
function createDefaultEdgeTypeHint(elementIdOrTemplate) {
|
|
1980
1984
|
const template = typeof elementIdOrTemplate === 'string' ? { elementTypeId: elementIdOrTemplate } : elementIdOrTemplate;
|
|
1981
|
-
return
|
|
1985
|
+
return {
|
|
1986
|
+
repositionable: true,
|
|
1987
|
+
deletable: true,
|
|
1988
|
+
routable: true,
|
|
1989
|
+
sourceElementTypeIds: [
|
|
1982
1990
|
model_types_1.ModelTypes.MANUAL_TASK,
|
|
1983
1991
|
model_types_1.ModelTypes.AUTOMATED_TASK,
|
|
1984
1992
|
model_types_1.ModelTypes.DECISION_NODE,
|
|
@@ -1986,7 +1994,8 @@ function createDefaultEdgeTypeHint(elementIdOrTemplate) {
|
|
|
1986
1994
|
model_types_1.ModelTypes.FORK_NODE,
|
|
1987
1995
|
model_types_1.ModelTypes.JOIN_NODE,
|
|
1988
1996
|
model_types_1.ModelTypes.CATEGORY
|
|
1989
|
-
],
|
|
1997
|
+
],
|
|
1998
|
+
targetElementTypeIds: [
|
|
1990
1999
|
model_types_1.ModelTypes.MANUAL_TASK,
|
|
1991
2000
|
model_types_1.ModelTypes.AUTOMATED_TASK,
|
|
1992
2001
|
model_types_1.ModelTypes.DECISION_NODE,
|
|
@@ -1994,7 +2003,9 @@ function createDefaultEdgeTypeHint(elementIdOrTemplate) {
|
|
|
1994
2003
|
model_types_1.ModelTypes.FORK_NODE,
|
|
1995
2004
|
model_types_1.ModelTypes.JOIN_NODE,
|
|
1996
2005
|
model_types_1.ModelTypes.CATEGORY
|
|
1997
|
-
]
|
|
2006
|
+
],
|
|
2007
|
+
...template
|
|
2008
|
+
};
|
|
1998
2009
|
}
|
|
1999
2010
|
exports.createDefaultEdgeTypeHint = createDefaultEdgeTypeHint;
|
|
2000
2011
|
|
|
@@ -2389,7 +2400,7 @@ launch(process.argv).catch(error => console.error('Error in workflow server laun
|
|
|
2389
2400
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2390
2401
|
exports.createWorkflowCliParser = void 0;
|
|
2391
2402
|
const node_1 = __webpack_require__(/*! @eclipse-glsp/server/node */ "../../packages/server/node.js");
|
|
2392
|
-
function createWorkflowCliParser(defaultOptions =
|
|
2403
|
+
function createWorkflowCliParser(defaultOptions = { webSocket: false, ...node_1.defaultSocketLaunchOptions }) {
|
|
2393
2404
|
const parser = (0, node_1.createSocketCliParser)(defaultOptions);
|
|
2394
2405
|
parser.command.option('-w , --webSocket', 'Flag to use websocket launcher instead of default launcher', false);
|
|
2395
2406
|
return parser;
|
|
@@ -3696,7 +3707,12 @@ var RejectAction;
|
|
|
3696
3707
|
}
|
|
3697
3708
|
RejectAction.is = is;
|
|
3698
3709
|
function create(message, options = {}) {
|
|
3699
|
-
return
|
|
3710
|
+
return {
|
|
3711
|
+
kind: RejectAction.KIND,
|
|
3712
|
+
responseId: '',
|
|
3713
|
+
message,
|
|
3714
|
+
...options
|
|
3715
|
+
};
|
|
3700
3716
|
}
|
|
3701
3717
|
RejectAction.create = create;
|
|
3702
3718
|
})(RejectAction || (exports.RejectAction = RejectAction = {}));
|
|
@@ -3725,7 +3741,12 @@ var CompoundOperation;
|
|
|
3725
3741
|
}
|
|
3726
3742
|
CompoundOperation.is = is;
|
|
3727
3743
|
function create(operationList, options = {}) {
|
|
3728
|
-
return
|
|
3744
|
+
return {
|
|
3745
|
+
kind: CompoundOperation.KIND,
|
|
3746
|
+
isOperation: true,
|
|
3747
|
+
operationList,
|
|
3748
|
+
...options
|
|
3749
|
+
};
|
|
3729
3750
|
}
|
|
3730
3751
|
CompoundOperation.create = create;
|
|
3731
3752
|
})(CompoundOperation || (exports.CompoundOperation = CompoundOperation = {}));
|
|
@@ -3768,7 +3789,12 @@ var StatusAction;
|
|
|
3768
3789
|
}
|
|
3769
3790
|
StatusAction.is = is;
|
|
3770
3791
|
function create(message, options = {}) {
|
|
3771
|
-
return
|
|
3792
|
+
return {
|
|
3793
|
+
kind: StatusAction.KIND,
|
|
3794
|
+
severity: 'INFO',
|
|
3795
|
+
message,
|
|
3796
|
+
...options
|
|
3797
|
+
};
|
|
3772
3798
|
}
|
|
3773
3799
|
StatusAction.create = create;
|
|
3774
3800
|
})(StatusAction || (exports.StatusAction = StatusAction = {}));
|
|
@@ -3780,7 +3806,12 @@ var MessageAction;
|
|
|
3780
3806
|
}
|
|
3781
3807
|
MessageAction.is = is;
|
|
3782
3808
|
function create(message, options = {}) {
|
|
3783
|
-
return
|
|
3809
|
+
return {
|
|
3810
|
+
kind: MessageAction.KIND,
|
|
3811
|
+
message,
|
|
3812
|
+
severity: 'INFO',
|
|
3813
|
+
...options
|
|
3814
|
+
};
|
|
3784
3815
|
}
|
|
3785
3816
|
MessageAction.create = create;
|
|
3786
3817
|
})(MessageAction || (exports.MessageAction = MessageAction = {}));
|
|
@@ -3792,7 +3823,10 @@ var StartProgressAction;
|
|
|
3792
3823
|
}
|
|
3793
3824
|
StartProgressAction.is = is;
|
|
3794
3825
|
function create(options) {
|
|
3795
|
-
return
|
|
3826
|
+
return {
|
|
3827
|
+
kind: StartProgressAction.KIND,
|
|
3828
|
+
...options
|
|
3829
|
+
};
|
|
3796
3830
|
}
|
|
3797
3831
|
StartProgressAction.create = create;
|
|
3798
3832
|
})(StartProgressAction || (exports.StartProgressAction = StartProgressAction = {}));
|
|
@@ -3804,7 +3838,11 @@ var UpdateProgressAction;
|
|
|
3804
3838
|
}
|
|
3805
3839
|
UpdateProgressAction.is = is;
|
|
3806
3840
|
function create(progressId, options = {}) {
|
|
3807
|
-
return
|
|
3841
|
+
return {
|
|
3842
|
+
kind: UpdateProgressAction.KIND,
|
|
3843
|
+
progressId,
|
|
3844
|
+
...options
|
|
3845
|
+
};
|
|
3808
3846
|
}
|
|
3809
3847
|
UpdateProgressAction.create = create;
|
|
3810
3848
|
})(UpdateProgressAction || (exports.UpdateProgressAction = UpdateProgressAction = {}));
|
|
@@ -3863,7 +3901,12 @@ var RequestClipboardDataAction;
|
|
|
3863
3901
|
}
|
|
3864
3902
|
RequestClipboardDataAction.is = is;
|
|
3865
3903
|
function create(editorContext, options = {}) {
|
|
3866
|
-
return
|
|
3904
|
+
return {
|
|
3905
|
+
kind: RequestClipboardDataAction.KIND,
|
|
3906
|
+
requestId: '',
|
|
3907
|
+
editorContext,
|
|
3908
|
+
...options
|
|
3909
|
+
};
|
|
3867
3910
|
}
|
|
3868
3911
|
RequestClipboardDataAction.create = create;
|
|
3869
3912
|
})(RequestClipboardDataAction || (exports.RequestClipboardDataAction = RequestClipboardDataAction = {}));
|
|
@@ -3875,7 +3918,12 @@ var SetClipboardDataAction;
|
|
|
3875
3918
|
}
|
|
3876
3919
|
SetClipboardDataAction.is = is;
|
|
3877
3920
|
function create(clipboardData, options = {}) {
|
|
3878
|
-
return
|
|
3921
|
+
return {
|
|
3922
|
+
kind: SetClipboardDataAction.KIND,
|
|
3923
|
+
responseId: '',
|
|
3924
|
+
clipboardData,
|
|
3925
|
+
...options
|
|
3926
|
+
};
|
|
3879
3927
|
}
|
|
3880
3928
|
SetClipboardDataAction.create = create;
|
|
3881
3929
|
})(SetClipboardDataAction || (exports.SetClipboardDataAction = SetClipboardDataAction = {}));
|
|
@@ -3887,7 +3935,12 @@ var CutOperation;
|
|
|
3887
3935
|
}
|
|
3888
3936
|
CutOperation.is = is;
|
|
3889
3937
|
function create(editorContext, options = {}) {
|
|
3890
|
-
return
|
|
3938
|
+
return {
|
|
3939
|
+
kind: CutOperation.KIND,
|
|
3940
|
+
isOperation: true,
|
|
3941
|
+
editorContext,
|
|
3942
|
+
...options
|
|
3943
|
+
};
|
|
3891
3944
|
}
|
|
3892
3945
|
CutOperation.create = create;
|
|
3893
3946
|
})(CutOperation || (exports.CutOperation = CutOperation = {}));
|
|
@@ -3899,7 +3952,11 @@ var PasteOperation;
|
|
|
3899
3952
|
}
|
|
3900
3953
|
PasteOperation.is = is;
|
|
3901
3954
|
function create(options) {
|
|
3902
|
-
return
|
|
3955
|
+
return {
|
|
3956
|
+
kind: PasteOperation.KIND,
|
|
3957
|
+
isOperation: true,
|
|
3958
|
+
...options
|
|
3959
|
+
};
|
|
3903
3960
|
}
|
|
3904
3961
|
PasteOperation.create = create;
|
|
3905
3962
|
})(PasteOperation || (exports.PasteOperation = PasteOperation = {}));
|
|
@@ -3942,7 +3999,11 @@ var RequestContextActions;
|
|
|
3942
3999
|
}
|
|
3943
4000
|
RequestContextActions.is = is;
|
|
3944
4001
|
function create(options) {
|
|
3945
|
-
return
|
|
4002
|
+
return {
|
|
4003
|
+
kind: RequestContextActions.KIND,
|
|
4004
|
+
requestId: '',
|
|
4005
|
+
...options
|
|
4006
|
+
};
|
|
3946
4007
|
}
|
|
3947
4008
|
RequestContextActions.create = create;
|
|
3948
4009
|
})(RequestContextActions || (exports.RequestContextActions = RequestContextActions = {}));
|
|
@@ -3954,7 +4015,12 @@ var SetContextActions;
|
|
|
3954
4015
|
}
|
|
3955
4016
|
SetContextActions.is = is;
|
|
3956
4017
|
function create(actions, options = {}) {
|
|
3957
|
-
return
|
|
4018
|
+
return {
|
|
4019
|
+
kind: SetContextActions.KIND,
|
|
4020
|
+
responseId: '',
|
|
4021
|
+
actions,
|
|
4022
|
+
...options
|
|
4023
|
+
};
|
|
3958
4024
|
}
|
|
3959
4025
|
SetContextActions.create = create;
|
|
3960
4026
|
})(SetContextActions || (exports.SetContextActions = SetContextActions = {}));
|
|
@@ -4000,7 +4066,11 @@ var ReconnectEdgeOperation;
|
|
|
4000
4066
|
}
|
|
4001
4067
|
ReconnectEdgeOperation.is = is;
|
|
4002
4068
|
function create(options) {
|
|
4003
|
-
return
|
|
4069
|
+
return {
|
|
4070
|
+
kind: ReconnectEdgeOperation.KIND,
|
|
4071
|
+
isOperation: true,
|
|
4072
|
+
...options
|
|
4073
|
+
};
|
|
4004
4074
|
}
|
|
4005
4075
|
ReconnectEdgeOperation.create = create;
|
|
4006
4076
|
})(ReconnectEdgeOperation || (exports.ReconnectEdgeOperation = ReconnectEdgeOperation = {}));
|
|
@@ -4012,7 +4082,12 @@ var ChangeRoutingPointsOperation;
|
|
|
4012
4082
|
}
|
|
4013
4083
|
ChangeRoutingPointsOperation.is = is;
|
|
4014
4084
|
function create(newRoutingPoints, options = {}) {
|
|
4015
|
-
return
|
|
4085
|
+
return {
|
|
4086
|
+
kind: ChangeRoutingPointsOperation.KIND,
|
|
4087
|
+
isOperation: true,
|
|
4088
|
+
newRoutingPoints,
|
|
4089
|
+
...options
|
|
4090
|
+
};
|
|
4016
4091
|
}
|
|
4017
4092
|
ChangeRoutingPointsOperation.create = create;
|
|
4018
4093
|
})(ChangeRoutingPointsOperation || (exports.ChangeRoutingPointsOperation = ChangeRoutingPointsOperation = {}));
|
|
@@ -4072,7 +4147,12 @@ var CreateNodeOperation;
|
|
|
4072
4147
|
}
|
|
4073
4148
|
CreateNodeOperation.is = is;
|
|
4074
4149
|
function create(elementTypeId, options = {}) {
|
|
4075
|
-
return
|
|
4150
|
+
return {
|
|
4151
|
+
kind: CreateNodeOperation.KIND,
|
|
4152
|
+
isOperation: true,
|
|
4153
|
+
elementTypeId,
|
|
4154
|
+
...options
|
|
4155
|
+
};
|
|
4076
4156
|
}
|
|
4077
4157
|
CreateNodeOperation.create = create;
|
|
4078
4158
|
})(CreateNodeOperation || (exports.CreateNodeOperation = CreateNodeOperation = {}));
|
|
@@ -4084,7 +4164,11 @@ var CreateEdgeOperation;
|
|
|
4084
4164
|
}
|
|
4085
4165
|
CreateEdgeOperation.is = is;
|
|
4086
4166
|
function create(options) {
|
|
4087
|
-
return
|
|
4167
|
+
return {
|
|
4168
|
+
kind: CreateEdgeOperation.KIND,
|
|
4169
|
+
isOperation: true,
|
|
4170
|
+
...options
|
|
4171
|
+
};
|
|
4088
4172
|
}
|
|
4089
4173
|
CreateEdgeOperation.create = create;
|
|
4090
4174
|
})(CreateEdgeOperation || (exports.CreateEdgeOperation = CreateEdgeOperation = {}));
|
|
@@ -4096,7 +4180,12 @@ var DeleteElementOperation;
|
|
|
4096
4180
|
}
|
|
4097
4181
|
DeleteElementOperation.is = is;
|
|
4098
4182
|
function create(elementIds, options = {}) {
|
|
4099
|
-
return
|
|
4183
|
+
return {
|
|
4184
|
+
kind: DeleteElementOperation.KIND,
|
|
4185
|
+
isOperation: true,
|
|
4186
|
+
elementIds,
|
|
4187
|
+
...options
|
|
4188
|
+
};
|
|
4100
4189
|
}
|
|
4101
4190
|
DeleteElementOperation.create = create;
|
|
4102
4191
|
})(DeleteElementOperation || (exports.DeleteElementOperation = DeleteElementOperation = {}));
|
|
@@ -4124,7 +4213,11 @@ var RequestPopupModelAction;
|
|
|
4124
4213
|
}
|
|
4125
4214
|
RequestPopupModelAction.is = is;
|
|
4126
4215
|
function create(options) {
|
|
4127
|
-
return
|
|
4216
|
+
return {
|
|
4217
|
+
kind: RequestPopupModelAction.KIND,
|
|
4218
|
+
requestId: '',
|
|
4219
|
+
...options
|
|
4220
|
+
};
|
|
4128
4221
|
}
|
|
4129
4222
|
RequestPopupModelAction.create = create;
|
|
4130
4223
|
})(RequestPopupModelAction || (exports.RequestPopupModelAction = RequestPopupModelAction = {}));
|
|
@@ -4136,7 +4229,12 @@ var SetPopupModelAction;
|
|
|
4136
4229
|
}
|
|
4137
4230
|
SetPopupModelAction.is = is;
|
|
4138
4231
|
function create(newRoot, options = {}) {
|
|
4139
|
-
return
|
|
4232
|
+
return {
|
|
4233
|
+
kind: SetPopupModelAction.KIND,
|
|
4234
|
+
responseId: '',
|
|
4235
|
+
newRoot,
|
|
4236
|
+
...options
|
|
4237
|
+
};
|
|
4140
4238
|
}
|
|
4141
4239
|
SetPopupModelAction.create = create;
|
|
4142
4240
|
})(SetPopupModelAction || (exports.SetPopupModelAction = SetPopupModelAction = {}));
|
|
@@ -4271,7 +4369,11 @@ var RequestNavigationTargetsAction;
|
|
|
4271
4369
|
}
|
|
4272
4370
|
RequestNavigationTargetsAction.is = is;
|
|
4273
4371
|
function create(options) {
|
|
4274
|
-
return
|
|
4372
|
+
return {
|
|
4373
|
+
kind: RequestNavigationTargetsAction.KIND,
|
|
4374
|
+
requestId: '',
|
|
4375
|
+
...options
|
|
4376
|
+
};
|
|
4275
4377
|
}
|
|
4276
4378
|
RequestNavigationTargetsAction.create = create;
|
|
4277
4379
|
})(RequestNavigationTargetsAction || (exports.RequestNavigationTargetsAction = RequestNavigationTargetsAction = {}));
|
|
@@ -4283,7 +4385,12 @@ var SetNavigationTargetsAction;
|
|
|
4283
4385
|
}
|
|
4284
4386
|
SetNavigationTargetsAction.is = is;
|
|
4285
4387
|
function create(targets, options = {}) {
|
|
4286
|
-
return
|
|
4388
|
+
return {
|
|
4389
|
+
kind: SetNavigationTargetsAction.KIND,
|
|
4390
|
+
responseId: '',
|
|
4391
|
+
targets,
|
|
4392
|
+
...options
|
|
4393
|
+
};
|
|
4287
4394
|
}
|
|
4288
4395
|
SetNavigationTargetsAction.create = create;
|
|
4289
4396
|
})(SetNavigationTargetsAction || (exports.SetNavigationTargetsAction = SetNavigationTargetsAction = {}));
|
|
@@ -4310,7 +4417,12 @@ var ResolveNavigationTargetAction;
|
|
|
4310
4417
|
}
|
|
4311
4418
|
ResolveNavigationTargetAction.is = is;
|
|
4312
4419
|
function create(navigationTarget, options = {}) {
|
|
4313
|
-
return
|
|
4420
|
+
return {
|
|
4421
|
+
kind: ResolveNavigationTargetAction.KIND,
|
|
4422
|
+
requestId: '',
|
|
4423
|
+
navigationTarget,
|
|
4424
|
+
...options
|
|
4425
|
+
};
|
|
4314
4426
|
}
|
|
4315
4427
|
ResolveNavigationTargetAction.create = create;
|
|
4316
4428
|
})(ResolveNavigationTargetAction || (exports.ResolveNavigationTargetAction = ResolveNavigationTargetAction = {}));
|
|
@@ -4322,7 +4434,12 @@ var SetResolvedNavigationTargetAction;
|
|
|
4322
4434
|
}
|
|
4323
4435
|
SetResolvedNavigationTargetAction.is = is;
|
|
4324
4436
|
function create(elementIds, options = {}) {
|
|
4325
|
-
return
|
|
4437
|
+
return {
|
|
4438
|
+
kind: SetResolvedNavigationTargetAction.KIND,
|
|
4439
|
+
responseId: '',
|
|
4440
|
+
elementIds,
|
|
4441
|
+
...options
|
|
4442
|
+
};
|
|
4326
4443
|
}
|
|
4327
4444
|
SetResolvedNavigationTargetAction.create = create;
|
|
4328
4445
|
})(SetResolvedNavigationTargetAction || (exports.SetResolvedNavigationTargetAction = SetResolvedNavigationTargetAction = {}));
|
|
@@ -4431,7 +4548,11 @@ var RequestEditValidationAction;
|
|
|
4431
4548
|
}
|
|
4432
4549
|
RequestEditValidationAction.is = is;
|
|
4433
4550
|
function create(options) {
|
|
4434
|
-
return
|
|
4551
|
+
return {
|
|
4552
|
+
kind: RequestEditValidationAction.KIND,
|
|
4553
|
+
requestId: '',
|
|
4554
|
+
...options
|
|
4555
|
+
};
|
|
4435
4556
|
}
|
|
4436
4557
|
RequestEditValidationAction.create = create;
|
|
4437
4558
|
})(RequestEditValidationAction || (exports.RequestEditValidationAction = RequestEditValidationAction = {}));
|
|
@@ -4443,7 +4564,12 @@ var SetEditValidationResultAction;
|
|
|
4443
4564
|
}
|
|
4444
4565
|
SetEditValidationResultAction.is = is;
|
|
4445
4566
|
function create(status, options = {}) {
|
|
4446
|
-
return
|
|
4567
|
+
return {
|
|
4568
|
+
kind: SetEditValidationResultAction.KIND,
|
|
4569
|
+
responseId: '',
|
|
4570
|
+
status,
|
|
4571
|
+
...options
|
|
4572
|
+
};
|
|
4447
4573
|
}
|
|
4448
4574
|
SetEditValidationResultAction.create = create;
|
|
4449
4575
|
})(SetEditValidationResultAction || (exports.SetEditValidationResultAction = SetEditValidationResultAction = {}));
|
|
@@ -4455,7 +4581,11 @@ var ApplyLabelEditOperation;
|
|
|
4455
4581
|
}
|
|
4456
4582
|
ApplyLabelEditOperation.is = is;
|
|
4457
4583
|
function create(options) {
|
|
4458
|
-
return
|
|
4584
|
+
return {
|
|
4585
|
+
kind: ApplyLabelEditOperation.KIND,
|
|
4586
|
+
isOperation: true,
|
|
4587
|
+
...options
|
|
4588
|
+
};
|
|
4459
4589
|
}
|
|
4460
4590
|
ApplyLabelEditOperation.create = create;
|
|
4461
4591
|
})(ApplyLabelEditOperation || (exports.ApplyLabelEditOperation = ApplyLabelEditOperation = {}));
|
|
@@ -4553,7 +4683,11 @@ var RequestTypeHintsAction;
|
|
|
4553
4683
|
}
|
|
4554
4684
|
RequestTypeHintsAction.is = is;
|
|
4555
4685
|
function create(options = {}) {
|
|
4556
|
-
return
|
|
4686
|
+
return {
|
|
4687
|
+
kind: RequestTypeHintsAction.KIND,
|
|
4688
|
+
requestId: '',
|
|
4689
|
+
...options
|
|
4690
|
+
};
|
|
4557
4691
|
}
|
|
4558
4692
|
RequestTypeHintsAction.create = create;
|
|
4559
4693
|
})(RequestTypeHintsAction || (exports.RequestTypeHintsAction = RequestTypeHintsAction = {}));
|
|
@@ -4565,7 +4699,11 @@ var SetTypeHintsAction;
|
|
|
4565
4699
|
}
|
|
4566
4700
|
SetTypeHintsAction.is = is;
|
|
4567
4701
|
function create(options) {
|
|
4568
|
-
return
|
|
4702
|
+
return {
|
|
4703
|
+
kind: SetTypeHintsAction.KIND,
|
|
4704
|
+
responseId: '',
|
|
4705
|
+
...options
|
|
4706
|
+
};
|
|
4569
4707
|
}
|
|
4570
4708
|
SetTypeHintsAction.create = create;
|
|
4571
4709
|
})(SetTypeHintsAction || (exports.SetTypeHintsAction = SetTypeHintsAction = {}));
|
|
@@ -4609,7 +4747,11 @@ var CheckEdgeResultAction;
|
|
|
4609
4747
|
}
|
|
4610
4748
|
CheckEdgeResultAction.is = is;
|
|
4611
4749
|
function create(options) {
|
|
4612
|
-
return
|
|
4750
|
+
return {
|
|
4751
|
+
kind: CheckEdgeResultAction.KIND,
|
|
4752
|
+
responseId: '',
|
|
4753
|
+
...options
|
|
4754
|
+
};
|
|
4613
4755
|
}
|
|
4614
4756
|
CheckEdgeResultAction.create = create;
|
|
4615
4757
|
})(CheckEdgeResultAction || (exports.CheckEdgeResultAction = CheckEdgeResultAction = {}));
|
|
@@ -4671,7 +4813,13 @@ var RequestMarkersAction;
|
|
|
4671
4813
|
}
|
|
4672
4814
|
RequestMarkersAction.is = is;
|
|
4673
4815
|
function create(elementsIDs, options = {}) {
|
|
4674
|
-
return
|
|
4816
|
+
return {
|
|
4817
|
+
kind: RequestMarkersAction.KIND,
|
|
4818
|
+
requestId: '',
|
|
4819
|
+
elementsIDs,
|
|
4820
|
+
reason: MarkersReason.BATCH,
|
|
4821
|
+
...options
|
|
4822
|
+
};
|
|
4675
4823
|
}
|
|
4676
4824
|
RequestMarkersAction.create = create;
|
|
4677
4825
|
})(RequestMarkersAction || (exports.RequestMarkersAction = RequestMarkersAction = {}));
|
|
@@ -4683,7 +4831,13 @@ var SetMarkersAction;
|
|
|
4683
4831
|
}
|
|
4684
4832
|
SetMarkersAction.is = is;
|
|
4685
4833
|
function create(markers, options = {}) {
|
|
4686
|
-
return
|
|
4834
|
+
return {
|
|
4835
|
+
kind: SetMarkersAction.KIND,
|
|
4836
|
+
responseId: '',
|
|
4837
|
+
markers,
|
|
4838
|
+
reason: MarkersReason.BATCH,
|
|
4839
|
+
...options
|
|
4840
|
+
};
|
|
4687
4841
|
}
|
|
4688
4842
|
SetMarkersAction.create = create;
|
|
4689
4843
|
})(SetMarkersAction || (exports.SetMarkersAction = SetMarkersAction = {}));
|
|
@@ -4726,7 +4880,11 @@ var RequestModelAction;
|
|
|
4726
4880
|
}
|
|
4727
4881
|
RequestModelAction.is = is;
|
|
4728
4882
|
function create(options = {}) {
|
|
4729
|
-
return
|
|
4883
|
+
return {
|
|
4884
|
+
kind: RequestModelAction.KIND,
|
|
4885
|
+
requestId: '',
|
|
4886
|
+
...options
|
|
4887
|
+
};
|
|
4730
4888
|
}
|
|
4731
4889
|
RequestModelAction.create = create;
|
|
4732
4890
|
})(RequestModelAction || (exports.RequestModelAction = RequestModelAction = {}));
|
|
@@ -4738,7 +4896,12 @@ var SetModelAction;
|
|
|
4738
4896
|
}
|
|
4739
4897
|
SetModelAction.is = is;
|
|
4740
4898
|
function create(newRoot, options = {}) {
|
|
4741
|
-
return
|
|
4899
|
+
return {
|
|
4900
|
+
kind: SetModelAction.KIND,
|
|
4901
|
+
responseId: '',
|
|
4902
|
+
newRoot,
|
|
4903
|
+
...options
|
|
4904
|
+
};
|
|
4742
4905
|
}
|
|
4743
4906
|
SetModelAction.create = create;
|
|
4744
4907
|
})(SetModelAction || (exports.SetModelAction = SetModelAction = {}));
|
|
@@ -4750,7 +4913,12 @@ var UpdateModelAction;
|
|
|
4750
4913
|
}
|
|
4751
4914
|
UpdateModelAction.is = is;
|
|
4752
4915
|
function create(newRoot, options = {}) {
|
|
4753
|
-
return
|
|
4916
|
+
return {
|
|
4917
|
+
kind: UpdateModelAction.KIND,
|
|
4918
|
+
newRoot,
|
|
4919
|
+
animate: true,
|
|
4920
|
+
...options
|
|
4921
|
+
};
|
|
4754
4922
|
}
|
|
4755
4923
|
UpdateModelAction.create = create;
|
|
4756
4924
|
})(UpdateModelAction || (exports.UpdateModelAction = UpdateModelAction = {}));
|
|
@@ -4847,7 +5015,12 @@ var RequestBoundsAction;
|
|
|
4847
5015
|
}
|
|
4848
5016
|
RequestBoundsAction.is = is;
|
|
4849
5017
|
function create(newRoot, options = {}) {
|
|
4850
|
-
return
|
|
5018
|
+
return {
|
|
5019
|
+
kind: RequestBoundsAction.KIND,
|
|
5020
|
+
requestId: '',
|
|
5021
|
+
newRoot,
|
|
5022
|
+
...options
|
|
5023
|
+
};
|
|
4851
5024
|
}
|
|
4852
5025
|
RequestBoundsAction.create = create;
|
|
4853
5026
|
})(RequestBoundsAction || (exports.RequestBoundsAction = RequestBoundsAction = {}));
|
|
@@ -4859,7 +5032,12 @@ var ComputedBoundsAction;
|
|
|
4859
5032
|
}
|
|
4860
5033
|
ComputedBoundsAction.is = is;
|
|
4861
5034
|
function create(bounds, options = {}) {
|
|
4862
|
-
return
|
|
5035
|
+
return {
|
|
5036
|
+
kind: ComputedBoundsAction.KIND,
|
|
5037
|
+
responseId: '',
|
|
5038
|
+
bounds,
|
|
5039
|
+
...options
|
|
5040
|
+
};
|
|
4863
5041
|
}
|
|
4864
5042
|
ComputedBoundsAction.create = create;
|
|
4865
5043
|
})(ComputedBoundsAction || (exports.ComputedBoundsAction = ComputedBoundsAction = {}));
|
|
@@ -4871,7 +5049,12 @@ var LayoutOperation;
|
|
|
4871
5049
|
}
|
|
4872
5050
|
LayoutOperation.is = is;
|
|
4873
5051
|
function create(elementIds, options = {}) {
|
|
4874
|
-
return
|
|
5052
|
+
return {
|
|
5053
|
+
kind: LayoutOperation.KIND,
|
|
5054
|
+
isOperation: true,
|
|
5055
|
+
elementIds,
|
|
5056
|
+
...options
|
|
5057
|
+
};
|
|
4875
5058
|
}
|
|
4876
5059
|
LayoutOperation.create = create;
|
|
4877
5060
|
})(LayoutOperation || (exports.LayoutOperation = LayoutOperation = {}));
|
|
@@ -4914,7 +5097,10 @@ var SaveModelAction;
|
|
|
4914
5097
|
}
|
|
4915
5098
|
SaveModelAction.is = is;
|
|
4916
5099
|
function create(options = {}) {
|
|
4917
|
-
return
|
|
5100
|
+
return {
|
|
5101
|
+
kind: SaveModelAction.KIND,
|
|
5102
|
+
...options
|
|
5103
|
+
};
|
|
4918
5104
|
}
|
|
4919
5105
|
SaveModelAction.create = create;
|
|
4920
5106
|
})(SaveModelAction || (exports.SaveModelAction = SaveModelAction = {}));
|
|
@@ -4926,7 +5112,11 @@ var SetDirtyStateAction;
|
|
|
4926
5112
|
}
|
|
4927
5113
|
SetDirtyStateAction.is = is;
|
|
4928
5114
|
function create(isDirty, options = {}) {
|
|
4929
|
-
return
|
|
5115
|
+
return {
|
|
5116
|
+
kind: SetDirtyStateAction.KIND,
|
|
5117
|
+
isDirty,
|
|
5118
|
+
...options
|
|
5119
|
+
};
|
|
4930
5120
|
}
|
|
4931
5121
|
SetDirtyStateAction.create = create;
|
|
4932
5122
|
})(SetDirtyStateAction || (exports.SetDirtyStateAction = SetDirtyStateAction = {}));
|
|
@@ -4938,7 +5128,11 @@ var RequestExportSvgAction;
|
|
|
4938
5128
|
}
|
|
4939
5129
|
RequestExportSvgAction.is = is;
|
|
4940
5130
|
function create(options = {}) {
|
|
4941
|
-
return
|
|
5131
|
+
return {
|
|
5132
|
+
kind: RequestExportSvgAction.KIND,
|
|
5133
|
+
requestId: '',
|
|
5134
|
+
...options
|
|
5135
|
+
};
|
|
4942
5136
|
}
|
|
4943
5137
|
RequestExportSvgAction.create = create;
|
|
4944
5138
|
})(RequestExportSvgAction || (exports.RequestExportSvgAction = RequestExportSvgAction = {}));
|
|
@@ -4950,7 +5144,12 @@ var ExportSvgAction;
|
|
|
4950
5144
|
}
|
|
4951
5145
|
ExportSvgAction.is = is;
|
|
4952
5146
|
function create(svg, options = {}) {
|
|
4953
|
-
return
|
|
5147
|
+
return {
|
|
5148
|
+
kind: ExportSvgAction.KIND,
|
|
5149
|
+
svg,
|
|
5150
|
+
responseId: '',
|
|
5151
|
+
...options
|
|
5152
|
+
};
|
|
4954
5153
|
}
|
|
4955
5154
|
ExportSvgAction.create = create;
|
|
4956
5155
|
})(ExportSvgAction || (exports.ExportSvgAction = ExportSvgAction = {}));
|
|
@@ -5009,7 +5208,11 @@ var ChangeContainerOperation;
|
|
|
5009
5208
|
}
|
|
5010
5209
|
ChangeContainerOperation.is = is;
|
|
5011
5210
|
function create(options) {
|
|
5012
|
-
return
|
|
5211
|
+
return {
|
|
5212
|
+
kind: ChangeContainerOperation.KIND,
|
|
5213
|
+
isOperation: true,
|
|
5214
|
+
...options
|
|
5215
|
+
};
|
|
5013
5216
|
}
|
|
5014
5217
|
ChangeContainerOperation.create = create;
|
|
5015
5218
|
})(ChangeContainerOperation || (exports.ChangeContainerOperation = ChangeContainerOperation = {}));
|
|
@@ -5052,7 +5255,11 @@ var TriggerNodeCreationAction;
|
|
|
5052
5255
|
}
|
|
5053
5256
|
TriggerNodeCreationAction.is = is;
|
|
5054
5257
|
function create(elementTypeId, options) {
|
|
5055
|
-
return
|
|
5258
|
+
return {
|
|
5259
|
+
kind: TriggerNodeCreationAction.KIND,
|
|
5260
|
+
elementTypeId,
|
|
5261
|
+
...options
|
|
5262
|
+
};
|
|
5056
5263
|
}
|
|
5057
5264
|
TriggerNodeCreationAction.create = create;
|
|
5058
5265
|
})(TriggerNodeCreationAction || (exports.TriggerNodeCreationAction = TriggerNodeCreationAction = {}));
|
|
@@ -5064,7 +5271,11 @@ var TriggerEdgeCreationAction;
|
|
|
5064
5271
|
}
|
|
5065
5272
|
TriggerEdgeCreationAction.is = is;
|
|
5066
5273
|
function create(elementTypeId, options = {}) {
|
|
5067
|
-
return
|
|
5274
|
+
return {
|
|
5275
|
+
kind: TriggerEdgeCreationAction.KIND,
|
|
5276
|
+
elementTypeId,
|
|
5277
|
+
...options
|
|
5278
|
+
};
|
|
5068
5279
|
}
|
|
5069
5280
|
TriggerEdgeCreationAction.create = create;
|
|
5070
5281
|
})(TriggerEdgeCreationAction || (exports.TriggerEdgeCreationAction = TriggerEdgeCreationAction = {}));
|
|
@@ -5218,7 +5429,13 @@ var CenterAction;
|
|
|
5218
5429
|
}
|
|
5219
5430
|
CenterAction.is = is;
|
|
5220
5431
|
function create(elementIds, options = {}) {
|
|
5221
|
-
return
|
|
5432
|
+
return {
|
|
5433
|
+
kind: CenterAction.KIND,
|
|
5434
|
+
animate: true,
|
|
5435
|
+
retainZoom: false,
|
|
5436
|
+
elementIds,
|
|
5437
|
+
...options
|
|
5438
|
+
};
|
|
5222
5439
|
}
|
|
5223
5440
|
CenterAction.create = create;
|
|
5224
5441
|
})(CenterAction || (exports.CenterAction = CenterAction = {}));
|
|
@@ -5230,7 +5447,12 @@ var FitToScreenAction;
|
|
|
5230
5447
|
}
|
|
5231
5448
|
FitToScreenAction.is = is;
|
|
5232
5449
|
function create(elementIds, options = {}) {
|
|
5233
|
-
return
|
|
5450
|
+
return {
|
|
5451
|
+
kind: FitToScreenAction.KIND,
|
|
5452
|
+
animate: true,
|
|
5453
|
+
elementIds,
|
|
5454
|
+
...options
|
|
5455
|
+
};
|
|
5234
5456
|
}
|
|
5235
5457
|
FitToScreenAction.create = create;
|
|
5236
5458
|
})(FitToScreenAction || (exports.FitToScreenAction = FitToScreenAction = {}));
|
|
@@ -6949,11 +7171,19 @@ geometry_1.Bounds.isBelow = (leftBounds, rightBounds) => geometry_1.Bounds.top(l
|
|
|
6949
7171
|
geometry_1.Bounds.isBefore = (leftBounds, rightBounds) => geometry_1.Bounds.left(leftBounds) < geometry_1.Bounds.left(rightBounds);
|
|
6950
7172
|
geometry_1.Bounds.isAfter = (leftBounds, rightBounds) => geometry_1.Bounds.left(leftBounds) >= geometry_1.Bounds.left(rightBounds);
|
|
6951
7173
|
geometry_1.Bounds.sortBy = (rankFunc, ...bounds) => bounds.sort((left, right) => rankFunc(left) - rankFunc(right));
|
|
6952
|
-
geometry_1.Bounds.from = (topLeft, bottomRight) => (
|
|
7174
|
+
geometry_1.Bounds.from = (topLeft, bottomRight) => ({
|
|
7175
|
+
...topLeft,
|
|
7176
|
+
width: bottomRight.x - topLeft.x,
|
|
7177
|
+
height: bottomRight.y - topLeft.y
|
|
7178
|
+
});
|
|
6953
7179
|
geometry_1.Bounds.position = geometry_1.Bounds.topLeft;
|
|
6954
7180
|
geometry_1.Bounds.dimension = (bounds) => ({ width: bounds.width, height: bounds.height });
|
|
6955
7181
|
geometry_1.Bounds.move = geometry_1.Bounds.translate;
|
|
6956
|
-
geometry_1.Bounds.resize = (bounds, delta) => (
|
|
7182
|
+
geometry_1.Bounds.resize = (bounds, delta) => ({
|
|
7183
|
+
...bounds,
|
|
7184
|
+
width: bounds.width + delta.width,
|
|
7185
|
+
height: bounds.height + delta.height
|
|
7186
|
+
});
|
|
6957
7187
|
|
|
6958
7188
|
|
|
6959
7189
|
/***/ }),
|
|
@@ -6998,7 +7228,11 @@ geometry_1.Dimension.add = (d, a) => ({ width: d.width + a.width, height: d.heig
|
|
|
6998
7228
|
geometry_1.Dimension.subtract = (d, a) => ({ width: d.width - a.width, height: d.height - a.height });
|
|
6999
7229
|
geometry_1.Dimension.multiplyMeasure = (d, m) => ({ width: d.width * m, height: d.height * m });
|
|
7000
7230
|
geometry_1.Dimension.divideMeasure = (d, m) => ({ width: d.width / m, height: d.height / m });
|
|
7001
|
-
geometry_1.Dimension.map = (dimension, callbackfn) => (
|
|
7231
|
+
geometry_1.Dimension.map = (dimension, callbackfn) => ({
|
|
7232
|
+
...dimension,
|
|
7233
|
+
width: callbackfn(dimension.width, 'width'),
|
|
7234
|
+
height: callbackfn(dimension.height, 'height')
|
|
7235
|
+
});
|
|
7002
7236
|
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);
|
|
7003
7237
|
geometry_1.Dimension.fromPoint = (point) => ({ width: point.x, height: point.y });
|
|
7004
7238
|
geometry_1.Dimension.area = (dimension) => dimension.width * dimension.height;
|
|
@@ -7043,7 +7277,11 @@ geometry_1.Point.isValid = (point) => point !== undefined && !isNaN(point.x) &&
|
|
|
7043
7277
|
geometry_1.Point.abs = (point) => geometry_1.Point.map(point, Math.abs);
|
|
7044
7278
|
geometry_1.Point.divideScalar = (point, scalar) => geometry_1.Point.map(point, coordinate => coordinate / scalar);
|
|
7045
7279
|
geometry_1.Point.multiplyScalar = (point, scalar) => geometry_1.Point.map(point, coordinate => coordinate * scalar);
|
|
7046
|
-
geometry_1.Point.map = (point, callbackfn) => (
|
|
7280
|
+
geometry_1.Point.map = (point, callbackfn) => ({
|
|
7281
|
+
...point,
|
|
7282
|
+
x: callbackfn(point.x, 'x'),
|
|
7283
|
+
y: callbackfn(point.y, 'y')
|
|
7284
|
+
});
|
|
7047
7285
|
geometry_1.Point.snapToGrid = (point, grid, gridOrigin) => {
|
|
7048
7286
|
if (gridOrigin) {
|
|
7049
7287
|
// move point relative to grid origin and then restore after snapping
|
|
@@ -7611,7 +7849,11 @@ var Vector;
|
|
|
7611
7849
|
* @returns the mapped vector
|
|
7612
7850
|
*/
|
|
7613
7851
|
function map(vector, callbackfn) {
|
|
7614
|
-
return
|
|
7852
|
+
return {
|
|
7853
|
+
...vector,
|
|
7854
|
+
x: callbackfn(vector.x, 'x'),
|
|
7855
|
+
y: callbackfn(vector.y, 'y')
|
|
7856
|
+
};
|
|
7615
7857
|
}
|
|
7616
7858
|
Vector.map = map;
|
|
7617
7859
|
/**
|
|
@@ -45374,7 +45616,7 @@ exports.GHtmlRootBuilder = GHtmlRootBuilder;
|
|
|
45374
45616
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45375
45617
|
exports.GIssueMarkerBuilder = exports.GIssueMarker = void 0;
|
|
45376
45618
|
/********************************************************************************
|
|
45377
|
-
* Copyright (c) 2022-
|
|
45619
|
+
* Copyright (c) 2022-2022 STMicroelectronics and others.
|
|
45378
45620
|
*
|
|
45379
45621
|
* This program and the accompanying materials are made available under the
|
|
45380
45622
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -45707,7 +45949,7 @@ class GModelRootBuilder extends GModelElementBuilder {
|
|
|
45707
45949
|
canvasBounds(positionOrBounds, size) {
|
|
45708
45950
|
let bounds;
|
|
45709
45951
|
if (size) {
|
|
45710
|
-
bounds =
|
|
45952
|
+
bounds = { ...positionOrBounds, ...size };
|
|
45711
45953
|
}
|
|
45712
45954
|
else {
|
|
45713
45955
|
bounds = positionOrBounds;
|
|
@@ -46379,7 +46621,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
46379
46621
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
46380
46622
|
exports.GlspElkLayoutEngine = exports.ElkFactory = void 0;
|
|
46381
46623
|
/********************************************************************************
|
|
46382
|
-
* Copyright (c) 2018-
|
|
46624
|
+
* Copyright (c) 2018-2024 TypeFox and others.
|
|
46383
46625
|
* This program and the accompanying materials are made available under the
|
|
46384
46626
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
46385
46627
|
* http://www.eclipse.org/legal/epl-2.0.
|
|
@@ -46439,7 +46681,7 @@ let GlspElkLayoutEngine = class GlspElkLayoutEngine {
|
|
|
46439
46681
|
return this.transformEdge(model);
|
|
46440
46682
|
}
|
|
46441
46683
|
else if (model instanceof server_1.GLabel) {
|
|
46442
|
-
return this.
|
|
46684
|
+
return this.transformLabel(model);
|
|
46443
46685
|
}
|
|
46444
46686
|
else if (model instanceof server_1.GPort) {
|
|
46445
46687
|
return this.transformPort(model);
|
|
@@ -46814,7 +47056,10 @@ exports.AbstractLayoutConfigurator = AbstractLayoutConfigurator = __decorate([
|
|
|
46814
47056
|
let FallbackLayoutConfigurator = class FallbackLayoutConfigurator extends AbstractLayoutConfigurator {
|
|
46815
47057
|
constructor(algorithms, defaultLayoutOptions = {}) {
|
|
46816
47058
|
super();
|
|
46817
|
-
this.fallbackGraphOptions =
|
|
47059
|
+
this.fallbackGraphOptions = {
|
|
47060
|
+
'elk.algorithm': algorithms[0],
|
|
47061
|
+
...defaultLayoutOptions
|
|
47062
|
+
};
|
|
46818
47063
|
}
|
|
46819
47064
|
graphOptions(sgraph) {
|
|
46820
47065
|
return this.fallbackGraphOptions;
|
|
@@ -47742,7 +47987,12 @@ var NoOPSyntax;
|
|
|
47742
47987
|
'Constant value bindings are effectively Singleton bindings.');
|
|
47743
47988
|
return syntax;
|
|
47744
47989
|
};
|
|
47745
|
-
return
|
|
47990
|
+
return {
|
|
47991
|
+
...syntax,
|
|
47992
|
+
inSingletonScope: () => noOpReturn('Singleton'),
|
|
47993
|
+
inRequestScope: () => noOpReturn('Request'),
|
|
47994
|
+
inTransientScope: () => noOpReturn('Transient')
|
|
47995
|
+
};
|
|
47746
47996
|
}
|
|
47747
47997
|
NoOPSyntax.constantValueSyntax = constantValueSyntax;
|
|
47748
47998
|
function serviceSyntax(serviceIdentifier, target) {
|
|
@@ -50678,7 +50928,7 @@ exports.ProgressService = Symbol('ProgressService');
|
|
|
50678
50928
|
let DefaultProgressService = class DefaultProgressService {
|
|
50679
50929
|
start(title, options) {
|
|
50680
50930
|
const progressId = uuid.v4();
|
|
50681
|
-
this.actionDispatcher.dispatch(protocol_1.StartProgressAction.create(
|
|
50931
|
+
this.actionDispatcher.dispatch(protocol_1.StartProgressAction.create({ progressId, title, ...options }));
|
|
50682
50932
|
return {
|
|
50683
50933
|
update: updateOptions => this.actionDispatcher.dispatch(protocol_1.UpdateProgressAction.create(progressId, updateOptions)),
|
|
50684
50934
|
end: () => this.actionDispatcher.dispatch(protocol_1.EndProgressAction.create(progressId))
|
|
@@ -52321,13 +52571,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
52321
52571
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
52322
52572
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
52323
52573
|
};
|
|
52324
|
-
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
52325
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
52326
|
-
var m = o[Symbol.asyncIterator], i;
|
|
52327
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
52328
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
52329
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
52330
|
-
};
|
|
52331
52574
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
52332
52575
|
exports.CompoundOperationHandler = void 0;
|
|
52333
52576
|
/********************************************************************************
|
|
@@ -52361,26 +52604,13 @@ let CompoundOperationHandler = class CompoundOperationHandler extends operation_
|
|
|
52361
52604
|
this.operationType = protocol_1.CompoundOperation.KIND;
|
|
52362
52605
|
}
|
|
52363
52606
|
async createCommand(operation) {
|
|
52364
|
-
var _a, e_1, _b, _c;
|
|
52365
52607
|
const maybeCommands = operation.operationList.map(op => { var _a; return (_a = this.operationHandlerRegistry.getOperationHandler(op)) === null || _a === void 0 ? void 0 : _a.execute(op); });
|
|
52366
52608
|
const commands = [];
|
|
52367
|
-
|
|
52368
|
-
|
|
52369
|
-
|
|
52370
|
-
_d = false;
|
|
52371
|
-
const command = _c;
|
|
52372
|
-
if (command) {
|
|
52373
|
-
commands.push(command);
|
|
52374
|
-
}
|
|
52609
|
+
for await (const command of maybeCommands) {
|
|
52610
|
+
if (command) {
|
|
52611
|
+
commands.push(command);
|
|
52375
52612
|
}
|
|
52376
52613
|
}
|
|
52377
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
52378
|
-
finally {
|
|
52379
|
-
try {
|
|
52380
|
-
if (!_d && !_a && (_b = maybeCommands_1.return)) await _b.call(maybeCommands_1);
|
|
52381
|
-
}
|
|
52382
|
-
finally { if (e_1) throw e_1.error; }
|
|
52383
|
-
}
|
|
52384
52614
|
return new command_1.CompoundCommand(commands);
|
|
52385
52615
|
}
|
|
52386
52616
|
};
|
|
@@ -54667,7 +54897,7 @@ function createCliParser(options = exports.defaultLaunchOptions) {
|
|
|
54667
54897
|
exports.createCliParser = createCliParser;
|
|
54668
54898
|
function parse(command, defaultOptions, argv) {
|
|
54669
54899
|
command.parse(argv);
|
|
54670
|
-
return
|
|
54900
|
+
return { ...defaultOptions, ...command.opts() };
|
|
54671
54901
|
}
|
|
54672
54902
|
exports.parse = parse;
|
|
54673
54903
|
function processLogLevel(value) {
|
|
@@ -54726,7 +54956,11 @@ exports.processPort = exports.createSocketCliParser = exports.defaultSocketLaunc
|
|
|
54726
54956
|
********************************************************************************/
|
|
54727
54957
|
const cmd = __webpack_require__(/*! commander */ "../../packages/server/node_modules/commander/index.js");
|
|
54728
54958
|
const cli_parser_1 = __webpack_require__(/*! ./cli-parser */ "../../packages/server/lib/node/launch/cli-parser.js");
|
|
54729
|
-
exports.defaultSocketLaunchOptions =
|
|
54959
|
+
exports.defaultSocketLaunchOptions = {
|
|
54960
|
+
...cli_parser_1.defaultLaunchOptions,
|
|
54961
|
+
port: 0,
|
|
54962
|
+
host: '127.0.0.1'
|
|
54963
|
+
};
|
|
54730
54964
|
function createSocketCliParser(defaultOptions = exports.defaultSocketLaunchOptions) {
|
|
54731
54965
|
const parser = (0, cli_parser_1.createCliParser)(defaultOptions);
|
|
54732
54966
|
parser.command
|
|
@@ -54917,7 +55151,7 @@ let WebSocketServerLauncher = class WebSocketServerLauncher extends jsonrpc_serv
|
|
|
54917
55151
|
const port = !options.port || options.port === 0 ? await getFreePort() : options.port;
|
|
54918
55152
|
const path = options.path.startsWith('/') ? options.path : `/${options.path}`;
|
|
54919
55153
|
const server = this.createHttpServer(port, options.host);
|
|
54920
|
-
return
|
|
55154
|
+
return { ...options, port, path, server };
|
|
54921
55155
|
}
|
|
54922
55156
|
createHttpServer(port, host) {
|
|
54923
55157
|
const server = http.createServer((req, res) => {
|