backend-plus 2.0.0-rc.20 → 2.0.0-rc.22
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/for-client/my-menu.js +14 -10
- package/for-client/my-websqldb.d.ts +0 -1
- package/lib/backend-plus.d.ts +1 -0
- package/lib/procedures-table.js +4 -1
- package/package.json +6 -6
package/for-client/my-menu.js
CHANGED
|
@@ -291,9 +291,11 @@ myOwn.showPage = function showPage(pageDef){
|
|
|
291
291
|
rightMenu.style.zIndex=300;
|
|
292
292
|
totalLayout.appendChild(rightMenu);
|
|
293
293
|
}
|
|
294
|
-
rightMenu
|
|
295
|
-
|
|
296
|
-
my.
|
|
294
|
+
if (rightMenu != null) {
|
|
295
|
+
rightMenu.onclick=function(){
|
|
296
|
+
if(!my.offline.mode){
|
|
297
|
+
my.rightMenu();
|
|
298
|
+
}
|
|
297
299
|
}
|
|
298
300
|
}
|
|
299
301
|
};
|
|
@@ -539,9 +541,9 @@ myOwn.informDetectedStatus = function informDetectedStatus(statusCode, logged) {
|
|
|
539
541
|
}
|
|
540
542
|
if(statusCode==='notLogged'){
|
|
541
543
|
var notLogged = document.getElementById('not-logged');
|
|
542
|
-
notLogged.style.display='inherit';
|
|
544
|
+
if (notLogged) notLogged.style.display='inherit';
|
|
543
545
|
var activeUser = document.getElementById('active-user');
|
|
544
|
-
activeUser.style.display='none';
|
|
546
|
+
if (activeUser) activeUser.style.display='none';
|
|
545
547
|
}
|
|
546
548
|
}
|
|
547
549
|
|
|
@@ -558,11 +560,13 @@ myOwn.offlineModeRefresh = function offlineModeRefresh(){
|
|
|
558
560
|
/** @type {HTMLImageElement} */
|
|
559
561
|
// @ts-ignore
|
|
560
562
|
var imgLight = document.getElementById('light-airplane');
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
if (imgLight != null) {
|
|
564
|
+
var skin=((my.config||{}).config||{}).skin;
|
|
565
|
+
if(my.offline.mode){
|
|
566
|
+
imgLight.src=my.path.img+'airplane-on.png';
|
|
567
|
+
}else{
|
|
568
|
+
imgLight.src=my.path.img+'airplane-off.png';
|
|
569
|
+
}
|
|
566
570
|
}
|
|
567
571
|
}
|
|
568
572
|
|
package/lib/backend-plus.d.ts
CHANGED
|
@@ -210,6 +210,7 @@ export type FieldDefinition = EditableDbDefinition & {
|
|
|
210
210
|
inherited?:boolean
|
|
211
211
|
nameForUpsert?:string
|
|
212
212
|
alwaysShow?:boolean /* show when appears in fixed fields */
|
|
213
|
+
suggestingKeys?:string[]
|
|
213
214
|
} & ({} | {
|
|
214
215
|
sequence:SequenceDefinition
|
|
215
216
|
nullable:true
|
package/lib/procedures-table.js
CHANGED
|
@@ -717,7 +717,7 @@ ProcedureTables = [
|
|
|
717
717
|
{name: 'replaceNewLineWithSpace'},
|
|
718
718
|
],
|
|
719
719
|
files:{count:1},
|
|
720
|
-
coreFunction:async function(context, parameters, files){
|
|
720
|
+
coreFunction:async function table_upload(context, parameters, files){
|
|
721
721
|
var be=context.be;
|
|
722
722
|
var doing="opening file";
|
|
723
723
|
var skipUnknownFieldsAtImport = coalesce(parameters.skipUnknownFieldsAtImport, be.config.skipUnknownFieldsAtImport);
|
|
@@ -929,6 +929,9 @@ ProcedureTables = [
|
|
|
929
929
|
if(Number.isNaN(value)){
|
|
930
930
|
value=null;
|
|
931
931
|
}
|
|
932
|
+
if (value == null && field.allowEmptyText && ('nullable' in field) && !field.nullable ) {
|
|
933
|
+
value = ''
|
|
934
|
+
}
|
|
932
935
|
if(field.defaultForOtherFields){
|
|
933
936
|
addFieldToOthers(othersArray, field, value);
|
|
934
937
|
}else{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-plus",
|
|
3
3
|
"description": "Backend for the anti Pareto rule",
|
|
4
|
-
"version": "2.0.0-rc.
|
|
4
|
+
"version": "2.0.0-rc.22",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/backend-plus",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@types/js-yaml": "^4.0.9",
|
|
83
83
|
"@types/mocha": "^10.0.7",
|
|
84
84
|
"@types/multiparty": "~0.0.36",
|
|
85
|
-
"@types/node": "^
|
|
85
|
+
"@types/node": "^22.0.0",
|
|
86
86
|
"@types/nodemailer": "^6.4.15",
|
|
87
87
|
"@types/numeral": "~2.0.5",
|
|
88
88
|
"@types/session-file-store": "^1.2.5",
|
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
"karma-ie-launcher": "^1.0.0",
|
|
98
98
|
"karma-mocha": "^2.0.1",
|
|
99
99
|
"kill-9": "~0.4.3",
|
|
100
|
-
"mocha": "^10.
|
|
100
|
+
"mocha": "^10.7.0",
|
|
101
101
|
"nyc": "^17.0.0",
|
|
102
|
-
"puppeteer": "^22.
|
|
102
|
+
"puppeteer": "^22.14.0",
|
|
103
103
|
"sinon": "^18.0.0",
|
|
104
104
|
"supertest": "^7.0.0",
|
|
105
105
|
"types.d.ts": "~0.6.21",
|
|
106
|
-
"typescript": "^5.5.
|
|
107
|
-
"why-is-node-running": "^
|
|
106
|
+
"typescript": "^5.5.4",
|
|
107
|
+
"why-is-node-running": "^3.2.0"
|
|
108
108
|
},
|
|
109
109
|
"engines": {
|
|
110
110
|
"node": ">= 18"
|