@fluxhub/fluxhub-lib 1.0.459 → 1.0.460

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.
@@ -13153,13 +13153,14 @@
13153
13153
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13154
13154
  */
13155
13155
  var win_commenti = /** @class */ (function () {
13156
- function win_commenti(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13156
+ function win_commenti(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
13157
13157
  this.dialogRef = dialogRef;
13158
13158
  this.m_dialogRef = m_dialogRef;
13159
13159
  this.m_appService = m_appService;
13160
13160
  this.toastr = toastr;
13161
13161
  this._dataService = _dataService;
13162
13162
  this.m_wkf = m_wkf;
13163
+ this.m_file = m_file;
13163
13164
  this.notifica_commenti = 1;
13164
13165
  this.notifica_commenti_obbl = 0;
13165
13166
  this.not_comm = false;
@@ -13429,6 +13430,12 @@
13429
13430
  timeOut: 1000,
13430
13431
  progressBar: true
13431
13432
  });
13433
+ /** @type {?} */
13434
+ var p_1 = new FSInput();
13435
+ p_1.command = "exec_app";
13436
+ p_1.p1 = "insert_update_comment";
13437
+ p_1.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc;
13438
+ _this.m_file.doQuery(p_1);
13432
13439
  ok_op = true;
13433
13440
  _this.b_edit = false;
13434
13441
  if (sdest != "")
@@ -13459,6 +13466,12 @@
13459
13466
  timeOut: 1000,
13460
13467
  progressBar: true
13461
13468
  });
13469
+ /** @type {?} */
13470
+ var p_2 = new FSInput();
13471
+ p_2.command = "exec_app";
13472
+ p_2.p1 = "insert_update_comment";
13473
+ p_2.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc + '|' + _this.edit_id;
13474
+ _this.m_file.doQuery(p_2);
13462
13475
  ok_op = true;
13463
13476
  _this.b_edit = false;
13464
13477
  if (sdest != "")
@@ -13537,7 +13550,8 @@
13537
13550
  { type: AppService },
13538
13551
  { type: ngxToastr.ToastrService },
13539
13552
  { type: QueryService },
13540
- { type: WkfService }
13553
+ { type: WkfService },
13554
+ { type: FileService }
13541
13555
  ]; };
13542
13556
  return win_commenti;
13543
13557
  }());
@@ -13592,7 +13606,7 @@
13592
13606
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13593
13607
  */
13594
13608
  var win_log = /** @class */ (function () {
13595
- function win_log(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13609
+ function win_log(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
13596
13610
  this.appService = appService;
13597
13611
  this.dialogRef = dialogRef;
13598
13612
  this.m_dialogRef = m_dialogRef;
@@ -13600,6 +13614,7 @@
13600
13614
  this.toastr = toastr;
13601
13615
  this._dataService = _dataService;
13602
13616
  this.m_wkf = m_wkf;
13617
+ this.m_file = m_file;
13603
13618
  this.ossv = false;
13604
13619
  this.not_comm = false;
13605
13620
  this.not_comm_disabled = false;
@@ -13787,6 +13802,8 @@
13787
13802
  if (data != null)
13788
13803
  if (data.result_msg == "OK") {
13789
13804
  _this.logs = data.result_data;
13805
+ for (var i = 0; i < _this.logs.length; i++)
13806
+ _this.logs[i].v_commento = '<b>' + _this.logs[i].operazione.replace(/\n/g, '<br/>') + '</b>';
13790
13807
  if (!_this.ossv)
13791
13808
  _this.modeler = new NavigatedViewer({
13792
13809
  container: '#canvas',
@@ -13980,6 +13997,12 @@
13980
13997
  timeOut: 1000,
13981
13998
  progressBar: true
13982
13999
  });
14000
+ /** @type {?} */
14001
+ var p_1 = new FSInput();
14002
+ p_1.command = "exec_app";
14003
+ p_1.p1 = "insert_update_comment";
14004
+ p_1.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc;
14005
+ _this.m_file.doQuery(p_1);
13983
14006
  _this.b_edit = false;
13984
14007
  if (sdest != "")
13985
14008
  _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" + _this.nota.split('\n').join("<br>"), _this.m_appService.getState().wkf_doc_info.uiid_app, _this.m_appService.getState().wkf_doc_info.uiid_doc, _this.link, _this.codice_doc, '');
@@ -14004,6 +14027,12 @@
14004
14027
  timeOut: 1000,
14005
14028
  progressBar: true
14006
14029
  });
14030
+ /** @type {?} */
14031
+ var p_2 = new FSInput();
14032
+ p_2.command = "exec_app";
14033
+ p_2.p1 = "insert_update_comment";
14034
+ p_2.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc + '|' + _this.edit_id;
14035
+ _this.m_file.doQuery(p_2);
14007
14036
  _this.b_edit = false;
14008
14037
  if (sdest != "")
14009
14038
  _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" + _this.nota.split('\n').join("<br>"), _this.m_appService.getState().wkf_doc_info.uiid_app, _this.m_appService.getState().wkf_doc_info.uiid_doc, _this.link, _this.codice_doc, '');
@@ -14014,7 +14043,7 @@
14014
14043
  };
14015
14044
  win_log.decorators = [
14016
14045
  { type: core.Component, args: [{
14017
- template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n \n ",
14046
+ template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.v_commento}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n \n ",
14018
14047
  styles: ["\n\n\n "]
14019
14048
  }] }
14020
14049
  ];
@@ -14026,7 +14055,8 @@
14026
14055
  { type: AppService },
14027
14056
  { type: ngxToastr.ToastrService },
14028
14057
  { type: QueryService },
14029
- { type: WkfService }
14058
+ { type: WkfService },
14059
+ { type: FileService }
14030
14060
  ]; };
14031
14061
  win_log.propDecorators = {
14032
14062
  zz: [{ type: core.ViewChild, args: ['zz',] }]