@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.
@@ -15476,12 +15476,24 @@
15476
15476
  this.b_valid = true;
15477
15477
  this.s_uto = "";
15478
15478
  this.b_apprf = false;
15479
+ this.init_user_i();
15480
+ console.log('user_idp: ' + this.user_idp);
15481
+ }
15482
+ /**
15483
+ * @private
15484
+ * @return {?}
15485
+ */
15486
+ dati_aggiuntivi.prototype.init_user_i = /**
15487
+ * @private
15488
+ * @return {?}
15489
+ */
15490
+ function () {
15491
+ console.log('init_user_i ', this.app_s);
15479
15492
  this.user_idp = this.app_s.user;
15480
15493
  this.user_nome = this.app_s.user_name;
15481
15494
  this.user_cognome = this.app_s.user_surname;
15482
15495
  this.user_email = this.app_s.user_email;
15483
- console.log('user_idp: ' + this.user_idp);
15484
- }
15496
+ };
15485
15497
  /**
15486
15498
  * @return {?}
15487
15499
  */
@@ -15489,7 +15501,7 @@
15489
15501
  * @return {?}
15490
15502
  */
15491
15503
  function () {
15492
- this.app_s.getState().wkf_doc_info = new Object();
15504
+ this.app_s.getState().wkf_doc_info = {};
15493
15505
  this.app_s.getState().wkf_doc_info.curr_user = this.user_idp;
15494
15506
  this.app_s.getState().wkf_doc_info.codice = this.m_obj.codice;
15495
15507
  this.app_s.getState().wkf_doc_info.data_richiesta = this.m_obj.data_richiesta;
@@ -17221,13 +17233,23 @@
17221
17233
  function (event) {
17222
17234
  };
17223
17235
  /**
17236
+ * @private
17224
17237
  * @return {?}
17225
17238
  */
17226
- dati_aggiuntivi.prototype.ngOnInit = /**
17239
+ dati_aggiuntivi.prototype.init_engine = /**
17240
+ * @private
17227
17241
  * @return {?}
17228
17242
  */
17229
17243
  function () {
17230
17244
  var _this = this;
17245
+ if (this.user_idp == null) {
17246
+ setTimeout((/**
17247
+ * @return {?}
17248
+ */
17249
+ function () { _this.init_user_i(); _this.init_engine(); }), 500);
17250
+ return;
17251
+ }
17252
+ console.log('init_engine ');
17231
17253
  this.m_route.params.subscribe((/**
17232
17254
  * @param {?} params
17233
17255
  * @return {?}
@@ -17289,6 +17311,15 @@
17289
17311
  }));
17290
17312
  }));
17291
17313
  };
17314
+ /**
17315
+ * @return {?}
17316
+ */
17317
+ dati_aggiuntivi.prototype.ngOnInit = /**
17318
+ * @return {?}
17319
+ */
17320
+ function () {
17321
+ this.init_engine();
17322
+ };
17292
17323
  /**
17293
17324
  * @param {?} o
17294
17325
  * @return {?}
@@ -17384,6 +17415,7 @@
17384
17415
  this.dt_agg = null;
17385
17416
  this.edit_button = false;
17386
17417
  this.respingi_button = false;
17418
+ this.procedi_button = true;
17387
17419
  }
17388
17420
  /**
17389
17421
  * @return {?}
@@ -17460,7 +17492,7 @@
17460
17492
  wkf_header_bar.decorators = [
17461
17493
  { type: core.Component, args: [{
17462
17494
  selector: 'wkf_header_bar',
17463
- 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 "
17495
+ 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 "
17464
17496
  }] }
17465
17497
  ];
17466
17498
  /** @nocollapse */
@@ -17470,7 +17502,8 @@
17470
17502
  wkf_header_bar.propDecorators = {
17471
17503
  dt_agg: [{ type: core.Input }],
17472
17504
  edit_button: [{ type: core.Input }],
17473
- respingi_button: [{ type: core.Input }]
17505
+ respingi_button: [{ type: core.Input }],
17506
+ procedi_button: [{ type: core.Input }]
17474
17507
  };
17475
17508
  return wkf_header_bar;
17476
17509
  }());