Comparing version 1.9.1 to 1.9.2
@@ -33,5 +33,6 @@ import { CommandInputParameter } from "../../mappings/d2sb/CommandInputParameter"; | ||
getValueFrom(): ExpressionModel; | ||
hasInputBinding(): boolean; | ||
createInputBinding(): void; | ||
removeInputBinding(): void; | ||
readonly isBound: boolean; | ||
validate(): Validation; | ||
} |
@@ -175,6 +175,4 @@ "use strict"; | ||
CommandInputParameterModel.prototype.setValueFrom = function (value) { | ||
var _this = this; | ||
if (!this.inputBinding) { | ||
this.inputBinding = new CommandLineBindingModel_1.CommandLineBindingModel(this.loc + ".inputBinding", {}); | ||
this.inputBinding.setValidationCallback(function (err) { return _this.updateValidity(err); }); | ||
this.createInputBinding(); | ||
} | ||
@@ -186,4 +184,6 @@ this.inputBinding.setValueFrom(value); | ||
}; | ||
CommandInputParameterModel.prototype.hasInputBinding = function () { | ||
return this.inputBinding !== undefined && this.inputBinding !== null; | ||
CommandInputParameterModel.prototype.createInputBinding = function () { | ||
var _this = this; | ||
this.inputBinding = new CommandLineBindingModel_1.CommandLineBindingModel(this.loc + ".inputBinding", {}); | ||
this.inputBinding.setValidationCallback(function (err) { return _this.updateValidity(err); }); | ||
}; | ||
@@ -193,2 +193,9 @@ CommandInputParameterModel.prototype.removeInputBinding = function () { | ||
}; | ||
Object.defineProperty(CommandInputParameterModel.prototype, "isBound", { | ||
get: function () { | ||
return this.inputBinding !== undefined && this.inputBinding !== null; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
//@todo(maya) implement validation | ||
@@ -195,0 +202,0 @@ CommandInputParameterModel.prototype.validate = function () { |
{ | ||
"name": "cwlts", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"description": "TypeScript data model for Common Workflow Language", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1337213
32142