backend-plus 1.18.7 → 1.18.8

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.
@@ -39,7 +39,7 @@ myOwn.i18n.messages.es=changing(myOwn.i18n.messages.es, {
39
39
  myOwn.wScreens.table = function(addrParams){
40
40
  setTimeout(function(){
41
41
  var layout = document.getElementById('main_layout');
42
- var opts={tableDef:{}};
42
+ var opts={tableDef: addrParams.td ?? {}};
43
43
  if(addrParams.ff){
44
44
  if(addrParams.ff instanceof Array){
45
45
  opts.fixedFields=addrParams.ff;
@@ -123,6 +123,7 @@ export type MenuInfoTable = {
123
123
  ff?:{fieldName:string, value:any}[]
124
124
  fc?:{fieldName:string, operator:string, value:any}[]
125
125
  pf?:any
126
+ td?:TableDefinition
126
127
  detailing?:any
127
128
  } & MenuInfoMinimo;
128
129
  export type MenuInfoProc={
@@ -135,7 +136,7 @@ export type MenuInfoPath={
135
136
  path:string
136
137
  } & MenuInfoMinimo;
137
138
  export interface ClientModuleDefinition{
138
- type:'js'|'css'
139
+ type:'js'|'css'|'ttf'
139
140
  module?:string // module where to search in node_modules (node_modules/module/modPath/file) to serve
140
141
  modPath?:string // path inside module where to find file to serve
141
142
  src?:string // full path where browser search file (path/file)
@@ -345,12 +346,14 @@ export type UnloggedRequest = {
345
346
  version?:string
346
347
  }
347
348
  }
348
- export type OptsClientPage = {
349
+ export interface OptsClientPage {
349
350
  hideBEPlusInclusions?:boolean
350
351
  skipMenu?:boolean
351
352
  manifestPath?:string
353
+ webManifestPath?:string
352
354
  extraFiles?:ClientModuleDefinition[]
353
355
  icon?:string
356
+ icons?:Record<string,string>
354
357
  }
355
358
 
356
359
  export type DumpOptions={complete?:boolean, skipEnance?:boolean, disableDBFunctions?:boolean}
@@ -2466,7 +2466,9 @@ AppBackend.prototype.dumpDbCreateDatabase = function dumpDbCreateDatabase(){
2466
2466
  throw new Error('Lack of config.db.password in local-config');
2467
2467
  }
2468
2468
  lines.push("create user "+db.quoteIdent(be.config.db.user)+" password "+db.quoteLiteral(be.config.db.password)+";");
2469
- lines.push("create database "+db.quoteIdent(be.config.db.database)+" owner "+owner+";");
2469
+ lines.push("create database "+db.quoteIdent(be.config.db.database)+" owner "+owner+
2470
+ (be.config.db.tablespace?" tablespace "+db.quoteIdent(be.config.db.tablespace):"")+
2471
+ ";");
2470
2472
  lines.push("grant connect, temporary on database "+db.quoteIdent(be.config.db.database)+" to "+db.quoteIdent(be.config.db.user)+";");
2471
2473
  lines.push("\\c "+db.quoteIdent(be.config.db.database));
2472
2474
  return fs.writeFile('local-db-dump-create-db.sql', lines.join('\n')+'\n');
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.18.7",
4
+ "version": "1.18.8",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -584,7 +584,8 @@ myAjax.UriSearchToObjectParams={
584
584
  fc :{ encode:function(x){ return JSON.stringify(x); }, U:function(x){ return JSON.parse(x)} },
585
585
  ff :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
586
586
  up :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
587
- pf :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return JSON.parse(x)} },
587
+ pf :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return JSON.parse(x)} },
588
+ td :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
588
589
  today :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return bestGlobals.date.iso((x+'').substr(0,10))} },
589
590
  section :{ showInMenu:true , encode:noChange , decode:noChange },
590
591
  directUrl :{ hide:true },