backend-plus 1.16.19 → 1.16.20

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.
@@ -846,11 +846,11 @@ myOwn.DataColumnGrid.prototype.cellAttributes = function cellAttributes(specific
846
846
  attr["my-mandatory"]="normal";
847
847
  }
848
848
  }
849
- if(grid.connector.fixedField[fieldDef.name]){
849
+ if(grid.connector.fixedField[fieldDef.name] != null){
850
850
  attr["inherited-pk-column"]="yes";
851
851
  }
852
852
  if(fieldDef.referencesField){
853
- if(grid.connector.fixedField[fieldDef.referencesField]){
853
+ if(grid.connector.fixedField[fieldDef.referencesField] != null){
854
854
  attr["inherited-pk-column"]="yes";
855
855
  }
856
856
  if(grid.def.field[fieldDef.referencesField].isPk){
@@ -2008,8 +2008,8 @@ myOwn.TableGrid.prototype.prepareGrid = function prepareGrid(){
2008
2008
  grid.actualName = (grid.def.gridAlias || grid.def.name) + (grid.connector.fixedFields.length ? '-' + JSON4all.stringify(grid.connector.fixedFields.map(function(pair){ return pair.value; })) : '')
2009
2009
  var captionTitle = grid.def.title;
2010
2010
  grid.connector.fixedFields.forEach(function(pair){
2011
- var toCaption = grid.def.field[pair.fieldName].toCaption || my.config.config['grid-smart-caption']
2012
- if(toCaption && pair.value){
2011
+ var toCaption = grid.def.field[pair.fieldName].toCaption ?? my.config.config['grid-smart-caption']
2012
+ if(toCaption && pair.value != null){
2013
2013
  var typeName = grid.def.field[pair.fieldName].typeName;
2014
2014
  captionTitle += ' '
2015
2015
  if(toCaption == 'labeled' || toCaption != 'alone' && (typeName == 'boolean' || typeName == 'integer' || typeName == 'bigint' || typeName == 'decimal')){
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.16.19",
4
+ "version": "1.16.20",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -31,7 +31,7 @@
31
31
  "@upgraded/locate-path": "^6.0.0-alfa.1",
32
32
  "ajax-best-promise": "^0.3.7",
33
33
  "backend-skins": "^0.1.15",
34
- "best-globals": "^1.0.3",
34
+ "best-globals": "^1.0.4",
35
35
  "big.js": "^6.2.1",
36
36
  "body-parser": "^1.20.1",
37
37
  "cast-error": "^0.1.0",
@@ -78,11 +78,11 @@
78
78
  "@types/expect.js": "~0.3.29",
79
79
  "@types/express": "^4.17.15",
80
80
  "@types/express-useragent": "^1.0.2",
81
- "@types/fs-extra": "^9.0.13",
81
+ "@types/fs-extra": "^11.0.0",
82
82
  "@types/js-yaml": "^4.0.5",
83
83
  "@types/mocha": "^10.0.1",
84
84
  "@types/multiparty": "~0.0.33",
85
- "@types/node": "^18.11.17",
85
+ "@types/node": "^18.11.18",
86
86
  "@types/nodemailer": "^6.4.7",
87
87
  "@types/numeral": "~2.0.2",
88
88
  "@types/session-file-store": "^1.2.2",
@@ -102,7 +102,7 @@
102
102
  "puppeteer": "^19.4.1",
103
103
  "sinon": "^15.0.1",
104
104
  "supertest": "^6.3.3",
105
- "types.d.ts": "~0.6.9",
105
+ "types.d.ts": "~0.6.11",
106
106
  "typescript": "^4.9.4",
107
107
  "why-is-node-running": "^2.2.2"
108
108
  },
@@ -582,7 +582,7 @@ function noChange(x){ return x; }
582
582
  myAjax.UriSearchToObjectParams={
583
583
  i :{ showInMenu:true , encode:function(value,menu){ return menu.name?(menu.parents||[]).concat(menu.name).join(','):value }},
584
584
  fc :{ encode:function(x){ return JSON.stringify(x); }, U:function(x){ return JSON.parse(x)} },
585
- ff :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return JSON.parse(x)} },
585
+ ff :{ encode:function(x){ return json4all.stringify(x); }, decode:function(x){ return json4all.parse(x)} },
586
586
  up :{ encode:function(x){ return json4all.stringify(x); }, decode:function(x){ return json4all.parse(x)} },
587
587
  pf :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return JSON.parse(x)} },
588
588
  today :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return bestGlobals.date.iso((x+'').substr(0,10))} },
@@ -592,7 +592,7 @@ myAjax.UriSearchToObjectParams={
592
592
  showParams :{ hide:true },
593
593
  parents :{ hide:true },
594
594
  button :{ hide:true },
595
- fixedFields :{ varName:'ff' , encode:function(pairs){ return JSON.stringify(likeAr.toPlainObject(pairs, 'fieldName')); }},
595
+ fixedFields :{ varName:'ff' , encode:function(pairs){ return json4all.stringify(likeAr.toPlainObject(pairs, 'fieldName')); }},
596
596
  detailing :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return JSON.parse(x)} },
597
597
  }
598
598