@fluxhub/fluxhub-lib 1.0.297 → 1.0.299

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 { DomSanitizer } from '@angular/platform-browser';
34
34
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
35
35
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, ViewChild, Output, EventEmitter, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, forwardRef, Output, EventEmitter, ViewChild, 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';
@@ -6033,6 +6033,7 @@ var FHGridComponent = /** @class */ (function () {
6033
6033
  this.sort_field = "";
6034
6034
  this.fields = "*";
6035
6035
  this.filters = "1=1";
6036
+ this.auto_height = false;
6036
6037
  this.abilita_export = true;
6037
6038
  this.enabled_pag = true;
6038
6039
  this.show_help = true;
@@ -7263,6 +7264,8 @@ var FHGridComponent = /** @class */ (function () {
7263
7264
  return;
7264
7265
  }
7265
7266
  }
7267
+ if (this.auto_height)
7268
+ this.gridOptions.api.setGridAutoHeight(true);
7266
7269
  this.onready_go();
7267
7270
  };
7268
7271
  /**
@@ -7732,6 +7735,7 @@ var FHGridComponent = /** @class */ (function () {
7732
7735
  sort_field: [{ type: Input }],
7733
7736
  fields: [{ type: Input }],
7734
7737
  filters: [{ type: Input }],
7738
+ auto_height: [{ type: Input }],
7735
7739
  abilita_export: [{ type: Input }],
7736
7740
  enabled_pag: [{ type: Input }],
7737
7741
  show_help: [{ type: Input }],
@@ -13173,7 +13177,7 @@ var FHGridJSONComponent = /** @class */ (function () {
13173
13177
  this.sort_field = "";
13174
13178
  this.fields = "*";
13175
13179
  this.filters = "1=1";
13176
- this.auto_height = true;
13180
+ this.auto_height = false;
13177
13181
  this.abilita_export = true;
13178
13182
  this.enabled_pag = true;
13179
13183
  this.show_help = true;
@@ -14102,6 +14106,8 @@ var FHGridJSONComponent = /** @class */ (function () {
14102
14106
  return;
14103
14107
  }
14104
14108
  }
14109
+ if (this.auto_height)
14110
+ this.gridOptions.api.setGridAutoHeight(true);
14105
14111
  this.onready_go();
14106
14112
  };
14107
14113
  /**
@@ -15082,11 +15088,13 @@ var dati_aggiuntivi = /** @class */ (function () {
15082
15088
  this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
15083
15089
  /** @type {?} */
15084
15090
  var sp = "";
15085
- for (var i_2 = 0; i_2 < arrAutori.length; i_2++) {
15086
- if (sp != '')
15087
- sp = sp + ';';
15088
- sp = sp + arrAutori[i_2].nc;
15089
- }
15091
+ for (var i_2 = 0; i_2 < arrAutori.length; i_2++)
15092
+ if (arrAutori[i_2].nc != null)
15093
+ if (sp.indexOf(arrAutori[i_2].nc) == -1) {
15094
+ if (sp != '')
15095
+ sp = sp + ';';
15096
+ sp = sp + arrAutori[i_2].nc;
15097
+ }
15090
15098
  this.app_s.getState().wkf_doc_info.utenti = "";
15091
15099
  if (this.nlevel.livello < 900)
15092
15100
  this.app_s.getState().wkf_doc_info.lbl = "Il documento verrà inviato a " + this.nlevel.descri_livello;
@@ -16421,6 +16429,8 @@ var dati_aggiuntivi = /** @class */ (function () {
16421
16429
  */
16422
16430
  function () {
16423
16431
  console.log('return_edit');
16432
+ console.log('rthis.m_obj.autori ', this.m_obj.autori);
16433
+ console.log('this.user_idp ', this.user_idp);
16424
16434
  for (var i = 0; i < this.livs.length; i++)
16425
16435
  if (this.livs[i].livello == this.m_obj.stato) {
16426
16436
  if (this.livs[i].abilita_indietro == 1)
@@ -16429,6 +16439,8 @@ var dati_aggiuntivi = /** @class */ (function () {
16429
16439
  this.respingi_enabled = false;
16430
16440
  break;
16431
16441
  }
16442
+ if (this.m_obj.autori == null)
16443
+ this.m_obj.autori = '';
16432
16444
  if (this.m_obj.autori.toLowerCase().indexOf(this.user_idp.toLowerCase()) != -1) {
16433
16445
  this.edit_b(true);
16434
16446
  if (this.respingi_enabled)