@fluxhub/fluxhub-lib 9.0.102 → 9.0.104
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/bundles/fluxhub-fluxhub-lib.umd.js +13 -8
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhformtoolbar.js +2 -2
- package/esm2015/lib/services/utility.service.js +8 -4
- package/esm5/lib/controls/fhformtoolbar.js +2 -2
- package/esm5/lib/services/utility.service.js +10 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +8 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +10 -4
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/utility.service.d.ts +1 -1
- package/package.json +20 -2
|
@@ -4,6 +4,7 @@ import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
|
4
4
|
import { ToastrService } from 'ngx-toastr';
|
|
5
5
|
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
6
6
|
import { AES, enc } from 'crypto-js';
|
|
7
|
+
import { getDiff } from 'recursive-diff';
|
|
7
8
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
8
9
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
9
10
|
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
@@ -544,11 +545,16 @@ var UtilityService = /** @class */ (function () {
|
|
|
544
545
|
console.log(p.types[i] + " " + String(p.values[i]));
|
|
545
546
|
}
|
|
546
547
|
};
|
|
547
|
-
UtilityService.prototype.insert_log = function (dt, app, k, descri, operazione) {
|
|
548
|
+
UtilityService.prototype.insert_log = function (dt, app, k, descri, operazione, link, old_doc, new_doc) {
|
|
549
|
+
if (link === void 0) { link = null; }
|
|
550
|
+
if (old_doc === void 0) { old_doc = null; }
|
|
551
|
+
var diff = null;
|
|
552
|
+
if (old_doc != null && new_doc != null)
|
|
553
|
+
diff = getDiff(old_doc, new_doc, true);
|
|
548
554
|
var p = new QParam();
|
|
549
555
|
p.sql = "INSERT_LOG_N";
|
|
550
|
-
p.types = ['string', 'string', 'string', 'string'];
|
|
551
|
-
p.values = [app, k, descri, operazione];
|
|
556
|
+
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
557
|
+
p.values = [app, k, descri, operazione, link, diff];
|
|
552
558
|
dt.doQuery(p).subscribe();
|
|
553
559
|
};
|
|
554
560
|
UtilityService.prototype.sql_date_time = function (dt) {
|
|
@@ -6285,7 +6291,7 @@ var FHFormToolBarComponent = /** @class */ (function () {
|
|
|
6285
6291
|
], FHFormToolBarComponent.prototype, "command", void 0);
|
|
6286
6292
|
FHFormToolBarComponent = __decorate([
|
|
6287
6293
|
Component({
|
|
6288
|
-
selector: 'FHFormToolBar', template: "\n <div fxLayout.xs=\"column\" fxLayoutGap=\"3px\">\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" [hidden]=\"is_editing\" fxLayoutAlign=\"start center\">\n <button mat-flat-button (click)=\"back()\">{{mgs_back}}</button> \n <button mat-flat-button color=\"primary\" [hidden]=\"!editable\" (click)=\"edit()\"><mat-icon>
|
|
6294
|
+
selector: 'FHFormToolBar', template: "\n <div fxLayout.xs=\"column\" fxLayoutGap=\"3px\">\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" [hidden]=\"is_editing\" fxLayoutAlign=\"start center\">\n <button mat-flat-button (click)=\"back()\">{{mgs_back}}</button> \n <button mat-flat-button color=\"primary\" [hidden]=\"!editable\" (click)=\"edit()\"><mat-icon>edit</mat-icon> {{mgs_edit}}</button>\n <button [hidden]=\"!editable\" mat-flat-button *ngIf=\"App!=''\" color=\"accent\" (click)=\"logs()\"><mat-icon>assignment</mat-icon> Logs</button>\n</div>\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" [hidden]=\"!is_editing\" fxLayoutAlign=\"start center\">\n <button mat-flat-button (click)=\"back_ask_save()\">{{mgs_back}}</button> \n <button mat-flat-button color=\"primary\" [hidden]=\"!show_save\" (click)=\"save()\"><mat-icon>save</mat-icon> {{mgs_save}}</button>\n <div *ngIf=\"custom_commands.length>0\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n\n <div *ngFor=\"let app of custom_commands\">\n\n <button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label}}</button>\n </div>\n</div>\n <button mat-flat-button *ngIf=\"App!=''\" color=\"accent\" (click)=\"logs()\"><mat-icon>assignment</mat-icon> Logs</button>\n\n</div>\n</div>\n ",
|
|
6289
6295
|
styles: ["\n\n "]
|
|
6290
6296
|
}),
|
|
6291
6297
|
__metadata("design:paramtypes", [MatDialog])
|