@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.
@@ -33,7 +33,7 @@ import { DomSanitizer } from '@angular/platform-browser';
33
33
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
34
34
  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';
35
35
  import { ActivatedRoute, Router } from '@angular/router';
36
- import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
36
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
37
37
  import { Http } from '@angular/http';
38
38
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
39
39
  import { ToastrService } from 'ngx-toastr';
@@ -5741,6 +5741,7 @@ class FHGridComponent {
5741
5741
  this.sort_field = "";
5742
5742
  this.fields = "*";
5743
5743
  this.filters = "1=1";
5744
+ this.auto_height = false;
5744
5745
  this.abilita_export = true;
5745
5746
  this.enabled_pag = true;
5746
5747
  this.show_help = true;
@@ -6835,6 +6836,8 @@ class FHGridComponent {
6835
6836
  return;
6836
6837
  }
6837
6838
  }
6839
+ if (this.auto_height)
6840
+ this.gridOptions.api.setGridAutoHeight(true);
6838
6841
  this.onready_go();
6839
6842
  }
6840
6843
  /**
@@ -7193,6 +7196,7 @@ FHGridComponent.propDecorators = {
7193
7196
  sort_field: [{ type: Input }],
7194
7197
  fields: [{ type: Input }],
7195
7198
  filters: [{ type: Input }],
7199
+ auto_height: [{ type: Input }],
7196
7200
  abilita_export: [{ type: Input }],
7197
7201
  enabled_pag: [{ type: Input }],
7198
7202
  show_help: [{ type: Input }],
@@ -12778,7 +12782,7 @@ class FHGridJSONComponent {
12778
12782
  this.sort_field = "";
12779
12783
  this.fields = "*";
12780
12784
  this.filters = "1=1";
12781
- this.auto_height = true;
12785
+ this.auto_height = false;
12782
12786
  this.abilita_export = true;
12783
12787
  this.enabled_pag = true;
12784
12788
  this.show_help = true;
@@ -13584,6 +13588,8 @@ class FHGridJSONComponent {
13584
13588
  return;
13585
13589
  }
13586
13590
  }
13591
+ if (this.auto_height)
13592
+ this.gridOptions.api.setGridAutoHeight(true);
13587
13593
  this.onready_go();
13588
13594
  }
13589
13595
  /**
@@ -14514,11 +14520,13 @@ class dati_aggiuntivi {
14514
14520
  this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
14515
14521
  /** @type {?} */
14516
14522
  let sp = "";
14517
- for (let i = 0; i < arrAutori.length; i++) {
14518
- if (sp != '')
14519
- sp = sp + ';';
14520
- sp = sp + arrAutori[i].nc;
14521
- }
14523
+ for (let i = 0; i < arrAutori.length; i++)
14524
+ if (arrAutori[i].nc != null)
14525
+ if (sp.indexOf(arrAutori[i].nc) == -1) {
14526
+ if (sp != '')
14527
+ sp = sp + ';';
14528
+ sp = sp + arrAutori[i].nc;
14529
+ }
14522
14530
  this.app_s.getState().wkf_doc_info.utenti = "";
14523
14531
  if (this.nlevel.livello < 900)
14524
14532
  this.app_s.getState().wkf_doc_info.lbl = "Il documento verrà inviato a " + this.nlevel.descri_livello;
@@ -15712,6 +15720,8 @@ class dati_aggiuntivi {
15712
15720
  */
15713
15721
  return_edit() {
15714
15722
  console.log('return_edit');
15723
+ console.log('rthis.m_obj.autori ', this.m_obj.autori);
15724
+ console.log('this.user_idp ', this.user_idp);
15715
15725
  for (let i = 0; i < this.livs.length; i++)
15716
15726
  if (this.livs[i].livello == this.m_obj.stato) {
15717
15727
  if (this.livs[i].abilita_indietro == 1)
@@ -15720,6 +15730,8 @@ class dati_aggiuntivi {
15720
15730
  this.respingi_enabled = false;
15721
15731
  break;
15722
15732
  }
15733
+ if (this.m_obj.autori == null)
15734
+ this.m_obj.autori = '';
15723
15735
  if (this.m_obj.autori.toLowerCase().indexOf(this.user_idp.toLowerCase()) != -1) {
15724
15736
  this.edit_b(true);
15725
15737
  if (this.respingi_enabled)