@fluxhub/fluxhub-lib 1.0.348 → 1.0.350

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.
@@ -15455,12 +15455,24 @@ var dati_aggiuntivi = /** @class */ (function () {
15455
15455
  this.b_valid = true;
15456
15456
  this.s_uto = "";
15457
15457
  this.b_apprf = false;
15458
+ this.init_user_i();
15459
+ console.log('user_idp: ' + this.user_idp);
15460
+ }
15461
+ /**
15462
+ * @private
15463
+ * @return {?}
15464
+ */
15465
+ dati_aggiuntivi.prototype.init_user_i = /**
15466
+ * @private
15467
+ * @return {?}
15468
+ */
15469
+ function () {
15470
+ console.log('init_user_i ', this.app_s);
15458
15471
  this.user_idp = this.app_s.user;
15459
15472
  this.user_nome = this.app_s.user_name;
15460
15473
  this.user_cognome = this.app_s.user_surname;
15461
15474
  this.user_email = this.app_s.user_email;
15462
- console.log('user_idp: ' + this.user_idp);
15463
- }
15475
+ };
15464
15476
  /**
15465
15477
  * @return {?}
15466
15478
  */
@@ -15468,7 +15480,7 @@ var dati_aggiuntivi = /** @class */ (function () {
15468
15480
  * @return {?}
15469
15481
  */
15470
15482
  function () {
15471
- this.app_s.getState().wkf_doc_info = new Object();
15483
+ this.app_s.getState().wkf_doc_info = {};
15472
15484
  this.app_s.getState().wkf_doc_info.curr_user = this.user_idp;
15473
15485
  this.app_s.getState().wkf_doc_info.codice = this.m_obj.codice;
15474
15486
  this.app_s.getState().wkf_doc_info.data_richiesta = this.m_obj.data_richiesta;
@@ -17200,13 +17212,23 @@ var dati_aggiuntivi = /** @class */ (function () {
17200
17212
  function (event) {
17201
17213
  };
17202
17214
  /**
17215
+ * @private
17203
17216
  * @return {?}
17204
17217
  */
17205
- dati_aggiuntivi.prototype.ngOnInit = /**
17218
+ dati_aggiuntivi.prototype.init_engine = /**
17219
+ * @private
17206
17220
  * @return {?}
17207
17221
  */
17208
17222
  function () {
17209
17223
  var _this = this;
17224
+ if (this.user_idp == null) {
17225
+ setTimeout((/**
17226
+ * @return {?}
17227
+ */
17228
+ function () { _this.init_user_i(); _this.init_engine(); }), 500);
17229
+ return;
17230
+ }
17231
+ console.log('init_engine ');
17210
17232
  this.m_route.params.subscribe((/**
17211
17233
  * @param {?} params
17212
17234
  * @return {?}
@@ -17268,6 +17290,15 @@ var dati_aggiuntivi = /** @class */ (function () {
17268
17290
  }));
17269
17291
  }));
17270
17292
  };
17293
+ /**
17294
+ * @return {?}
17295
+ */
17296
+ dati_aggiuntivi.prototype.ngOnInit = /**
17297
+ * @return {?}
17298
+ */
17299
+ function () {
17300
+ this.init_engine();
17301
+ };
17271
17302
  /**
17272
17303
  * @param {?} o
17273
17304
  * @return {?}
@@ -17363,6 +17394,7 @@ var wkf_header_bar = /** @class */ (function () {
17363
17394
  this.dt_agg = null;
17364
17395
  this.edit_button = false;
17365
17396
  this.respingi_button = false;
17397
+ this.procedi_button = true;
17366
17398
  }
17367
17399
  /**
17368
17400
  * @return {?}
@@ -17439,7 +17471,7 @@ var wkf_header_bar = /** @class */ (function () {
17439
17471
  wkf_header_bar.decorators = [
17440
17472
  { type: Component, args: [{
17441
17473
  selector: 'wkf_header_bar',
17442
- template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" >\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-raised-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-raised-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-raised-button (click)=\"procedi()\" *ngIf=\"edit_button\" color=\"accent\" >Procedi</button>\n <button mat-raised-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-raised-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-raised-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>\n<button mat-raised-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>&nbsp;&nbsp;Commenti {{dt_agg?.comm_c}}</button>\n<button mat-raised-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>\n<button mat-raised-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button>\n\n</div>\n</div>\n\n "
17474
+ template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" >\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-raised-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-raised-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-raised-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>\n <button mat-raised-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-raised-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-raised-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>\n<button mat-raised-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>&nbsp;&nbsp;Commenti {{dt_agg?.comm_c}}</button>\n<button mat-raised-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>\n<button mat-raised-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button>\n\n</div>\n</div>\n\n "
17443
17475
  }] }
17444
17476
  ];
17445
17477
  /** @nocollapse */
@@ -17449,7 +17481,8 @@ var wkf_header_bar = /** @class */ (function () {
17449
17481
  wkf_header_bar.propDecorators = {
17450
17482
  dt_agg: [{ type: Input }],
17451
17483
  edit_button: [{ type: Input }],
17452
- respingi_button: [{ type: Input }]
17484
+ respingi_button: [{ type: Input }],
17485
+ procedi_button: [{ type: Input }]
17453
17486
  };
17454
17487
  return wkf_header_bar;
17455
17488
  }());