backend-plus 1.18.11 → 1.18.13
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-tables.js +11 -8
- package/package.json +7 -7
- package/unlogged/my-ajax.js +2 -2
package/for-client/my-tables.js
CHANGED
|
@@ -615,6 +615,7 @@ myOwn.tableGrid = function tableGrid(tableName, mainElement, opts){
|
|
|
615
615
|
})
|
|
616
616
|
};
|
|
617
617
|
var tick = Math.random();
|
|
618
|
+
var thereIsANewRecord = grid.depots.filter(depot => depot.status == 'new').length;
|
|
618
619
|
rows.forEach(function(row){
|
|
619
620
|
if (my.skipTimeStamp(row, timeStamp)) return;
|
|
620
621
|
var primaryKeyValuesForRow = getPrimaryKeyValues(primaryKey, row);
|
|
@@ -631,7 +632,7 @@ myOwn.tableGrid = function tableGrid(tableName, mainElement, opts){
|
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
634
|
depot.tick = tick
|
|
634
|
-
} else if (!depot) {
|
|
635
|
+
} else if (!depot && !thereIsANewRecord) {
|
|
635
636
|
var depot = grid.createDepotFromRow(row);
|
|
636
637
|
grid.depots.push(depot);
|
|
637
638
|
grid.sortDepotsToDisplay(grid.depots);
|
|
@@ -644,13 +645,15 @@ myOwn.tableGrid = function tableGrid(tableName, mainElement, opts){
|
|
|
644
645
|
},3000);
|
|
645
646
|
}
|
|
646
647
|
})
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
depot.
|
|
652
|
-
|
|
653
|
-
|
|
648
|
+
if(!thereIsANewRecord){
|
|
649
|
+
var i = 0;
|
|
650
|
+
while (i < grid.depots.length) {
|
|
651
|
+
var depot = grid.depots[i];
|
|
652
|
+
if (depot.tick != tick) {
|
|
653
|
+
depot.manager.displayAsDeleted(depot);
|
|
654
|
+
} else {
|
|
655
|
+
i++;
|
|
656
|
+
}
|
|
654
657
|
}
|
|
655
658
|
}
|
|
656
659
|
})
|
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.
|
|
4
|
+
"version": "1.18.13",
|
|
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.4.0",
|
|
33
33
|
"backend-skins": "^0.1.15",
|
|
34
|
-
"best-globals": "^1.1.
|
|
34
|
+
"best-globals": "^1.1.2",
|
|
35
35
|
"big.js": "^6.2.1",
|
|
36
36
|
"body-parser": "^1.20.2",
|
|
37
37
|
"cast-error": "^0.1.0",
|
|
@@ -51,25 +51,25 @@
|
|
|
51
51
|
"like-ar": "^0.3.9",
|
|
52
52
|
"login-plus": "^1.7.1",
|
|
53
53
|
"memorystore": "^1.6.7",
|
|
54
|
-
"mini-tools": "^1.12.
|
|
54
|
+
"mini-tools": "^1.12.1",
|
|
55
55
|
"moment": "^2.29.4",
|
|
56
56
|
"multiparty": "^4.2.3",
|
|
57
|
-
"nodemailer": "^6.9.
|
|
57
|
+
"nodemailer": "^6.9.3",
|
|
58
58
|
"numeral": "^2.0.6",
|
|
59
|
-
"pg-promise-strict": "^1.3.
|
|
59
|
+
"pg-promise-strict": "^1.3.3",
|
|
60
60
|
"pikaday": "^1.8.2",
|
|
61
61
|
"pug": "^3.0.2",
|
|
62
62
|
"read-yaml-promise": "^1.0.2",
|
|
63
63
|
"regexplicit": "^0.1.3",
|
|
64
64
|
"require-bro": "^0.3.1",
|
|
65
65
|
"self-explain": "^0.10.22",
|
|
66
|
-
"serve-content": "^0.3.
|
|
66
|
+
"serve-content": "^0.3.19",
|
|
67
67
|
"session-file-store": "^1.5.0",
|
|
68
68
|
"sql-tools": "^0.1.2",
|
|
69
69
|
"stack-trace": "^0.0.10",
|
|
70
70
|
"stylus": "0.59.0",
|
|
71
71
|
"type-store": "^0.3.1",
|
|
72
|
-
"typed-controls": "^0.
|
|
72
|
+
"typed-controls": "^0.12.0",
|
|
73
73
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
package/unlogged/my-ajax.js
CHANGED
|
@@ -586,7 +586,7 @@ function noChange(x){ return x; }
|
|
|
586
586
|
|
|
587
587
|
myAjax.UriSearchToObjectParams={
|
|
588
588
|
i :{ showInMenu:true , encode:function(value,menu){ return menu.name?(menu.parents||[]).concat(menu.name).join(','):value }},
|
|
589
|
-
fc :{ encode:function(x){ return
|
|
589
|
+
fc :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
|
|
590
590
|
ff :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
|
|
591
591
|
up :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
|
|
592
592
|
pf :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return JSON.parse(x)} },
|
|
@@ -599,7 +599,7 @@ myAjax.UriSearchToObjectParams={
|
|
|
599
599
|
parents :{ hide:true },
|
|
600
600
|
button :{ hide:true },
|
|
601
601
|
fixedFields :{ varName:'ff' , encode:function(pairs){ return json4all.toUrl(likeAr.toPlainObject(pairs, 'fieldName')); }},
|
|
602
|
-
detailing :{ encode:function(x){ return
|
|
602
|
+
detailing :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
myAjax.UriSearchToObject = function UriSearchToObject(locationSearch){
|