backend-plus 1.17.1 → 1.17.2

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.
@@ -2061,7 +2061,8 @@ myOwn.TableGrid.prototype.prepareGrid = function prepareGrid(){
2061
2061
  }
2062
2062
  grid.setInheritedFields = function(depot, filterFun){
2063
2063
  var promiseArray = [];
2064
- grid.def.foreignKeys.filter(filterFun||(x=>x)).forEach(function(fkDef){
2064
+ grid.def.foreignKeys.concat(grid.def.softForeignKeys).filter(filterFun||(x=>x))
2065
+ .filter(x=>!x.noInherit).forEach(function(fkDef){
2065
2066
  var fixedFields = fkDef.fields.map(function(field){
2066
2067
  return {fieldName: field.target, value: depot.row[field.source]};
2067
2068
  })
@@ -238,6 +238,7 @@ export type ForeignKey = {
238
238
  initiallyDeferred?:boolean
239
239
  displayAfterFieldName?:string|boolean
240
240
  forceDeferrable?:boolean
241
+ noInherit?:boolean
241
242
  }
242
243
  export type Constraint = {constraintType:string, consName?:string} & (
243
244
  {constraintType:'unique', fields:string[], where?:string} |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for typed controls",
4
- "version": "1.17.1",
4
+ "version": "1.17.2",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",