@fluxhub/fluxhub-lib 1.0.259 → 1.0.261

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.
@@ -34,7 +34,7 @@ import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteM
34
34
  import { __read, __assign, __extends } from 'tslib';
35
35
  import { DomSanitizer } from '@angular/platform-browser';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Pipe, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, Output, EventEmitter, ViewChild, forwardRef, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
38
  import { Http } from '@angular/http';
39
39
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
40
  import { ToastrService } from 'ngx-toastr';
@@ -5061,7 +5061,7 @@ var win_riassegna_select_user = /** @class */ (function () {
5061
5061
  };
5062
5062
  win_riassegna_select_user.decorators = [
5063
5063
  { type: Component, args: [{
5064
- template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\">\n\n <div style=\"height:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br><br><br>\n\n <mat-form-field>\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [hidden]=\"commento_hidden\" [(ngModel)]=\"nota\"\n rows=\"6\"></textarea>\n\n </mat-form-field>\n\n \n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
5064
+ template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\">\n\n <div style=\"height:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br><br><br>\n\n <mat-form-field [hidden]=\"commento_hidden\" >\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\"\n rows=\"6\"></textarea>\n\n </mat-form-field>\n\n \n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
5065
5065
  }] }
5066
5066
  ];
5067
5067
  /** @nocollapse */
@@ -5293,9 +5293,9 @@ wkfapp = /** @class */ (function () {
5293
5293
  var _this = this;
5294
5294
  /** @type {?} */
5295
5295
  var arrAutori = new Array();
5296
- for (var i = 0; i < this.livs_adm.length; i++)
5297
- if (this.livs_adm[i].livello == this.os_r.livello && this.livs_adm[i].notifica == 0)
5298
- arrAutori.push(this.livs_adm[i]);
5296
+ for (var i_1 = 0; i_1 < this.livs_adm.length; i_1++)
5297
+ if (this.livs_adm[i_1].livello == this.os_r.livello && this.livs_adm[i_1].notifica == 0)
5298
+ arrAutori.push(this.livs_adm[i_1]);
5299
5299
  // Alert.show("Confermi di voler recuperare il documento "+ wing.tbl_wkf.sRow.codice+" - "+ wing.tbl_wkf.sRow.oggetto+"?", "Conferma operazione", 3, this, okelimc1);
5300
5300
  /** @type {?} */
5301
5301
  var dialogRef = this.dialog.open(win_riassegna_select_user, { 'disableClose': true });
@@ -5304,7 +5304,13 @@ wkfapp = /** @class */ (function () {
5304
5304
  if (arrAutori[i].idp != null && arrAutori[i].username == null)
5305
5305
  arrAutori[i].username = arrAutori[i].idp;
5306
5306
  }
5307
- console.log(arrAutori);
5307
+ dialogRef.componentInstance.commento_hidden = false;
5308
+ dialogRef.componentInstance.comm_notrequired = false;
5309
+ if (this.os_r.commenti_opzionali != null)
5310
+ if (this.os_r.commenti_opzionali != 0) {
5311
+ dialogRef.componentInstance.commento_hidden = true;
5312
+ dialogRef.componentInstance.comm_notrequired = true;
5313
+ }
5308
5314
  dialogRef.componentInstance.arrAutori = arrAutori;
5309
5315
  dialogRef.componentInstance.title = "Riassegnazione documento: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
5310
5316
  dialogRef.afterClosed().subscribe((/**
@@ -10828,6 +10834,22 @@ var FHUserFieldComponent = /** @class */ (function () {
10828
10834
  }
10829
10835
  return s_nc;
10830
10836
  };
10837
+ /**
10838
+ * @return {?}
10839
+ */
10840
+ FHUserFieldComponent.prototype.getUsersEmail = /**
10841
+ * @return {?}
10842
+ */
10843
+ function () {
10844
+ /** @type {?} */
10845
+ var s_nc = '';
10846
+ for (var i = 0; i < this.selectedUser.length; i++) {
10847
+ if (s_nc != '')
10848
+ s_nc = s_nc + ',';
10849
+ s_nc = s_nc + ("" + this.selectedUser[i].email);
10850
+ }
10851
+ return s_nc;
10852
+ };
10831
10853
  /**
10832
10854
  * @return {?}
10833
10855
  */
@@ -10876,6 +10898,54 @@ var FHUserFieldComponent = /** @class */ (function () {
10876
10898
  this.userName = this.getUsersNc();
10877
10899
  }
10878
10900
  };
10901
+ /**
10902
+ * @param {?} emails
10903
+ * @return {?}
10904
+ */
10905
+ FHUserFieldComponent.prototype.setByEmail = /**
10906
+ * @param {?} emails
10907
+ * @return {?}
10908
+ */
10909
+ function (emails) {
10910
+ var _this = this;
10911
+ if (!emails)
10912
+ return;
10913
+ /** @type {?} */
10914
+ var a = emails.split(',');
10915
+ /** @type {?} */
10916
+ var s_nc = '';
10917
+ for (var i = 0; i < a.length; i++) {
10918
+ if (s_nc != '')
10919
+ s_nc = s_nc + ',';
10920
+ s_nc = s_nc + '\'' + a[i] + '\'';
10921
+ }
10922
+ /** @type {?} */
10923
+ var param = {
10924
+ sql: 'SELECT_USERS_INFOS_BY_EMAIL_NOREP',
10925
+ types: ['string'],
10926
+ values: [s_nc],
10927
+ names: [],
10928
+ };
10929
+ this.dataservice.doQuery(param)
10930
+ .subscribe((/**
10931
+ * @param {?} data
10932
+ * @return {?}
10933
+ */
10934
+ function (data) {
10935
+ /** @type {?} */
10936
+ var result = data.result_data;
10937
+ if (result != null) {
10938
+ _this.selectedUser = result;
10939
+ _this.writeValue('noop');
10940
+ _this.select.emit(_this.selectedUser);
10941
+ console.log(_this.selectedUser);
10942
+ _this.userName = _this.getUsersNc();
10943
+ console.log(_this.userName);
10944
+ }
10945
+ else
10946
+ _this.clear();
10947
+ }));
10948
+ };
10879
10949
  /**
10880
10950
  * @param {?} username
10881
10951
  * @return {?}