backend-plus 2.0.0-rc.6 → 2.0.0-rc.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.
- package/for-client/my-tables.js +4 -4
- package/lib/backend-plus.js +2 -4
- package/package.json +1 -1
package/for-client/my-tables.js
CHANGED
|
@@ -690,16 +690,16 @@ myOwn.tableGrid = function tableGrid(tableName, mainElement, opts){
|
|
|
690
690
|
if (myOwn.config.config['grid-row-retain-moved-or-deleted'] && !force) {
|
|
691
691
|
var depotsToRetain = grid.depots.filter(depot => depot.tick == tick);
|
|
692
692
|
for (depot of depotsToRetain) {
|
|
693
|
-
depot
|
|
693
|
+
depot['$refreshed'] = false
|
|
694
694
|
if (depot.tr && depot.tr.getAttribute('not-here')) depot.tr.removeAttribute('not-here')
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
while (depot = depotsToDelete.pop()) {
|
|
698
698
|
depot.manager.displayAsDeleted(depot, force ? 'change-ff' : 'unknown');
|
|
699
699
|
if (myOwn.config.config['grid-row-retain-moved-or-deleted']) {
|
|
700
|
-
if(!depot
|
|
700
|
+
if(!depot['$refreshed']){
|
|
701
701
|
grid.retrieveRowAndRefresh(depot,{retrieveIgnoringWhere:true})
|
|
702
|
-
depot
|
|
702
|
+
depot['$refreshed'] = true
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
}
|
|
@@ -2393,7 +2393,7 @@ myOwn.TableGrid.prototype.displayGrid = function displayGrid(){
|
|
|
2393
2393
|
return {fieldName:fieldName, value:depot.primaryKeyValues[i]};
|
|
2394
2394
|
}),
|
|
2395
2395
|
pick:grid.def.pick,
|
|
2396
|
-
retrieveIgnoringWhere: opts.retrieveIgnoringWhere
|
|
2396
|
+
retrieveIgnoringWhere: opts?opts.retrieveIgnoringWhere:false
|
|
2397
2397
|
}).then(function(result){
|
|
2398
2398
|
grid.depotRefresh(depot,{updatedRow:result[0], sendedForUpdate:{}}, opts);
|
|
2399
2399
|
})
|
package/lib/backend-plus.js
CHANGED
|
@@ -3013,21 +3013,17 @@ AppBackend.prototype.dumpDbSchemaPartial = async function dumpDbSchemaPartial(pa
|
|
|
3013
3013
|
for (var prefix of ['../', '../../']) {
|
|
3014
3014
|
try {
|
|
3015
3015
|
var dirName = Path.join(stackNode.path,prefix+'install').replace(regexpDistReplacer,'$1$2')
|
|
3016
|
-
console.log('********** buscando en', dirName, 'de', stackNode.path)
|
|
3017
3016
|
var list = await fs.readdir(dirName);
|
|
3018
3017
|
} catch (err) {
|
|
3019
3018
|
if (err.code != 'ENOENT') throw err;
|
|
3020
|
-
console.log(err);
|
|
3021
3019
|
var list = [];
|
|
3022
3020
|
}
|
|
3023
|
-
console.log(list)
|
|
3024
3021
|
for(var fileName of list){
|
|
3025
3022
|
if (fileName.endsWith('-fun.sql')) {
|
|
3026
3023
|
common.push(await fs.readFile(Path.join(dirName,fileName), 'utf-8'));
|
|
3027
3024
|
}
|
|
3028
3025
|
}
|
|
3029
3026
|
}
|
|
3030
|
-
console.log(common)
|
|
3031
3027
|
return common.join('\n');
|
|
3032
3028
|
}))).join('\n');
|
|
3033
3029
|
|
|
@@ -3169,6 +3165,8 @@ AppBackend.prototype.exportacionesGenerico = async function exportacionesGeneric
|
|
|
3169
3165
|
if (typeof result[0].title !== "string" || typeof result[0].rows !== "object" && !(result[0].rows instanceof Array) ) {
|
|
3170
3166
|
throw new Error ("exportacionesGenerico debe recibir {title:string, rows:Record<string, any>[]}")
|
|
3171
3167
|
}
|
|
3168
|
+
csvFileName = result[0].csvFileName ?? csvFileName;
|
|
3169
|
+
fileName = result[0].fileName ?? fileName;
|
|
3172
3170
|
await bestGlobals.sleep(100);
|
|
3173
3171
|
context.informProgress({message:`buscando archivos recién generados`})
|
|
3174
3172
|
/** @type {{url:string, label:string}[]} */
|
package/package.json
CHANGED