@fluxhub/fluxhub-lib 10.0.170 → 10.0.172

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.
@@ -2724,6 +2724,7 @@ class FHUploadPanelS3Component {
2724
2724
  this.b_initt = false;
2725
2725
  this.change = new EventEmitter();
2726
2726
  this.call_upload = new EventEmitter();
2727
+ this.init_end = new EventEmitter();
2727
2728
  this.image_mode = false;
2728
2729
  this.App = "";
2729
2730
  this.K = "";
@@ -2854,6 +2855,7 @@ class FHUploadPanelS3Component {
2854
2855
  });
2855
2856
  }
2856
2857
  ngAfterViewInit() {
2858
+ setTimeout(() => { this.init_end.emit(); });
2857
2859
  }
2858
2860
  init_upload() {
2859
2861
  if (this.upc == null) {
@@ -3307,6 +3309,7 @@ FHUploadPanelS3Component.propDecorators = {
3307
3309
  can_delete_owner: [{ type: Input }],
3308
3310
  change: [{ type: Output }],
3309
3311
  call_upload: [{ type: Output }],
3312
+ init_end: [{ type: Output }],
3310
3313
  upc: [{ type: ViewChild, args: ["upc",] }]
3311
3314
  };
3312
3315
 
@@ -3921,6 +3924,7 @@ class FHUploadComponent {
3921
3924
  this.upload_ended = new EventEmitter();
3922
3925
  this.call_upload = new EventEmitter();
3923
3926
  this.fill_end = new EventEmitter();
3927
+ this.init_end = new EventEmitter();
3924
3928
  this.id_component = '';
3925
3929
  this.hasBaseDropZoneOver = false;
3926
3930
  this.hasAnotherDropZoneOver = false;
@@ -4072,6 +4076,7 @@ class FHUploadComponent {
4072
4076
  this.toastr.error("Errore: " + filter.name);
4073
4077
  }
4074
4078
  };
4079
+ this.init_end.emit();
4075
4080
  });
4076
4081
  }
4077
4082
  download_all() {
@@ -4351,6 +4356,7 @@ FHUploadComponent.propDecorators = {
4351
4356
  upload_ended: [{ type: Output }],
4352
4357
  call_upload: [{ type: Output }],
4353
4358
  fill_end: [{ type: Output }],
4359
+ init_end: [{ type: Output }],
4354
4360
  select_file: [{ type: ViewChild, args: ['select_file',] }],
4355
4361
  cmb_tipo: [{ type: ViewChild, args: ["cmb_tipo",] }]
4356
4362
  };
@@ -4788,6 +4794,7 @@ class FHUploadPanelComponent {
4788
4794
  this.b_initt = false;
4789
4795
  this.change = new EventEmitter();
4790
4796
  this.call_upload = new EventEmitter();
4797
+ this.init_end = new EventEmitter();
4791
4798
  this.App = "";
4792
4799
  this.K = "";
4793
4800
  this.image_type = false;
@@ -4933,6 +4940,7 @@ class FHUploadPanelComponent {
4933
4940
  this.multi_list = true;
4934
4941
  }
4935
4942
  this.ref_allegato();
4943
+ this.init_end.emit();
4936
4944
  });
4937
4945
  if (this.ruolo_supervisore != "[ZZZ_DIS_CC]")
4938
4946
  this.access_control = true;
@@ -5459,6 +5467,7 @@ FHUploadPanelComponent.propDecorators = {
5459
5467
  show_upload: [{ type: Input }],
5460
5468
  change: [{ type: Output }],
5461
5469
  call_upload: [{ type: Output }],
5470
+ init_end: [{ type: Output }],
5462
5471
  upc: [{ type: ViewChild, args: ["upc",] }]
5463
5472
  };
5464
5473
 
@@ -8018,16 +8027,16 @@ class FHGridComponent {
8018
8027
  if (this.curr_config == "-1")
8019
8028
  return;
8020
8029
  localStorage.removeItem(this.grid_key + "_COLS");
8021
- localStorage.removeItem(this.grid_key + "_SORT");
8030
+ // localStorage.removeItem(this.grid_key + "_SORT");
8022
8031
  localStorage.removeItem(this.grid_key + "_FILTER");
8023
8032
  localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
8024
8033
  localStorage.removeItem(this.grid_key + "_FILTER_UP");
8025
8034
  if (this.gf.getObj().COL != null)
8026
8035
  if (this.gf.getObj().COL != "")
8027
8036
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
8028
- if (this.gf.getObj().SORT != null)
8029
- if (this.gf.getObj().SORT != "")
8030
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8037
+ // if (this.gf.getObj().SORT != null)
8038
+ // if (this.gf.getObj().SORT != "")
8039
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8031
8040
  if (this.gf.getObj().FILTER != null)
8032
8041
  if (this.gf.getObj().FILTER != "")
8033
8042
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
@@ -8089,12 +8098,12 @@ class FHGridComponent {
8089
8098
  let p = new QParam();
8090
8099
  p.sql = "INSERT_UPDATE_CFG_GRID";
8091
8100
  let p_col = "";
8092
- let p_sort = "";
8101
+ // let p_sort: string = "";
8093
8102
  let p_filter = "";
8094
8103
  if (localStorage.getItem(this.grid_key + "_COLS") != null)
8095
8104
  p_col = localStorage.getItem(this.grid_key + "_COLS");
8096
- if (localStorage.getItem(this.grid_key + "_SORT") != null)
8097
- p_sort = localStorage.getItem(this.grid_key + "_SORT");
8105
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
8106
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
8098
8107
  if (localStorage.getItem(this.grid_key + "_FILTER") != null)
8099
8108
  p_filter = localStorage.getItem(this.grid_key + "_FILTER");
8100
8109
  p.types = ["string", "string", "string", "string", "string", "string"];
@@ -8146,12 +8155,12 @@ class FHGridComponent {
8146
8155
  let p = new QParam();
8147
8156
  p.sql = "INSERT_UPDATE_CFG_GRID";
8148
8157
  let p_col = "";
8149
- let p_sort = "";
8158
+ // let p_sort: string = "";
8150
8159
  let p_filter = "";
8151
8160
  if (localStorage.getItem(this.grid_key + "_COLS") != null)
8152
8161
  p_col = localStorage.getItem(this.grid_key + "_COLS");
8153
- if (localStorage.getItem(this.grid_key + "_SORT") != null)
8154
- p_sort = localStorage.getItem(this.grid_key + "_SORT");
8162
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
8163
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
8155
8164
  if (localStorage.getItem(this.grid_key + "_FILTER") != null)
8156
8165
  p_filter = localStorage.getItem(this.grid_key + "_FILTER");
8157
8166
  p.types = [
@@ -8831,30 +8840,31 @@ class FHGridComponent {
8831
8840
  console.log(eer);
8832
8841
  }
8833
8842
  }
8834
- try {
8843
+ /* try {
8835
8844
  this.gridOptions.api.setSortModel(null);
8836
- }
8837
- catch (eer) {
8845
+ } catch (eer) {
8838
8846
  console.log(eer);
8839
- }
8840
- if (localStorage.getItem(this.grid_key + "_SORT") != null &&
8841
- (b_mantieni_ck || forza))
8847
+ }
8848
+ if (
8849
+ localStorage.getItem(this.grid_key + "_SORT") != null &&
8850
+ (b_mantieni_ck || forza)
8851
+ )
8842
8852
  if (localStorage.getItem(this.grid_key + "_SORT") != "") {
8843
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
8844
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
8845
- try {
8846
- this.gridOptions.api.setSortModel(JSON.parse(localStorage.getItem(this.grid_key + "_SORT")));
8847
- }
8848
- catch (eer) {
8849
- console.log(eer);
8850
- }
8853
+ // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
8854
+ // console.log(localStorage.getItem(this.grid_key+'_SORT'));
8855
+ try {
8856
+ this.gridOptions.api.setSortModel(
8857
+ JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
8858
+ );
8859
+ } catch (eer) {
8860
+ console.log(eer);
8861
+ }
8851
8862
  }
8852
- try {
8863
+ try {
8853
8864
  this.gridOptions.api.setFilterModel(null);
8854
- }
8855
- catch (eer) {
8865
+ } catch (eer) {
8856
8866
  console.log(eer);
8857
- }
8867
+ }*/
8858
8868
  if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
8859
8869
  (b_mantieni_ck || forza))
8860
8870
  if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
@@ -8925,7 +8935,7 @@ class FHGridComponent {
8925
8935
  if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
8926
8936
  this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
8927
8937
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COLS);
8928
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8938
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8929
8939
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
8930
8940
  this.curr_config = this.gf.getValue();
8931
8941
  }
@@ -9037,9 +9047,14 @@ class FHGridComponent {
9037
9047
  if (this.no_pref)
9038
9048
  return;
9039
9049
  if (this.b_init) {
9040
- // localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
9050
+ localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
9041
9051
  // console.log('salvo s: '+this.gridOptions.api.getSortModel());
9042
- localStorage.setItem(this.grid_key + "_SORT", JSON.stringify(this.gridOptions.api.getSortModel()));
9052
+ /*
9053
+
9054
+ localStorage.setItem(
9055
+ this.grid_key + "_SORT",
9056
+ JSON.stringify(this.gridOptions.api.getSortModel())
9057
+ );*/
9043
9058
  }
9044
9059
  }
9045
9060
  onVirtualRowRemoved($event) {
@@ -15122,7 +15137,7 @@ class FHGridJSONComponent {
15122
15137
  }
15123
15138
  }
15124
15139
  let iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
15125
- this.gridOptions.api.setGridAutoHeight(!iOS);
15140
+ // this.gridOptions.api.setGridAutoHeight(!iOS);
15126
15141
  this.onready_go();
15127
15142
  }
15128
15143
  save_cfg() {