@fluxhub/fluxhub-lib 19.0.89 → 19.0.90

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.
@@ -103,11 +103,9 @@ class AppService {
103
103
  this.state = state;
104
104
  }
105
105
  complete() {
106
- // console.log("🚀 ~ file: app.service.ts:54 ~ AppService ~ complete ~ complete")
107
106
  this.setState('progress', 100);
108
107
  }
109
108
  start() {
110
- // console.log("🚀 ~ file: app.service.ts:57 ~ AppService ~ start ~ start")
111
109
  this.setState('progress', 1);
112
110
  }
113
111
  update_progress(perc) {
@@ -345,7 +343,6 @@ class obj_diff {
345
343
  return ind == 'DATE' ? x.getTime() === y.getTime() : x === y;
346
344
  }
347
345
  computeOp(x, y, type1, type2) {
348
- // console.log('type1 ',type1,'type2 ',type2);
349
346
  let op = null;
350
347
  if (type1 === this.types.UNDEFINED && type2 !== this.types.UNDEFINED) {
351
348
  op = 'add';
@@ -1155,7 +1152,6 @@ class AuthenticationService {
1155
1152
  this.url = this.app_s.API_ENDPOINT + this.app_s.LOGIN_ENDPOINT;
1156
1153
  }
1157
1154
  logout(resetPosition = true) {
1158
- console.log('[AuthService] LOGOUT called - resetPosition:', resetPosition);
1159
1155
  console.trace('[AuthService] Logout stack trace');
1160
1156
  this.app_s.user = null;
1161
1157
  this.app_s.user_name = null;
@@ -1168,7 +1164,6 @@ class AuthenticationService {
1168
1164
  this.app_s.token = null;
1169
1165
  localStorage.removeItem(this.app_s.COMPANY_KEY + "token");
1170
1166
  localStorage.removeItem(this.app_s.COMPANY_KEY + "refreshToken");
1171
- console.log('[AuthService] Tokens removed from localStorage');
1172
1167
  if (resetPosition)
1173
1168
  this.goto_after = '';
1174
1169
  if (this.app_s.LOGIN_EXT != 1)
@@ -1204,23 +1199,19 @@ class AuthenticationService {
1204
1199
  }
1205
1200
  else {
1206
1201
  if (res.token) {
1207
- console.log('[AuthService] Login successful - saving token to localStorage with key:', this.app_s.COMPANY_KEY + "token");
1208
1202
  localStorage.setItem(this.app_s.COMPANY_KEY + "token", res.token);
1209
1203
  }
1210
1204
  if (res.refreshToken) {
1211
- console.log('[AuthService] Saving refreshToken to localStorage');
1212
1205
  localStorage.setItem(this.app_s.COMPANY_KEY + "refreshToken", res.refreshToken);
1213
1206
  res.result_data = [{ token: res.token, refreshToken: res.refreshToken }];
1214
1207
  return res || new QGResult();
1215
1208
  }
1216
1209
  if (res.refreshtoken) {
1217
- console.log('[AuthService] Saving refreshtoken (lowercase) to localStorage');
1218
1210
  localStorage.setItem(this.app_s.COMPANY_KEY + "refreshToken", res.refreshtoken);
1219
1211
  res.result_data = [{ token: res.token, refreshToken: res.refreshtoken }];
1220
1212
  return res || new QGResult();
1221
1213
  }
1222
1214
  if (res.result_data.length > 0) {
1223
- console.log('[AuthService] Saving token from result_data to localStorage');
1224
1215
  localStorage.setItem(this.app_s.COMPANY_KEY + "token", res.result_data[0].token);
1225
1216
  }
1226
1217
  }
@@ -1527,7 +1518,6 @@ class AuthenticationService {
1527
1518
  if ("/login" != this.router.url && this.router.url.indexOf("/rp/") == -1)
1528
1519
  this.goto_after = window.location.toString();
1529
1520
  const hasToken = localStorage.getItem(this.app_s.COMPANY_KEY + "token") !== null;
1530
- console.log('[AuthService] checkCredentials - hasToken:', hasToken, 'COMPANY_KEY:', this.app_s.COMPANY_KEY);
1531
1521
  if (!hasToken) {
1532
1522
  return false;
1533
1523
  }
@@ -1567,11 +1557,9 @@ class QueryService {
1567
1557
  doQuery(queryp, displayError = true, url_sec = null) {
1568
1558
  this.app_s.start();
1569
1559
  if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") == null) {
1570
- console.log("token non online");
1571
1560
  let rr = new Observable();
1572
1561
  return rr;
1573
1562
  }
1574
- //console.log('queryp before ',queryp);
1575
1563
  this.headers = new HttpHeaders({
1576
1564
  "Content-Type": "application/json",
1577
1565
  Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
@@ -1580,7 +1568,6 @@ class QueryService {
1580
1568
  this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
1581
1569
  else
1582
1570
  this.url = url_sec;
1583
- // console.log('QueryService url: '+ this.url);
1584
1571
  if (queryp.types != null && queryp.sql.indexOf("_MULTI") == -1)
1585
1572
  for (let i = 0; i < queryp.types.length; i++) {
1586
1573
  if (queryp.values[i] == null)
@@ -1627,13 +1614,11 @@ class QueryService {
1627
1614
  }
1628
1615
  }
1629
1616
  }
1630
- //console.log('queryp after ',queryp);
1631
1617
  let post_v = JSON.stringify(queryp);
1632
1618
  // Check if running on localhost:4200
1633
1619
  const isLocalhost = window.location.hostname === 'localhost' && window.location.port === '4200';
1634
1620
  // se rilevo che sono sono localhost:4200 scrivo su console
1635
1621
  if (isLocalhost) {
1636
- console.log("QueryService: " + post_v);
1637
1622
  }
1638
1623
  return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
1639
1624
  this.app_s.complete();
@@ -1710,7 +1695,6 @@ class FHGuard {
1710
1695
  if (await this.auth.checkCredentials()) {
1711
1696
  if (this.routingDestination == "home")
1712
1697
  return true;
1713
- //console.log('canActivate 1');
1714
1698
  if (this.app_s.user_isadmin != null)
1715
1699
  if (this.app_s.user_isadmin == "1")
1716
1700
  return true;
@@ -1724,13 +1708,11 @@ class FHGuard {
1724
1708
  return;
1725
1709
  }
1726
1710
  }
1727
- // console.log('canActivate 4', this.arr_accessi,this.routingDestination.split("/")[0]);
1728
1711
  this.toast.error("ACCESS DENIED [0X0003]");
1729
1712
  this.app_s.complete();
1730
1713
  resolve(false);
1731
1714
  return;
1732
1715
  }
1733
- //console.log('canActivate 5');
1734
1716
  let p = new QParam();
1735
1717
  p.sql = "SELECT_USER_ACCESS";
1736
1718
  p.values = [];
@@ -1744,13 +1726,11 @@ class FHGuard {
1744
1726
  return;
1745
1727
  }
1746
1728
  else if (data.result_msg == "OK" && data.result_data.length > 0) {
1747
- //console.log('canActivate 6');
1748
1729
  this.app_s.user_roles = data.result_data[0].roles;
1749
1730
  if (this.app_s.user_roles == null)
1750
1731
  this.app_s.user_roles = "[NO_RUOLI_CONFIGURATI]";
1751
1732
  this.app_s.user_isadmin = data.result_data[0].isadmin;
1752
1733
  this.app_s.user = data.result_data[0].username;
1753
- // console.log('this.app_s.user_isadmin ',this.app_s.user_isadmin);
1754
1734
  if (this.app_s.user_isadmin != null)
1755
1735
  if (this.app_s.user_isadmin == "1") {
1756
1736
  resolve(true);
@@ -1761,12 +1741,10 @@ class FHGuard {
1761
1741
  // this.app_s.getState().app_enabled = [];
1762
1742
  p.types = ["string"];
1763
1743
  p.values = [this.app_s.user];
1764
- //console.log('canActivate 8');
1765
1744
  this.querys.doQuery(p).subscribe((data) => {
1766
1745
  this.arr_accessi = data.result_data;
1767
1746
  if (this.arr_accessi)
1768
1747
  for (let i = 0; i < this.arr_accessi.length; i++) {
1769
- //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
1770
1748
  if (this.arr_accessi[i].type == "M") {
1771
1749
  if ("[" + this.arr_accessi[i].url.split("/")[0] + "]" ==
1772
1750
  "[" + this.routingDestination.split("/")[0] + "]") {
@@ -1775,7 +1753,6 @@ class FHGuard {
1775
1753
  }
1776
1754
  }
1777
1755
  }
1778
- //console.log('canActivate 11');
1779
1756
  this.toast.error("ACCESS DENIED [0X0001]");
1780
1757
  resolve(false);
1781
1758
  this.app_s.complete();
@@ -1792,13 +1769,9 @@ class FHGuard {
1792
1769
  });
1793
1770
  }
1794
1771
  else {
1795
- // console.log('this.app_s ',this.app_s);
1796
1772
  let p = new QParam();
1797
- // console.log('this.app_s.user_isadmin ',this.app_s.user_isadmin);
1798
- // console.log('this.app_s.user_isadminsss ',this.app_s.user_isadmin+'');
1799
1773
  if (this.app_s.user_isadmin != null)
1800
1774
  if (this.app_s.user_isadmin + "" == "1") {
1801
- // console.log('resolve true');
1802
1775
  resolve(true);
1803
1776
  return;
1804
1777
  }
@@ -1806,13 +1779,10 @@ class FHGuard {
1806
1779
  // this.app_s.getState().app_enabled = [];
1807
1780
  p.types = ["string"];
1808
1781
  p.values = [this.app_s.user];
1809
- //console.log('canActivate 8');
1810
1782
  this.querys.doQuery(p).subscribe((data) => {
1811
- //console.log('canActivate 9');
1812
1783
  this.arr_accessi = data.result_data;
1813
1784
  if (this.arr_accessi)
1814
1785
  for (let i = 0; i < this.arr_accessi.length; i++) {
1815
- //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
1816
1786
  if (this.arr_accessi[i].type == "M") {
1817
1787
  if ("[" + this.arr_accessi[i].url.split("/")[0] + "]" ==
1818
1788
  "[" + this.routingDestination.split("/")[0] + "]") {
@@ -1821,7 +1791,6 @@ class FHGuard {
1821
1791
  }
1822
1792
  }
1823
1793
  }
1824
- // console.log(this.arr_accessi,' ',this.routingDestination);
1825
1794
  this.toast.error("ACCESS DENIED [0X0005]");
1826
1795
  resolve(false);
1827
1796
  this.app_s.complete();
@@ -1829,7 +1798,6 @@ class FHGuard {
1829
1798
  });
1830
1799
  }
1831
1800
  });
1832
- //console.log('canActivate 12');
1833
1801
  }
1834
1802
  else {
1835
1803
  this.router.navigate(["login"]);
@@ -1966,7 +1934,6 @@ class FHComboboxComponent {
1966
1934
  }
1967
1935
  catch (e) {
1968
1936
  this.dis_value = this.selval;
1969
- //console.log("errore split -> this.valDef ", this.valDef);
1970
1937
  }
1971
1938
  }
1972
1939
  resetValue() {
@@ -1980,14 +1947,12 @@ class FHComboboxComponent {
1980
1947
  this.smtr.nativeElement.focus();
1981
1948
  }
1982
1949
  reset() {
1983
- //console.log("reset");
1984
1950
  this.selval = '-1';
1985
1951
  this.valDef = '-1';
1986
1952
  this.myData = new Array();
1987
1953
  this.update_dis();
1988
1954
  }
1989
1955
  fillCombo() {
1990
- // console.log(this.init_fill);
1991
1956
  // if(!this.init_fill){this.init_fill=true;return;}
1992
1957
  if (this.sql == null)
1993
1958
  this.sql = '';
@@ -2003,7 +1968,6 @@ class FHComboboxComponent {
2003
1968
  p.sql = this.sql;
2004
1969
  p.types = this.types;
2005
1970
  p.values = this.values;
2006
- // console.log(p);
2007
1971
  if (this.db_type == '1')
2008
1972
  this._dataService.doQuery(p).subscribe((data) => {
2009
1973
  if (data != null)
@@ -2040,14 +2004,12 @@ class FHComboboxComponent {
2040
2004
  b_found = true;
2041
2005
  });
2042
2006
  if (!b_found) {
2043
- // console.log('Inserisco ',o);
2044
2007
  this.myData.push(o);
2045
2008
  } //else console.log('Esiste già ',o);
2046
2009
  }
2047
2010
  resetD(o) {
2048
2011
  this.myData = o;
2049
2012
  this.selval = '-1';
2050
- // console.log(this.smtr); console.log(this.smtr.nativeElement);
2051
2013
  this.setByValue(this.valDef);
2052
2014
  if (this.getValue() == '-1' && this.valDef != '-1')
2053
2015
  if (this.valDef != null)
@@ -2057,7 +2019,6 @@ class FHComboboxComponent {
2057
2019
  this.fillend.emit();
2058
2020
  }
2059
2021
  setByDescri(desc_val) {
2060
- // console.log("setByDescri "+desc_val);
2061
2022
  this.valDef = desc_val;
2062
2023
  this.selval = '-1';
2063
2024
  if (desc_val == '')
@@ -2133,7 +2094,6 @@ class FHComboboxComponent {
2133
2094
  else
2134
2095
  return;
2135
2096
  }
2136
- // console.log("qui1");
2137
2097
  if (this.myData.length == 0 || this.myData[0] == null) {
2138
2098
  if (desc_val != null)
2139
2099
  if (desc_val != '')
@@ -2144,9 +2104,7 @@ class FHComboboxComponent {
2144
2104
  else
2145
2105
  return;
2146
2106
  }
2147
- //console.log("qui2");
2148
2107
  for (let j = 0; j < this.myData.length; j++) {
2149
- //console.log(this.myData[j].valore +' '+ desc_val);
2150
2108
  if (this.myData[j].valore == desc_val) {
2151
2109
  this.selval = '' + this.myData[j].valore;
2152
2110
  if (this.myData[j].descrizione_valore != null)
@@ -2192,7 +2150,6 @@ class FHComboboxComponent {
2192
2150
  return null;
2193
2151
  }
2194
2152
  getValue() {
2195
- // console.log(this.selval);
2196
2153
  if (!this.enabled) {
2197
2154
  if (this.selval == null)
2198
2155
  return this.valDef;
@@ -2535,7 +2492,6 @@ class FHAutoCompleteComponent {
2535
2492
  }
2536
2493
  catch (e) {
2537
2494
  this.dis_value = this.selval;
2538
- //console.log("errore split -> this.valDef ", this.valDef);
2539
2495
  }
2540
2496
  }
2541
2497
  constructor(_dataService, _dataService_odbc, _tsr) {
@@ -2566,7 +2522,6 @@ class FHAutoCompleteComponent {
2566
2522
  this.focusout.emit();
2567
2523
  }
2568
2524
  onChange_up(e) {
2569
- // console.log('onChange()');
2570
2525
  this.searchItemsFiltered = [];
2571
2526
  if (this.sItem != null) {
2572
2527
  if (this.sItem != '') {
@@ -2644,7 +2599,6 @@ class FHAutoCompleteComponent {
2644
2599
  return data['descrizione_valore'];
2645
2600
  }
2646
2601
  resetValue(b_res_valdef = true) {
2647
- //console.log(">>>resetValue<<<");
2648
2602
  this.selval = '';
2649
2603
  if (b_res_valdef)
2650
2604
  this.valDef = '';
@@ -2654,7 +2608,6 @@ class FHAutoCompleteComponent {
2654
2608
  this.update_dis();
2655
2609
  }
2656
2610
  reset() {
2657
- //console.log(">>>reset<<<");
2658
2611
  this.selval = '';
2659
2612
  this.valDef = '';
2660
2613
  this.selval = null;
@@ -2669,7 +2622,6 @@ class FHAutoCompleteComponent {
2669
2622
  }, this.load_delay);
2670
2623
  }
2671
2624
  fillCombo() {
2672
- // console.log('fillcombo ',this.option_values);
2673
2625
  this.myData = new Array();
2674
2626
  this.searchItemsFiltered = new Array();
2675
2627
  if (this.sql == null)
@@ -2726,12 +2678,9 @@ class FHAutoCompleteComponent {
2726
2678
  v.descrizione_valore = this.translateValue(v.descrizione_valore);
2727
2679
  return v;
2728
2680
  });
2729
- // console.log("🚀 ~ file: fh-autocomplete.ts:324 ~ resetD ~ this.myData:",
2730
- // this.myData)
2731
2681
  this.selval = '';
2732
2682
  this.table_hidden = false;
2733
2683
  if (!this.only_from_list) {
2734
- // console.log('resetD ',this.valDef);
2735
2684
  this.last_v = this.valDef;
2736
2685
  this.selval = this.valDef;
2737
2686
  this.sItem = this.selval;
@@ -2744,7 +2693,6 @@ class FHAutoCompleteComponent {
2744
2693
  }
2745
2694
  }
2746
2695
  setByDescri(desc_val) {
2747
- // console.log('setByDescri ',desc_val);
2748
2696
  this.valDef = desc_val;
2749
2697
  this.selval = '';
2750
2698
  if (desc_val == '') {
@@ -2777,7 +2725,6 @@ class FHAutoCompleteComponent {
2777
2725
  this.setByValue(this.last_v);
2778
2726
  }
2779
2727
  setByValue(desc_val) {
2780
- //console.log('setByValue ',desc_val);
2781
2728
  this.valDef = desc_val;
2782
2729
  this.selval = desc_val;
2783
2730
  if (this.myData != null) {
@@ -2868,7 +2815,6 @@ class FHAutoCompleteComponent {
2868
2815
  }
2869
2816
  }
2870
2817
  ngAfterViewInit() {
2871
- console.log('🚀 ~ file: fh-autocomplete.ts:481 ~ ngAfterViewInit ~ ngAfterViewInit:', this.init_fill);
2872
2818
  setTimeout(() => {
2873
2819
  if (this.init_fill) {
2874
2820
  if (this.sql == '') {
@@ -4767,16 +4713,13 @@ class FHUploadComponent {
4767
4713
  this.programma_da_eseguire = programma_da_eseguire;
4768
4714
  this.allow_delete = allow_delete;
4769
4715
  this.ref_allegato();
4770
- // console.log('init! ',this.tipo,this.label)
4771
4716
  if (this.tipo.indexOf('SELECT_') > -1) {
4772
4717
  this.multi_list = true;
4773
4718
  this.load_types();
4774
- //console.log('fillCombo');
4775
4719
  }
4776
4720
  else if ((this.tipo || '') != '')
4777
4721
  this.direct_type = true;
4778
4722
  this.show_upload = show_upload;
4779
- // console.log('this.tipo ',this.tipo,'this.direct_type ',this.direct_type);
4780
4723
  if (all_g)
4781
4724
  if (this.select_file)
4782
4725
  this.select_file.nativeElement.click();
@@ -5444,7 +5387,6 @@ class FHDatePickerComponent {
5444
5387
 
5445
5388
  }
5446
5389
  let arr: Array<string> = this.pickerId.nativeElement.value.split('-').join('/').split('/');
5447
- console.log(arr);
5448
5390
  if (arr.length == 3) {
5449
5391
  let yy=parseInt(arr[2]);
5450
5392
 
@@ -5476,7 +5418,6 @@ class FHDatePickerComponent {
5476
5418
  }
5477
5419
  chxx(e) {
5478
5420
  this.setlocalt();
5479
- //console.log(e);
5480
5421
  //e.stopPropagation();
5481
5422
  }
5482
5423
  /*public myDatePickerOptions: IMyDpOptions = {
@@ -5487,7 +5428,6 @@ class FHDatePickerComponent {
5487
5428
  monthLabels: { 1: 'Gen', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'Mag', 6: 'Giu', 7: 'Lug', 8: 'Ago', 9: 'Set', 10: 'Ott', 11: 'Nov', 12: 'Dic' }
5488
5429
  };*/
5489
5430
  ch(event) {
5490
- // console.log("ON CHANGE ", this.getValue());
5491
5431
  this.onChange(this.getValue());
5492
5432
  this.change.emit(this.getValue());
5493
5433
  }
@@ -5499,7 +5439,6 @@ class FHDatePickerComponent {
5499
5439
  this.setlocalt();
5500
5440
  }
5501
5441
  setlocalt() {
5502
- //console.log('setlocalt ',this._apps.user_lang);
5503
5442
  if (this._apps.user_lang == null || this._apps.user_lang == '') {
5504
5443
  setTimeout(() => {
5505
5444
  this.setlocalt();
@@ -5508,11 +5447,9 @@ class FHDatePickerComponent {
5508
5447
  }
5509
5448
  if ((this._apps.user_lang || '') == 'it') {
5510
5449
  this.adapter.setLocale('it');
5511
- //console.log('set locale it');
5512
5450
  }
5513
5451
  else if (this._apps.user_lang == 'en') {
5514
5452
  this.adapter.setLocale('en');
5515
- // console.log('set locale gb');
5516
5453
  }
5517
5454
  else {
5518
5455
  this.adapter.setLocale('it');
@@ -5587,7 +5524,6 @@ class FHDatePickerComponent {
5587
5524
  this.date_sel = new Date();
5588
5525
  }
5589
5526
  setValue(d) {
5590
- // console.log("🚀 ~ file: fhdatepicker.ts:284 ~ setValue ~ d", d)
5591
5527
  this.setlocalt();
5592
5528
  // this.dateAdapter.setLocale("it-IT");
5593
5529
  if (d == null) {
@@ -5920,7 +5856,6 @@ class MonthYearPickerComponent {
5920
5856
  }
5921
5857
  ch(event) {
5922
5858
  const value = this.date ? this.date.toDate() : null;
5923
- console.log("Valore aggiornato:", value);
5924
5859
  this.onChange(value);
5925
5860
  this.change.emit(value);
5926
5861
  }
@@ -6072,7 +6007,6 @@ class YearPickerComponent {
6072
6007
  }
6073
6008
  ch(event) {
6074
6009
  const value = this.date ? this.date.toDate() : null;
6075
- console.log("Valore aggiornato:", value);
6076
6010
  this.onChange(value);
6077
6011
  this.change.emit(value);
6078
6012
  }
@@ -6325,19 +6259,16 @@ class FHListComponent {
6325
6259
  if (!this.init_fill && !force) {
6326
6260
  return;
6327
6261
  }
6328
- // console.log('fillcombolist');
6329
6262
  let p = new QParam();
6330
6263
  p.sql = this.sql;
6331
6264
  p.types = this.types;
6332
6265
  p.values = this.values;
6333
- console.log('p ', p);
6334
6266
  this._dataService.doQuery(p).subscribe((data) => {
6335
6267
  if (data != null)
6336
6268
  if (data.result_msg == 'OK') {
6337
6269
  this.myData = data.result_data;
6338
6270
  this.applyFilter();
6339
6271
  this.resetValue();
6340
- // console.log(this.smtr); console.log(this.smtr.nativeElement);
6341
6272
  this.setByValue(this.valDef);
6342
6273
  if (this.getValue() == '' && this.valDef != '-1')
6343
6274
  this.setByDescri(this.valDef);
@@ -6358,12 +6289,10 @@ class FHListComponent {
6358
6289
  let arr_val = desc_val.split(this.separator);
6359
6290
  for (let j = 0; j < this.myData.length; j++)
6360
6291
  for (let j1 = 0; j1 < arr_val.length; j1++) {
6361
- // console.log('v1 - v2', this.myData[j].descrizione_valore, arr_val[j1]);
6362
6292
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
6363
6293
  this.myData[j].checked = true;
6364
6294
  }
6365
6295
  }
6366
- // console.log('setByDescri ', this.myData);
6367
6296
  this.applyFilter();
6368
6297
  }
6369
6298
  setByIndex(ind) {
@@ -6378,22 +6307,16 @@ class FHListComponent {
6378
6307
  }
6379
6308
  }
6380
6309
  setByValue(desc_val) {
6381
- //console.log("setbyval " + desc_val);
6382
6310
  this.valDef = desc_val;
6383
6311
  if (desc_val == null)
6384
6312
  return;
6385
- // console.log(this.myData);
6386
6313
  if ('' + desc_val == '') {
6387
- // console.log('qqq1111');
6388
6314
  return;
6389
6315
  }
6390
- // console.log("qui");
6391
6316
  if (this.myData == null)
6392
6317
  return;
6393
- // console.log("qui1");
6394
6318
  if (this.myData.length == 0 || this.myData[0] == null)
6395
6319
  return;
6396
- //console.log("qui2");
6397
6320
  let arr_val = desc_val.split(this.separator);
6398
6321
  for (let j = 0; j < this.myData.length; j++)
6399
6322
  for (let j1 = 0; j1 < arr_val.length; j1++) {
@@ -6401,7 +6324,6 @@ class FHListComponent {
6401
6324
  this.myData[j].checked = true;
6402
6325
  }
6403
6326
  }
6404
- // console.log('setByValue ', this.myData);
6405
6327
  this.applyFilter();
6406
6328
  }
6407
6329
  getDescri() {
@@ -6464,13 +6386,7 @@ class FHListComponent {
6464
6386
  this.setByDescri(this.valDef);
6465
6387
  }
6466
6388
  ngAfterViewInit() {
6467
- // console.log(
6468
- // '🚀 ~ file: fhlist.ts ~ line 259 ~ FHListComponent ~ ngAfterViewInit ~ ngAfterViewInit init_fill sql ',
6469
- // this.init_fill,
6470
- // this.sql
6471
- // );
6472
6389
  setTimeout(() => {
6473
- // console.log("ngAfterViewInit"); console.log(this.init_fill);
6474
6390
  if (this.init_fill == true) {
6475
6391
  if (this.sql == '') {
6476
6392
  return;
@@ -6662,13 +6578,11 @@ class FHWinListComponent {
6662
6578
  if (data.sql != null)
6663
6579
  this.doFill();
6664
6580
  }
6665
- // console.log("🚀 ~ file: win_list_pick.ts ~ line 70 ~ FHWinListComponent ~ data", data)
6666
6581
  }
6667
6582
  close() {
6668
6583
  this.dialogRef.close(null);
6669
6584
  }
6670
6585
  doFill() {
6671
- // console.log("🚀 ~ file: win_list_pick.ts ~ line 90 ~ FHWinListComponent ~ doFill ~ doFill")
6672
6586
  if (this.cmb_sel == null) {
6673
6587
  setTimeout(() => {
6674
6588
  this.doFill();
@@ -6682,7 +6596,6 @@ class FHWinListComponent {
6682
6596
  this.cmb_sel.types = this.types;
6683
6597
  this.cmb_sel.values = this.values;
6684
6598
  this.cmb_sel.fillCombo(true);
6685
- // console.log("🚀 ~ file: win_list_pick.ts ~ line 103 ~ FHWinListComponent ~ doFill ~ fillCombo")
6686
6599
  }
6687
6600
  ok() {
6688
6601
  if (this.required)
@@ -8505,7 +8418,6 @@ class FHFilterComboboxComponent {
8505
8418
  this.dis_value = this.valDef.split("-1").join("");
8506
8419
  }
8507
8420
  catch (e) {
8508
- console.log("errore split -> this.valDef ", this.valDef);
8509
8421
  }
8510
8422
  }
8511
8423
  resetValue() {
@@ -8524,9 +8436,7 @@ class FHFilterComboboxComponent {
8524
8436
  this.update_dis();
8525
8437
  }
8526
8438
  fillCombo() {
8527
- // console.log(this.init_fill);
8528
8439
  // if(!this.init_fill){this.init_fill=true;return;}
8529
- // console.log("fillcombo "+this.sql);
8530
8440
  if (this.sql == null)
8531
8441
  this.sql = "";
8532
8442
  if (this.sql.indexOf("|") != -1 && this.sql.indexOf("$") != -1) {
@@ -8538,7 +8448,6 @@ class FHFilterComboboxComponent {
8538
8448
  p.types = this.types;
8539
8449
  p.values = this.values;
8540
8450
  let ok_op = false;
8541
- // console.log(p);
8542
8451
  if (this.db_type == "1")
8543
8452
  this._dataService.doQuery(p).subscribe((data) => {
8544
8453
  let ok_op = false;
@@ -8585,14 +8494,12 @@ class FHFilterComboboxComponent {
8585
8494
  resetD(o) {
8586
8495
  this.myData = o;
8587
8496
  this.selval = "-1";
8588
- // console.log(this.smtr); console.log(this.smtr.nativeElement);
8589
8497
  this.setByValue(this.valDef);
8590
8498
  if (this.getValue() == "-1" && this.valDef != "-1")
8591
8499
  this.setByDescri(this.valDef);
8592
8500
  this.fillend.emit();
8593
8501
  }
8594
8502
  setByDescri(desc_val) {
8595
- // console.log("setByDescri "+desc_val);
8596
8503
  this.valDef = desc_val;
8597
8504
  this.selval = "-1";
8598
8505
  if (desc_val == "")
@@ -8674,7 +8581,6 @@ class FHFilterComboboxComponent {
8674
8581
  return null;
8675
8582
  }
8676
8583
  getValue() {
8677
- // console.log(this.selval);
8678
8584
  if (!this.enabled) {
8679
8585
  if (this.selval == null)
8680
8586
  return this.valDef;
@@ -8866,7 +8772,6 @@ class GridService {
8866
8772
  this.url = this.app_s.API_ENDPOINT + this.app_s.GRID_ENDPOINT;
8867
8773
  else
8868
8774
  this.url = url_sec;
8869
- //console.log("🚀 ~ file: grid.service.ts ~ line 35 ~ GridService ~ this.url", this.url,url_sec)
8870
8775
  let post_v = JSON.stringify(queryp);
8871
8776
  return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
8872
8777
  this.app_s.complete();
@@ -8935,9 +8840,7 @@ class FileService {
8935
8840
  this.url = url;
8936
8841
  else
8937
8842
  this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
8938
- // console.log('FileService url: '+ this.url);
8939
8843
  let post_v = JSON.stringify(queryp);
8940
- // console.log(post_v);
8941
8844
  return this.http
8942
8845
  .post(this.url, post_v, {
8943
8846
  headers: this.headers,
@@ -9177,7 +9080,6 @@ class FHGridComponent {
9177
9080
  }
9178
9081
  }
9179
9082
  catch (e) {
9180
- console.log(e);
9181
9083
  }
9182
9084
  }
9183
9085
  gf = null;
@@ -9409,7 +9311,6 @@ class FHGridComponent {
9409
9311
  p_fi = {};
9410
9312
  dataSource = {
9411
9313
  getRows: (params) => {
9412
- // console.log("🚀 ~ FHGridComponent ~ getRows:")
9413
9314
  this.num_r = -1;
9414
9315
  this.m_appService.start();
9415
9316
  let p = { kd: this.tbl_name };
@@ -9448,7 +9349,6 @@ class FHGridComponent {
9448
9349
  if (data != null)
9449
9350
  if (data.result_msg == 'OK') {
9450
9351
  ok_op = true;
9451
- // console.log(data.result_data, data.count);
9452
9352
  this.rowData = data.result_data;
9453
9353
  params.success({ rowData: data.result_data, rowCount: data.count });
9454
9354
  this.b_init = true;
@@ -9458,14 +9358,11 @@ class FHGridComponent {
9458
9358
  this.m_appService.complete();
9459
9359
  this.fill_end.emit();
9460
9360
  this.check_width();
9461
- // console.log("end");
9462
- // console.log(localStorage.getItem(this.grid_key+'_POS'));
9463
9361
  localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
9464
9362
  if (localStorage.getItem(this.grid_key + '_POS2') != null)
9465
9363
  if (this.gridOptions != null)
9466
9364
  if (this.gridApi != null)
9467
9365
  this.gridApi.forEachNode((node) => {
9468
- // console.log(node:any)
9469
9366
  if (this.getRowId(node) ===
9470
9367
  localStorage.getItem(this.grid_key + '_POS2')) {
9471
9368
  node.setSelected(true);
@@ -9601,7 +9498,6 @@ class FHGridComponent {
9601
9498
  this.gridApi.setGridOption('headerHeight', this.header_h);
9602
9499
  this.gridOptions.suppressCopyRowsToClipboard = true;
9603
9500
  this.gridOptions.sendToClipboard = (v) => {
9604
- // console.log('v ', v);
9605
9501
  if (this.enable_copy)
9606
9502
  this.gridApi?.copySelectedRangeToClipboard();
9607
9503
  {
@@ -9634,7 +9530,6 @@ class FHGridComponent {
9634
9530
  },
9635
9531
  debug: false,
9636
9532
  onCellValueChanged: (event) => {
9637
- // console.log('onCellValueChanged: ' + event.oldValue + ' to ' + event.newValue);
9638
9533
  this.cellValueChanged.emit(event);
9639
9534
  },
9640
9535
  pagination: this.pagination,
@@ -9760,7 +9655,6 @@ class FHGridComponent {
9760
9655
  });
9761
9656
  }
9762
9657
  okr(event) {
9763
- //console.log(event.column.colDef.field);
9764
9658
  event.data.nome_colonna = event.column.colDef.field;
9765
9659
  this.cell_edited.emit(event.data);
9766
9660
  }
@@ -9775,7 +9669,6 @@ class FHGridComponent {
9775
9669
  }
9776
9670
  show_pulisci_filtri = false;
9777
9671
  autoSizeAll() {
9778
- // console.log("🚀 ~ FHGridComponent ~ autoSizeAll ~ autoSizeAll")
9779
9672
  if (this.gridOptions == null)
9780
9673
  return;
9781
9674
  if (this.gridApi == null)
@@ -9797,7 +9690,6 @@ class FHGridComponent {
9797
9690
  this.save_cfg();
9798
9691
  }
9799
9692
  fitSizeAll() {
9800
- // console.log("🚀 ~ FHGridComponent ~ fitSizeAll ~ fitSizeAll")
9801
9693
  if (this.gridApi)
9802
9694
  this.gridApi.sizeColumnsToFit();
9803
9695
  this.save_cfg();
@@ -9824,13 +9716,11 @@ class FHGridComponent {
9824
9716
  }
9825
9717
  });
9826
9718
  }
9827
- // console.log('ENTRO '+f+" "+t);
9828
9719
  if (t == 'Number') {
9829
9720
  if (this.gridApi)
9830
9721
  this.gridApi.forEachNode((node) => {
9831
9722
  if (node.isSelected())
9832
9723
  if (node.data[f] != null) {
9833
- // console.log('selected');
9834
9724
  if (s != '')
9835
9725
  s = s + ',';
9836
9726
  s = s + node.data[f];
@@ -10055,7 +9945,6 @@ class FHGridComponent {
10055
9945
  }
10056
9946
  }
10057
9947
  catch (eer) {
10058
- console.log(eer);
10059
9948
  }
10060
9949
  }
10061
9950
  if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
@@ -10066,7 +9955,6 @@ class FHGridComponent {
10066
9955
  this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || ''));
10067
9956
  }
10068
9957
  catch (eer) {
10069
- console.log(eer);
10070
9958
  }
10071
9959
  }
10072
9960
  }
@@ -10096,7 +9984,6 @@ class FHGridComponent {
10096
9984
  this.free_search();
10097
9985
  }
10098
9986
  onReady(event) {
10099
- // console.log('onReady ', event.api);
10100
9987
  this.gridApi = event.api;
10101
9988
  this.setHeaderHeight(this.header_h);
10102
9989
  if (this.gf != null && this.show_buttons && !this.pref_hidden) {
@@ -10138,7 +10025,6 @@ class FHGridComponent {
10138
10025
  b_iniended = false;
10139
10026
  onready_go() {
10140
10027
  this.ready = true;
10141
- //console.log('onready_go');
10142
10028
  setTimeout(() => {
10143
10029
  this.ckk();
10144
10030
  }, 10);
@@ -10216,7 +10102,6 @@ class FHGridComponent {
10216
10102
  }
10217
10103
  });
10218
10104
  if (ss_r != '') {
10219
- // console.log('ADDO '), ss_r;
10220
10105
  if (ss != '')
10221
10106
  ss += ' and ';
10222
10107
  ss += '(' + ss_r + ')';
@@ -10228,9 +10113,7 @@ class FHGridComponent {
10228
10113
  onCellClicked(event) {
10229
10114
  if (!this.b_init)
10230
10115
  return;
10231
- // console.log(event.rowIndex + ' ' + event.colDef.field);
10232
10116
  this.cell_clicked.emit(event);
10233
- // console.log(this.myModalNormal);
10234
10117
  // this.testom.element.nativeElement.value=event.data.descrizione;
10235
10118
  // this.testom.element.nativeElement.scrollTop =0;
10236
10119
  //this.testom.element.nativeElement.focus();
@@ -10238,14 +10121,11 @@ class FHGridComponent {
10238
10121
  // this.myModalNormal.element.nativeElement.show();
10239
10122
  }
10240
10123
  onSelectionChanged() {
10241
- // console.log('selectionChanged');
10242
10124
  }
10243
10125
  oncolumnEverythingChanged() {
10244
- // console.log('oncolumnEverythingChanged');
10245
10126
  if (!this.b_init)
10246
10127
  return;
10247
10128
  if (this.b_init) {
10248
- // console.log('salvo f: '+this.gridApi.getColumnState(),this.gridApi);
10249
10129
  if (this.gridApi)
10250
10130
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
10251
10131
  }
@@ -10263,16 +10143,13 @@ class FHGridComponent {
10263
10143
  }, 200);
10264
10144
  }
10265
10145
  onBeforeSortChanged() {
10266
- // console.log('onBeforeSortChanged');
10267
10146
  }
10268
10147
  onAfterSortChanged() {
10269
- // console.log('salvo f: '+this.gridApi.getColumnState(),this.gridApi);
10270
10148
  if (this.no_pref)
10271
10149
  return;
10272
10150
  if (this.b_init) {
10273
10151
  if (this.gridApi)
10274
10152
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
10275
- // console.log('salvo s: '+this.gridApi.getSortModel());
10276
10153
  /*
10277
10154
 
10278
10155
  localStorage.setItem(
@@ -10284,18 +10161,15 @@ class FHGridComponent {
10284
10161
  onVirtualRowRemoved() {
10285
10162
  // because this event gets fired LOTS of times, we don't print it to the
10286
10163
  // console. if you want to see it, just uncomment out this line
10287
- // console.log('onVirtualRowRemoved: ' + event.rowIndex);
10288
10164
  }
10289
10165
  onRowClicked($event) {
10290
10166
  if (!this.b_init)
10291
10167
  return;
10292
- //console.log('onRowClicked: ' );
10293
10168
  var selectedInGrid;
10294
10169
  if (this.gridApi)
10295
10170
  selectedInGrid = this.gridApi.getSelectedNodes();
10296
10171
  if (selectedInGrid != null)
10297
10172
  if (selectedInGrid[0] != null) {
10298
- // console.log((this.gridApi.getVerticalPixelRange()));
10299
10173
  localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
10300
10174
  if (this.gridApi)
10301
10175
  localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
@@ -10316,8 +10190,6 @@ class FHGridComponent {
10316
10190
  onRowDClicked($event) {
10317
10191
  if (!this.b_init)
10318
10192
  return;
10319
- //console.log('onRowClicked: ' );
10320
- //console.log(event);
10321
10193
  this.dclicked.emit($event.data);
10322
10194
  var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
10323
10195
  if (iOS) {
@@ -10331,7 +10203,6 @@ class FHGridComponent {
10331
10203
  if (!this.b_init)
10332
10204
  return;
10333
10205
  this.columndclicked.emit($event);
10334
- // console.log('onColumnEvent: ' + $event);
10335
10206
  // localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
10336
10207
  }
10337
10208
  fix_flt = '';
@@ -10779,7 +10650,6 @@ class FHWinAppLogsComponent {
10779
10650
  return { 'text-align': 'center' };
10780
10651
  },
10781
10652
  cellRenderer: (params) => {
10782
- // console.log('params.value ', params.value);
10783
10653
  if (params.value != null)
10784
10654
  if (params.value != 'null')
10785
10655
  if (params.value != '')
@@ -11308,7 +11178,6 @@ class LocalDBService {
11308
11178
  resolve(JSON.parse("" + localStorage.getItem(key)));
11309
11179
  }
11310
11180
  catch (e) {
11311
- console.log(e, "Errore JSON " + localStorage.getItem(key));
11312
11181
  resolve({});
11313
11182
  return;
11314
11183
  }
@@ -11398,7 +11267,6 @@ class FHGridJSONComponent {
11398
11267
  }
11399
11268
  }
11400
11269
  catch (e) {
11401
- console.log(e);
11402
11270
  }
11403
11271
  }
11404
11272
  gf = null;
@@ -11607,7 +11475,6 @@ class FHGridJSONComponent {
11607
11475
  suppressQuotes: false,
11608
11476
  processCellCallback: (params) => {
11609
11477
  if (params.value) {
11610
- // console.log(params.value);
11611
11478
  if (params.value == null)
11612
11479
  return '';
11613
11480
  if (typeof params.value.getMonth === 'function') {
@@ -11619,7 +11486,6 @@ class FHGridJSONComponent {
11619
11486
  }
11620
11487
  else if (params.value.length == 24 &&
11621
11488
  params.value.indexOf(':00.000Z') > -1) {
11622
- // console.log( new Date(params.value));
11623
11489
  let arrdt = new Date(params.value);
11624
11490
  // let arrdt2=arrdt[1].split(':');
11625
11491
  return (this.uti_s.pad(arrdt.getDate() + '', 2) +
@@ -11673,7 +11539,6 @@ class FHGridJSONComponent {
11673
11539
  }
11674
11540
  event;
11675
11541
  okr(event) {
11676
- //console.log(event.column.colDef.field);
11677
11542
  event.data.nome_colonna = event.column.colDef.field;
11678
11543
  this.cell_edited.emit(event.data);
11679
11544
  }
@@ -11688,10 +11553,8 @@ class FHGridJSONComponent {
11688
11553
  onResize(event?) {
11689
11554
  let bodyWidth: number = document.body.clientWidth;
11690
11555
  let bodyHeight: number = document.body.scrollHeight;
11691
- // console.log( document.body.scrollHeight);
11692
11556
  if(bodyHeight==0)bodyHeight=($(window).height());
11693
11557
  if(this.auto_height!=true)return;
11694
- // console.log("auto height "+this.auto_height+ "("+bodyWidth+")");
11695
11558
  //if(bodyWidth>1400){
11696
11559
  this.g_height=bodyHeight-240-this.off_set+'px';
11697
11560
  if(this.m_appService.getState( ).mobile)this.g_height=bodyHeight-40+'px';
@@ -11707,12 +11570,10 @@ class FHGridJSONComponent {
11707
11570
  //this.g_height=400-this.off_set+'px';
11708
11571
  // this.num_per_pag=Math.round((400-50-this.off_set)/50);
11709
11572
  //}
11710
- // console.log( this.g_height);
11711
11573
 
11712
11574
  }*/
11713
11575
  show_pulisci_filtri = false;
11714
11576
  autoSizeAll() {
11715
- // console.log("autoSizeAll");
11716
11577
  var allColumnIds = [];
11717
11578
  this.columnDefs.forEach(function (columnDef) {
11718
11579
  if (columnDef.field)
@@ -11723,7 +11584,6 @@ class FHGridJSONComponent {
11723
11584
  this.save_cfg();
11724
11585
  }
11725
11586
  fitSizeAll() {
11726
- //console.log("fitSizeAll");
11727
11587
  if (this.gridOptions.api)
11728
11588
  this.gridOptions.api.sizeColumnsToFit();
11729
11589
  this.save_cfg();
@@ -11750,13 +11610,11 @@ class FHGridJSONComponent {
11750
11610
  }
11751
11611
  });
11752
11612
  }
11753
- //console.log('ENTRO '+f+" "+t);
11754
11613
  if (t == 'number') {
11755
11614
  if (this.gridOptions.api)
11756
11615
  this.gridOptions.api.forEachNode((node) => {
11757
11616
  if (node.isSelected())
11758
11617
  if (node.data[f] != null) {
11759
- // console.log('selected');
11760
11618
  if (s != '')
11761
11619
  s = s + ',';
11762
11620
  s = s + node.data[f];
@@ -11911,7 +11769,6 @@ class FHGridJSONComponent {
11911
11769
  };
11912
11770
  }
11913
11771
  init_conf() {
11914
- // console.log(" init_conf()");
11915
11772
  //this.ckk();
11916
11773
  }
11917
11774
  createColumnDefs(em) { }
@@ -11966,43 +11823,34 @@ class FHGridJSONComponent {
11966
11823
  this.gridOptions.columnApi.applyColumnState(JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'));
11967
11824
  }
11968
11825
  catch (eer) {
11969
- console.log(eer);
11970
11826
  }
11971
11827
  }
11972
11828
  try {
11973
11829
  this.getGridApi().setSortModel(null);
11974
11830
  }
11975
11831
  catch (eer) {
11976
- console.log(eer);
11977
11832
  }
11978
11833
  if (localStorage.getItem(this.grid_key + '_SORT') != null &&
11979
11834
  (b_mantieni_ck || forza))
11980
11835
  if (localStorage.getItem(this.grid_key + '_SORT') != '') {
11981
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
11982
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
11983
11836
  try {
11984
11837
  this.getGridApi().setSortModel(JSON.parse(localStorage.getItem(this.grid_key + '_SORT') || '{}'));
11985
11838
  }
11986
11839
  catch (eer) {
11987
- console.log(eer);
11988
11840
  }
11989
11841
  }
11990
11842
  try {
11991
11843
  this.getGridApi().setFilterModel(null);
11992
11844
  }
11993
11845
  catch (eer) {
11994
- console.log(eer);
11995
11846
  }
11996
11847
  if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
11997
11848
  (b_mantieni_ck || forza))
11998
11849
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
11999
- // console.log(localStorage.getItem(this.grid_key+'_FILTER'));
12000
- // console.log('setto _FILTER: '+localStorage.getItem(this.grid_key+'_FILTER'));
12001
11850
  try {
12002
11851
  this.getGridApi().setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || '{}'));
12003
11852
  }
12004
11853
  catch (eer) {
12005
- console.log(eer);
12006
11854
  }
12007
11855
  }
12008
11856
  }
@@ -12014,7 +11862,6 @@ class FHGridJSONComponent {
12014
11862
  .read(this.m_appService.COMPANY_KEY + this.tbl_name)
12015
11863
  .then((dt) => {
12016
11864
  this.rowData = dt;
12017
- //console.log( this.rowData);
12018
11865
  });
12019
11866
  }
12020
11867
  sortAndFilter(sortModel, filterModel) {
@@ -12039,11 +11886,9 @@ class FHGridJSONComponent {
12039
11886
  this.refresh_all_rows();
12040
11887
  }
12041
11888
  onModelUpdated() {
12042
- // console.log('onModelUpdated');
12043
11889
  // this.calculateRowCount();
12044
11890
  }
12045
11891
  onReady(event) {
12046
- // console.log(this.header_h);
12047
11892
  this.setHeaderHeight(this.header_h);
12048
11893
  if (this.gf != null && this.show_buttons) {
12049
11894
  this.gf.sql = 'SELECT_CFG_GRID';
@@ -12078,7 +11923,6 @@ class FHGridJSONComponent {
12078
11923
  b_iniended = false;
12079
11924
  onready_go() {
12080
11925
  this.ready = true;
12081
- //console.log('onready_go');
12082
11926
  setTimeout(() => {
12083
11927
  this.ckk();
12084
11928
  }, 10);
@@ -12135,9 +11979,7 @@ class FHGridJSONComponent {
12135
11979
  testom = null;
12136
11980
  myModalNormal = null;
12137
11981
  onCellClicked(event) {
12138
- // console.log(event.rowIndex + ' ' + event.colDef.field);
12139
11982
  this.cell_clicked.emit(event);
12140
- // console.log(this.myModalNormal);
12141
11983
  // this.testom.element.nativeElement.value=event.data.descrizione;
12142
11984
  // this.testom.element.nativeElement.scrollTop =0;
12143
11985
  //this.testom.element.nativeElement.focus();
@@ -12145,47 +11987,35 @@ class FHGridJSONComponent {
12145
11987
  // this.myModalNormal.element.nativeElement.show();
12146
11988
  }
12147
11989
  onCellValueChanged(event) {
12148
- // console.log('onCellValueChanged: ' + event.oldValue + ' to ' + event.newValue);
12149
11990
  }
12150
11991
  onCellDoubleClicked(event) {
12151
- // console.log('onCellDoubleClicked: ' + event.rowIndex + ' ' + event.colDef.field);
12152
11992
  }
12153
11993
  onCellFocused(event) {
12154
- //console.log('onCellFocused: (' + event.rowIndex + ',' + event.colIndex + ')');
12155
11994
  }
12156
11995
  onSelectionChanged() {
12157
- // console.log('selectionChanged');
12158
11996
  }
12159
11997
  onBeforeFilterChanged() {
12160
- // console.log('beforeFilterChanged');
12161
11998
  }
12162
11999
  oncolumnEverythingChanged(event) {
12163
- // console.log('oncolumnEverythingChanged');
12164
12000
  if (this.b_init) {
12165
- // console.log('salvo f: '+JSON.stringify(this.gridOptions.columnApi.getColumnState()));
12166
12001
  if (this.gridOptions.columnApi)
12167
12002
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
12168
12003
  }
12169
12004
  }
12170
12005
  onAfterFilterChanged() {
12171
- // console.log('afterFilterChanged');
12172
12006
  localStorage.removeItem(this.grid_key + '_POS');
12173
12007
  if (this.b_init) {
12174
- // console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
12175
12008
  if (this.gridOptions.api)
12176
12009
  localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
12177
12010
  }
12178
12011
  }
12179
12012
  onFilterModified() {
12180
- //console.log('onFilterModified');
12181
12013
  if (this.b_init) {
12182
- //console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
12183
12014
  if (this.gridOptions.api)
12184
12015
  localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
12185
12016
  }
12186
12017
  }
12187
12018
  onBeforeSortChanged() {
12188
- // console.log('onBeforeSortChanged');
12189
12019
  }
12190
12020
  onAfterSortChanged() {
12191
12021
  if (this.b_init) {
@@ -12195,16 +12025,13 @@ class FHGridJSONComponent {
12195
12025
  onVirtualRowRemoved($event) {
12196
12026
  // because this event gets fired LOTS of times, we don't print it to the
12197
12027
  // console. if you want to see it, just uncomment out this line
12198
- // console.log('onVirtualRowRemoved: ' + event.rowIndex);
12199
12028
  }
12200
12029
  onRowClicked($event) {
12201
- //console.log('onRowClicked: ' );
12202
12030
  var selectedInGrid;
12203
12031
  if (this.gridOptions.api)
12204
12032
  selectedInGrid = this.gridOptions.api.getSelectedNodes();
12205
12033
  if (selectedInGrid != null)
12206
12034
  if (selectedInGrid[0] != null) {
12207
- // console.log((this.gridOptions.api.getVerticalPixelRange()));
12208
12035
  localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
12209
12036
  if (this.gridOptions.api)
12210
12037
  localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridOptions.api.getVerticalPixelRange()));
@@ -12222,8 +12049,6 @@ class FHGridJSONComponent {
12222
12049
  }
12223
12050
  sRow;
12224
12051
  onRowDClicked($event) {
12225
- //console.log('onRowClicked: ' );
12226
- //console.log(event);
12227
12052
  this.dclicked.emit($event.data);
12228
12053
  var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
12229
12054
  if (iOS) {
@@ -12239,7 +12064,6 @@ class FHGridJSONComponent {
12239
12064
  // the method just prints the event name
12240
12065
  onColumnEvent($event) {
12241
12066
  this.columndclicked.emit($event);
12242
- //console.log('onColumnEvent: ' + $event);
12243
12067
  // localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridOptions.api.getColumnDef()));
12244
12068
  }
12245
12069
  fix_flt = '';
@@ -12960,28 +12784,22 @@ class FHImageViewerComponent {
12960
12784
  });
12961
12785
  }
12962
12786
  openFullscreen() {
12963
- // console.log("cc", this.photo_c.imgx);
12964
12787
  if (this.photo_c)
12965
12788
  if (this.photo_c.imgx)
12966
12789
  this.elem = this.photo_c.imgx.nativeElement;
12967
- //console.log("openFullscreen ", this.elem);
12968
12790
  if (this.elem.requestFullscreen) {
12969
- //console.log("requestFullscreen");
12970
12791
  this.elem.requestFullscreen();
12971
12792
  }
12972
12793
  else if (this.elem.mozRequestFullScreen) {
12973
12794
  /* Firefox */
12974
- // console.log("mozRequestFullScreen");
12975
12795
  this.elem.mozRequestFullScreen();
12976
12796
  }
12977
12797
  else if (this.elem.webkitRequestFullscreen) {
12978
12798
  /* Chrome, Safari and Opera */
12979
- // console.log("webkitRequestFullscreen");
12980
12799
  this.elem.webkitRequestFullscreen();
12981
12800
  }
12982
12801
  else if (this.elem.msRequestFullscreen) {
12983
12802
  /* IE/Edge */
12984
- // console.log("msRequestFullscreen");
12985
12803
  this.elem.msRequestFullscreen();
12986
12804
  }
12987
12805
  else
@@ -12994,29 +12812,23 @@ class FHImageViewerComponent {
12994
12812
  typeof window !== 'undefined' && typeof window.document !== 'undefined'
12995
12813
  ? window.document
12996
12814
  : {};
12997
- // console.log('closeFullscreen ', this.elem);
12998
12815
  if (this.elem.exitFullscreen) {
12999
- // console.log('exitFullscreen');
13000
12816
  this.elem.exitFullscreen();
13001
12817
  }
13002
12818
  else if (this.elem.mozCancelFullScreen) {
13003
12819
  /* Firefox */
13004
- // console.log('mozCancelFullScreen');
13005
12820
  this.elem.mozCancelFullScreen();
13006
12821
  }
13007
12822
  else if (this.elem.webkitExitFullscreen) {
13008
12823
  /* Chrome, Safari and Opera */
13009
- // console.log('webkitExitFullscreen');
13010
12824
  this.elem.webkitExitFullscreen();
13011
12825
  }
13012
12826
  else if (this.elem.webkitCancelFullScreen) {
13013
12827
  /* Chrome, Safari and Opera */
13014
- // console.log('webkitExitFullscreen');
13015
12828
  this.elem.webkitCancelFullScreen();
13016
12829
  }
13017
12830
  else if (this.elem.msExitFullscreen) {
13018
12831
  /* IE/Edge */
13019
- // console.log('msExitFullscreen');
13020
12832
  this.elem.msExitFullscreen();
13021
12833
  }
13022
12834
  }
@@ -13324,7 +13136,6 @@ class FHMultiComboboxComponent {
13324
13136
  this.smtr.nativeElement.focus();
13325
13137
  }
13326
13138
  reset() {
13327
- //console.log("reset");
13328
13139
  this.selval = [];
13329
13140
  this.valDef = [];
13330
13141
  this.myData = new Array();
@@ -13345,7 +13156,6 @@ class FHMultiComboboxComponent {
13345
13156
  p.sql = this.sql;
13346
13157
  p.types = this.types;
13347
13158
  p.values = this.values;
13348
- // console.log(p);
13349
13159
  if (this.db_type == "1")
13350
13160
  this._dataService.doQuery(p).subscribe((data) => {
13351
13161
  if (data != null)
@@ -13380,14 +13190,12 @@ class FHMultiComboboxComponent {
13380
13190
  b_found = true;
13381
13191
  });
13382
13192
  if (!b_found) {
13383
- // console.log('Inserisco ',o);
13384
13193
  this.myData.push(o);
13385
13194
  } //else console.log('Esiste già ',o);
13386
13195
  }
13387
13196
  resetD(o) {
13388
13197
  this.myData = o;
13389
13198
  this.selval = [];
13390
- // console.log(this.smtr); console.log(this.smtr.nativeElement);
13391
13199
  this.setByValue(this.valDef);
13392
13200
  if (this.getValue().length == 0 && this.valDef.length != 0)
13393
13201
  if (this.valDef != null)
@@ -13396,7 +13204,6 @@ class FHMultiComboboxComponent {
13396
13204
  this.fillend.emit();
13397
13205
  }
13398
13206
  setByDescri(desc_val) {
13399
- // console.log("setByDescri "+desc_val);
13400
13207
  this.valDef = desc_val;
13401
13208
  this.selval = [];
13402
13209
  if (desc_val.length == 0)
@@ -13469,9 +13276,7 @@ class FHMultiComboboxComponent {
13469
13276
  else
13470
13277
  return;
13471
13278
  }
13472
- //console.log("qui2");
13473
13279
  for (let j = 0; j < this.myData.length; j++) {
13474
- //console.log(this.myData[j].valore +' '+ desc_val);
13475
13280
  if (this.myData[j].valore == desc_val) {
13476
13281
  this.selval.push(this.myData[j].valore);
13477
13282
  if (this.myData[j].descrizione_valore != null)
@@ -13756,7 +13561,6 @@ class FHNumericFieldComponent {
13756
13561
  });
13757
13562
  }
13758
13563
  keyDownFunctioncl(event) {
13759
- //console.log(event);
13760
13564
  if (event.keyCode == 13) {
13761
13565
  this.chg();
13762
13566
  this.enter_key_pressed.emit();
@@ -13822,7 +13626,6 @@ class FHNumericFieldComponent {
13822
13626
  integer = "0";
13823
13627
  if (this.decimal == 0)
13824
13628
  return integer;
13825
- // console.log(integer + fraction);
13826
13629
  return integer + fraction;
13827
13630
  }
13828
13631
  removeCurrencyPipeFormat(element) {
@@ -13830,7 +13633,6 @@ class FHNumericFieldComponent {
13830
13633
  this.formattedAmount = this.transform(this.value, this.decimal) + this.suffixSymbol;
13831
13634
  }
13832
13635
  catch (e) {
13833
- console.log(e);
13834
13636
  }
13835
13637
  }
13836
13638
  b_already_f = false;
@@ -14034,9 +13836,7 @@ class FHWinPicklistComponent {
14034
13836
  this.filtra_rem();
14035
13837
  }
14036
13838
  filtra_rem() {
14037
- // console.log('fltr_user_rem ');
14038
13839
  this.value_sel_ric = new Array();
14039
- // console.log('filtra() '+this.fltr_user.toUpperCase());
14040
13840
  if (this.fltr_user_rem == '') {
14041
13841
  for (let i = 0; i < this.value_sel.length; i++) {
14042
13842
  this.value_sel_ric.push(this.value_sel[i]);
@@ -14049,7 +13849,6 @@ class FHWinPicklistComponent {
14049
13849
  if (this.value_sel[i].descrizione_valore
14050
13850
  .toUpperCase()
14051
13851
  .indexOf(this.fltr_user_rem.toUpperCase()) != -1) {
14052
- // console.log('entro !!');
14053
13852
  let b_found_a = false;
14054
13853
  for (let z = 0; z < this.value_sel_ric.length; z++)
14055
13854
  if (this.value_sel_ric[z].descrizione_valore ==
@@ -14057,7 +13856,6 @@ class FHWinPicklistComponent {
14057
13856
  b_found_a = true;
14058
13857
  break;
14059
13858
  }
14060
- // console.log('entro !! ', b_found_a);
14061
13859
  if (!b_found_a)
14062
13860
  this.value_sel_ric.push(this.value_sel[i]);
14063
13861
  if (this.value_sel_ric.length == 50 && this.limit_size)
@@ -14067,7 +13865,6 @@ class FHWinPicklistComponent {
14067
13865
  }
14068
13866
  filtra() {
14069
13867
  this.value_list_sel = new Array();
14070
- // console.log('filtra() '+this.fltr_user.toUpperCase());
14071
13868
  if (this.fltr_user == '') {
14072
13869
  for (let i = 0; i < this.value_list.length; i++) {
14073
13870
  this.value_list_sel.push(this.value_list[i]);
@@ -15786,7 +15583,6 @@ class FHDateRangePickerComponent {
15786
15583
 
15787
15584
  }
15788
15585
  let arr: Array<string> = this.pickerId.nativeElement.value.split('-').join('/').split('/');
15789
- console.log(arr);
15790
15586
  if (arr.length == 3) {
15791
15587
  let yy=parseInt(arr[2]);
15792
15588
 
@@ -15818,7 +15614,6 @@ class FHDateRangePickerComponent {
15818
15614
  }
15819
15615
  chxx(e) {
15820
15616
  this.setlocalt();
15821
- //console.log(e);
15822
15617
  //e.stopPropagation();
15823
15618
  }
15824
15619
  /*public myDatePickerOptions: IMyDpOptions = {
@@ -15829,7 +15624,6 @@ class FHDateRangePickerComponent {
15829
15624
  monthLabels: { 1: 'Gen', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'Mag', 6: 'Giu', 7: 'Lug', 8: 'Ago', 9: 'Set', 10: 'Ott', 11: 'Nov', 12: 'Dic' }
15830
15625
  };*/
15831
15626
  ch(event) {
15832
- // console.log("ON CHANGE ", this.getValue());
15833
15627
  this.onChange(this.getValue());
15834
15628
  this.change.emit(this.getValue());
15835
15629
  }
@@ -15841,7 +15635,6 @@ class FHDateRangePickerComponent {
15841
15635
  this.v_view = this.uti_s.date2String(new Date());
15842
15636
  }
15843
15637
  setlocalt() {
15844
- //console.log('setlocalt ',this._apps.user_lang);
15845
15638
  if (this._apps.user_lang == null || this._apps.user_lang == '') {
15846
15639
  setTimeout(() => {
15847
15640
  this.setlocalt();
@@ -15850,11 +15643,9 @@ class FHDateRangePickerComponent {
15850
15643
  }
15851
15644
  if ((this._apps.user_lang || '') == 'it') {
15852
15645
  this.adapter.setLocale('it');
15853
- //console.log('set locale it');
15854
15646
  }
15855
15647
  else if (this._apps.user_lang == 'en') {
15856
15648
  this.adapter.setLocale('en');
15857
- // console.log('set locale gb');
15858
15649
  }
15859
15650
  else {
15860
15651
  this.adapter.setLocale('it');
@@ -15903,7 +15694,6 @@ class FHDateRangePickerComponent {
15903
15694
  this.date_sel = new Date();
15904
15695
  }
15905
15696
  setValue(d) {
15906
- // console.log("🚀 ~ file: FHDateRangePicker.ts:284 ~ setValue ~ d", d)
15907
15697
  this.setlocalt();
15908
15698
  // this.dateAdapter.setLocale("it-IT");
15909
15699
  if (d == null) {
@@ -16069,17 +15859,14 @@ class FHRichTextComponent {
16069
15859
  focus = new EventEmitter();
16070
15860
  blur = new EventEmitter();
16071
15861
  cch(o) {
16072
- // console.log("cch ", o);
16073
15862
  setTimeout(() => {
16074
15863
  this.onChange(this.value);
16075
15864
  this.change.emit(this.value);
16076
15865
  });
16077
15866
  }
16078
15867
  cch1(o1) {
16079
- //console.log("cch1 ", o1);
16080
15868
  }
16081
15869
  modelch() {
16082
- // console.log("modelch ", this.value);
16083
15870
  setTimeout(() => {
16084
15871
  this.onChange(this.value);
16085
15872
  this.change.emit(this.value);
@@ -16204,19 +15991,12 @@ class FHTimePickerComponent {
16204
15991
  }
16205
15992
  upm() {
16206
15993
  let tt = parseInt(this.m + '') + parseInt(this.step + '');
16207
- // console.log('upm ', this.m, parseInt(this.m + ''), tt);
16208
15994
  if (tt < 60) {
16209
15995
  this.m = tt;
16210
15996
  }
16211
15997
  this.sc();
16212
15998
  }
16213
15999
  dom() {
16214
- // console.log(
16215
- // 'dom ',
16216
- // this.m,
16217
- // parseInt(this.m + ''),
16218
- // parseInt(this.m + '') - this.step
16219
- // );
16220
16000
  if (parseInt(this.m + '') - this.step >= 0) {
16221
16001
  this.m = parseInt(this.m + '') - this.step;
16222
16002
  }
@@ -16338,7 +16118,6 @@ class FHTimePickerComponent {
16338
16118
  setTimeout(() => {
16339
16119
  setTimeout(() => {
16340
16120
  let value = this.getValue();
16341
- // console.log('sc ', value);
16342
16121
  this.onChange(value);
16343
16122
  this.selchange.emit();
16344
16123
  }, 200);
@@ -17326,7 +17105,6 @@ class FHUploadPanelComponent {
17326
17105
  if (o.response == null)
17327
17106
  return;
17328
17107
  let obj_r = JSON.parse(o.response);
17329
- // console.log(obj_r);
17330
17108
  if (obj_r != null)
17331
17109
  if (obj_r.msg != null)
17332
17110
  if (obj_r.msg != '') {
@@ -17650,13 +17428,6 @@ class FHUploadPanelComponent {
17650
17428
  (!this.access_control ||
17651
17429
  this.arr_g[i].idp == this._appservice.user ||
17652
17430
  this.uti.hasRole(this.ruolo_supervisore, false));
17653
- // console.log("🚀 ~ file: fhuploadpanel.ts:746 ~ FHUploadPanelComponent ~ this._dataService.doQuery ~ this.can_delete_owner:"
17654
- // , this.can_delete_owner
17655
- // ,' show_delete ', this.show_delete
17656
- // ,' access_control ', this.access_control
17657
- // ,' this.arr_g[i].idp ', this.arr_g[i].idp
17658
- // ,' this.arr_g[i].can_delete', this.arr_g[i].can_delete
17659
- // )
17660
17431
  if ('[ZZZ_DIS_CC]' == this.ruolo_supervisore)
17661
17432
  this.arr_g[i].can_delete_m = this.arr_g[i].idp;
17662
17433
  else
@@ -17668,12 +17439,6 @@ class FHUploadPanelComponent {
17668
17439
  this.show_delete &&
17669
17440
  (!this.access_control ||
17670
17441
  this.uti.hasRole(this.ruolo_supervisore, false));
17671
- // console.log("🚀 ~ file: fhuploadpanel.ts:746 ~ FHUploadPanelComponent ~ this._dataService.doQuery ~ this.can_delete_owner:"
17672
- // , this.can_delete_owner
17673
- // ,' show_delete ', this.show_delete
17674
- // ,' access_control ', this.access_control
17675
- // ,' this.arr_g[i].can_delete', this.arr_g[i].can_delete
17676
- // )
17677
17442
  if ('[ZZZ_DIS_CC]' == this.ruolo_supervisore)
17678
17443
  this.arr_g[i].can_delete_m = '';
17679
17444
  else
@@ -18798,7 +18563,6 @@ class FHUploadS3Component {
18798
18563
  onFileDrop(o) {
18799
18564
  }
18800
18565
  fileOverBase(e) {
18801
- console.log(e);
18802
18566
  this.hasBaseDropZoneOver = e;
18803
18567
  }
18804
18568
  call_up() {
@@ -18878,7 +18642,6 @@ class FHUploadS3Component {
18878
18642
  value: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
18879
18643
  },
18880
18644
  ];
18881
- // console.log('ngAfterViewInit!!');
18882
18645
  this.uploader.setOptions(uo);
18883
18646
  this.uploader.onCompleteAll = () => {
18884
18647
  this.loading = false;
@@ -18896,8 +18659,6 @@ class FHUploadS3Component {
18896
18659
  this.ch(fileItem);
18897
18660
  };
18898
18661
  this.uploader.onProgressItem = (fileItem, progress) => {
18899
- // console.log(fileItem);
18900
- // console.log(progress);
18901
18662
  this.loading = true;
18902
18663
  if (this.dialogRef != null)
18903
18664
  if (this.dialogRef.componentInstance != null)
@@ -18934,10 +18695,6 @@ class FHUploadS3Component {
18934
18695
  this.uploader.onBeforeUploadItem = (item) => {
18935
18696
  item.withCredentials = false;
18936
18697
  };
18937
- // console.log(
18938
- // "uploader ",
18939
- // this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new"
18940
- // );
18941
18698
  this.uploader.onCompleteItem = (item, response, status, header) => {
18942
18699
  if (status === 200) {
18943
18700
  this.descrizione = "";
@@ -19032,15 +18789,12 @@ class FHUploadS3Component {
19032
18789
  this.programma_da_eseguire = programma_da_eseguire;
19033
18790
  this.allow_delete = allow_delete;
19034
18791
  this.ref_allegato();
19035
- // console.log('init! ',this.tipo)
19036
18792
  if (this.tipo.indexOf("SELECT_") > -1) {
19037
18793
  this.multi_list = true;
19038
18794
  this.load_types();
19039
- //console.log('fillCombo');
19040
18795
  }
19041
18796
  }
19042
18797
  ref_allegato() {
19043
- // console.log(' ref_allegato')
19044
18798
  this.id = null;
19045
18799
  this.descrizione = "";
19046
18800
  this.file_name = "";
@@ -20463,7 +20217,6 @@ class FHPickUsersComponent {
20463
20217
  filtra() {
20464
20218
  if (this.fltr_user == null)
20465
20219
  this.fltr_user = '';
20466
- console.log('filtra() ' + this.fltr_user.toUpperCase());
20467
20220
  this.users_list_sel = new Array();
20468
20221
  for (let i = 0; i < this.users_list.length; i++)
20469
20222
  if (this.users_list[i].nc != null) {
@@ -20566,7 +20319,6 @@ class FHPickUsersComponent {
20566
20319
  if (index > -1) {
20567
20320
  this.users_list.splice(index, 1);
20568
20321
  }
20569
- console.log('this.users_list 1 ', this.users_list);
20570
20322
  if (this.single_sel)
20571
20323
  this.user_sel = new Array();
20572
20324
  if (this.user_sel == null)
@@ -21183,9 +20935,7 @@ class FHUserFieldComponent {
21183
20935
  this.selectedUser = result;
21184
20936
  this.writeValue("noop");
21185
20937
  this.select.emit(this.selectedUser);
21186
- // console.log(this.selectedUser);
21187
20938
  this.userName = this.getUsersNc();
21188
- // console.log(this.userName);
21189
20939
  }
21190
20940
  else
21191
20941
  this.clear();
@@ -21541,7 +21291,6 @@ class NumericEditorComponent {
21541
21291
  params.charPress && "1234567890,".indexOf(params.charPress) < 0;
21542
21292
  }
21543
21293
  getValue() {
21544
- // console.log('numeric editore: getValue ['+String(this.value)+']');
21545
21294
  if (String(this.value) == "")
21546
21295
  return 0;
21547
21296
  let appov = 0;
@@ -21574,7 +21323,6 @@ class NumericEditorComponent {
21574
21323
  // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
21575
21324
  ngAfterViewInit() {
21576
21325
  setTimeout(() => {
21577
- //console.log(this.input.element.nativeElement);
21578
21326
  // this.input.first.nativeElement.focus();
21579
21327
  if (this.input != null)
21580
21328
  if (this.input.element != null)
@@ -21606,7 +21354,6 @@ class NumericEditorComponent {
21606
21354
  if (charCode >= 96 && charCode <= 109)
21607
21355
  return true;
21608
21356
  var charStr = String.fromCharCode(charCode);
21609
- // console.log(charCode);
21610
21357
  return this.isCharNumeric(charStr);
21611
21358
  }
21612
21359
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NumericEditorComponent, deps: [{ token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
@@ -21652,8 +21399,6 @@ class ComboBoxEditorComponent {
21652
21399
  this._dataService = _dataService;
21653
21400
  }
21654
21401
  setDt() {
21655
- // console.log('setdt');
21656
- // console.log(this.date_zz.getFullYear().toString()+"-"+this.uti_s.format2cifre(this.date_zz.getMonth()+1)+"-"+this.uti_s.format2cifre(this.date_zz.getDate())+"T00:00:00");
21657
21402
  this.date_zz = this.selval;
21658
21403
  }
21659
21404
  myData = new Array();
@@ -21664,7 +21409,6 @@ class ComboBoxEditorComponent {
21664
21409
  p.types = params.types;
21665
21410
  p.values = params.values;
21666
21411
  let ok_op = false;
21667
- // console.log(p);
21668
21412
  this._dataService.doQuery(p).subscribe((data) => {
21669
21413
  let ok_op = false;
21670
21414
  if (data != null)
@@ -21689,7 +21433,6 @@ class ComboBoxEditorComponent {
21689
21433
  }
21690
21434
  getValue() {
21691
21435
  // var dt:Date=new Date(Date.UTC(this.date_zz.getFullYear()-1900,this.date_zz.getMonth(),this.date_zz.getDate()));
21692
- // console.log(this.date_zz.getFullYear().toString()+"-"+this.uti_s.format2cifre(this.date_zz.getMonth()+1)+"-"+this.uti_s.format2cifre(this.date_zz.getDate())+"T00:00:00");
21693
21436
  if (this.date_zz == null)
21694
21437
  return null;
21695
21438
  return this.date_zz; //this.date_zz.toJSON();
@@ -21699,7 +21442,6 @@ class ComboBoxEditorComponent {
21699
21442
  }
21700
21443
  onKeyDown(event) {
21701
21444
  let key = event.which || event.keyCode;
21702
- // console.log(key);
21703
21445
  if (key == 37 ||
21704
21446
  key == 13 || // left
21705
21447
  key == 39) {
@@ -21802,7 +21544,6 @@ class TextAreaEditorComponent {
21802
21544
  }
21803
21545
  getValue() {
21804
21546
  // var dt:Date=new Date(Date.UTC(this.date_zz.getFullYear()-1900,this.date_zz.getMonth(),this.date_zz.getDate()));
21805
- // console.log(this.date_zz.getFullYear().toString()+"-"+this.uti_s.format2cifre(this.date_zz.getMonth()+1)+"-"+this.uti_s.format2cifre(this.date_zz.getDate())+"T00:00:00");
21806
21547
  if (this.date_zz == null)
21807
21548
  return null;
21808
21549
  return this.date_zz; //this.date_zz.toJSON();
@@ -21812,7 +21553,6 @@ class TextAreaEditorComponent {
21812
21553
  }
21813
21554
  onKeyDown(event) {
21814
21555
  let key = event.which || event.keyCode;
21815
- // console.log(key);
21816
21556
  if (key == 37 ||
21817
21557
  key == 13 || // left
21818
21558
  key == 39) {
@@ -23446,7 +23186,6 @@ class FHWinGridSelection {
23446
23186
  }
23447
23187
  }
23448
23188
  fitSizeAll() {
23449
- // console.log("🚀 ~ FHGridInternalComponent ~ fitSizeAll ~ fitSizeAll:",this.gridApi)
23450
23189
  if (this.gridApi)
23451
23190
  this.gridApi.sizeColumnsToFit();
23452
23191
  }
@@ -23470,7 +23209,6 @@ class FHWinGridSelection {
23470
23209
  if (this.data.selectAll != null)
23471
23210
  this.selectAllRows = this.data.selectAll;
23472
23211
  this.singleSelection = (this.data.singleSelection || false);
23473
- console.log("🚀 ~ FHWinGridSelection ~ this.singleSelection:", this.singleSelection);
23474
23212
  if (this.singleSelection) {
23475
23213
  this.gridOptions = {
23476
23214
  debug: false,
@@ -23499,7 +23237,6 @@ class FHWinGridSelection {
23499
23237
  }
23500
23238
  };
23501
23239
  }
23502
- // console.log("🚀 ~ FHWinGridSelection ~ this.singleSelection:", this.gridOptions)
23503
23240
  }
23504
23241
  if (this.groupColumnName != '')
23505
23242
  this.autoGroupColumnDef = {
@@ -23512,7 +23249,6 @@ class FHWinGridSelection {
23512
23249
  }
23513
23250
  };
23514
23251
  }
23515
- // console.log("🚀 ~ file: win_grid_selection.ts:137 ~ FHWinGridSelection ~ data:", data,(this.data.selectAll||true))
23516
23252
  ie() { }
23517
23253
  ok() {
23518
23254
  if (!this.singleSelection)
@@ -26059,7 +25795,6 @@ class FHFormExecuterComponent {
26059
25795
  .subscribe((result) => {
26060
25796
  if (result != null) {
26061
25797
  let indUiiid = this.items.findIndex((itm) => itm.uiid == item.uiid);
26062
- // console.log("🚀 ~ file: form_executer.ts:201 ~ FHFormExecuterComponent ~ .subscribe ~ indUiiid:", this.items, indUiiid,item,result)
26063
25798
  if (indUiiid != -1) {
26064
25799
  this.items[indUiiid].default_value = result.valore;
26065
25800
  this.items[indUiiid].default_description = result.descrizione_valore;
@@ -26076,7 +25811,6 @@ class FHFormExecuterComponent {
26076
25811
  .subscribe((result) => {
26077
25812
  if (result != null) {
26078
25813
  let indUiiid = this.items.findIndex((itm) => itm.uiid == item.uiid);
26079
- // console.log("🚀 ~ file: form_executer.ts:218 ~ FHFormExecuterComponent ~ .subscribe ~ indUiiid:", this.items, indUiiid,item,result)
26080
25814
  if (indUiiid != -1) {
26081
25815
  this.items[indUiiid].default_value = result.valore;
26082
25816
  this.items[indUiiid].default_description = result.descrizione_valore;
@@ -26138,7 +25872,6 @@ class FHFormExecuterComponent {
26138
25872
  }
26139
25873
  return item;
26140
25874
  });
26141
- console.log('this.items AFTER ', this.items);
26142
25875
  }
26143
25876
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHFormExecuterComponent, deps: [{ token: UtilityService }, { token: i1$2.MatDialog }, { token: i3.ToastrService }, { token: i3$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
26144
25877
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHFormExecuterComponent, isStandalone: true, selector: "FHFormExecuter", inputs: { items: "items", enabled: "enabled", articleColumns: "articleColumns", articleQuery: "articleQuery", customerColumns: "customerColumns", customerQuery: "customerQuery" }, viewQueries: [{ propertyName: "bottoml", first: true, predicate: ["bottoml"], descendants: true }], ngImport: i0, template: `
@@ -26621,9 +26354,7 @@ class AppMakerService {
26621
26354
  "Content-Type": "application/json",
26622
26355
  Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
26623
26356
  });
26624
- // console.log('AppMakerService url: '+ this.url);
26625
26357
  let post_v = JSON.stringify(queryp);
26626
- // console.log(post_v);
26627
26358
  return this.http.post(this.url, post_v).pipe(map((res) => {
26628
26359
  // Handle errors, display if enabled
26629
26360
  let r = res;
@@ -26655,9 +26386,7 @@ class AppMakerService {
26655
26386
  }));
26656
26387
  }
26657
26388
  extractData(res) {
26658
- //console.log(res);
26659
26389
  let body = res.json();
26660
- // console.log(body);
26661
26390
  return body || {};
26662
26391
  }
26663
26392
  handleError(error) {
@@ -27099,7 +26828,6 @@ class FHGridInternalComponent {
27099
26828
  }
27100
26829
  }
27101
26830
  catch (e) {
27102
- console.log(e);
27103
26831
  }
27104
26832
  }
27105
26833
  gf = null;
@@ -27599,7 +27327,6 @@ class FHGridInternalComponent {
27599
27327
  }
27600
27328
  }
27601
27329
  }
27602
- // console.log('return filter_v ', filter_v);
27603
27330
  return filter_v;
27604
27331
  }
27605
27332
  init_end = new EventEmitter();
@@ -27614,10 +27341,7 @@ class FHGridInternalComponent {
27614
27341
  p.table_count = this.tbl_name;
27615
27342
  if (this.count_tbl_name != '')
27616
27343
  p.table_count = this.count_tbl_name;
27617
- // console.log(params);
27618
27344
  p.num_per_pag = (params.request.endRow || 0) - (params.request.startRow || 0);
27619
- // console.log(this.gridOptions.cacheBlockSize );
27620
- // console.log(this.gridOptions.paginationPageSize );
27621
27345
  p.curr_page = Math.round((params.request.startRow || 0) / p.num_per_pag);
27622
27346
  if (p.curr_page == null)
27623
27347
  p.curr_page = 0;
@@ -27663,18 +27387,11 @@ class FHGridInternalComponent {
27663
27387
  p.filter = p.filter + ' and ';
27664
27388
  p.filter = p.filter + ' (' + this.fix_flt_temp + ' )';
27665
27389
  }
27666
- // console.log('Filter model');
27667
- //console.log(params.filterModel);
27668
27390
  let p_fi = p.filter;
27669
27391
  let b_init = false;
27670
27392
  if (params.request.filterModel != null) {
27671
- // console.log('Filtri');
27672
27393
  for (let key in params.request.filterModel) {
27673
27394
  if (!b_init) {
27674
- // console.log(
27675
- // '🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always',
27676
- // this.include_always
27677
- // );
27678
27395
  if (this.include_always != '') {
27679
27396
  if (p.filter != '')
27680
27397
  p.filter += ' and ';
@@ -27682,7 +27399,6 @@ class FHGridInternalComponent {
27682
27399
  }
27683
27400
  }
27684
27401
  let obj_filtro_test = params.request.filterModel[key];
27685
- // console.log(params.filterModel[key], key);
27686
27402
  if (obj_filtro_test.operator == null) {
27687
27403
  if (!(p.filter != '' && (b_init || this.include_always == '')))
27688
27404
  p.filter += this.calcola_filtro(params.request.filterModel[key], '', key, false);
@@ -27719,7 +27435,6 @@ class FHGridInternalComponent {
27719
27435
  else
27720
27436
  this.show_pulisci_filtri = true;
27721
27437
  //p.num_per_pag=5000;
27722
- // console.log(this._gridservice);
27723
27438
  this.loading_fulltext = true;
27724
27439
  this.str_curr_q_p = '';
27725
27440
  if (p.filter != '')
@@ -27733,7 +27448,6 @@ class FHGridInternalComponent {
27733
27448
  if (data != null)
27734
27449
  if (data.result_msg == 'OK') {
27735
27450
  ok_op = true;
27736
- // console.log(data.result_data);
27737
27451
  this.rowData = data.result_data;
27738
27452
  params.success({ rowData: data.result_data, rowCount: data.count });
27739
27453
  this.b_init = true;
@@ -27742,14 +27456,11 @@ class FHGridInternalComponent {
27742
27456
  this.m_appService.complete();
27743
27457
  this.fill_end.emit();
27744
27458
  this.check_width();
27745
- // console.log("end");
27746
- // console.log(localStorage.getItem(this.grid_key+'_POS'));
27747
27459
  localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
27748
27460
  if (localStorage.getItem(this.grid_key + '_POS2') != null)
27749
27461
  if (this.gridOptions != null)
27750
27462
  if (this.gridApi != null)
27751
27463
  this.gridApi.forEachNode((node) => {
27752
- // console.log(node:any)
27753
27464
  if (this.getRowId(node) ===
27754
27465
  localStorage.getItem(this.grid_key + '_POS2')) {
27755
27466
  node.setSelected(true);
@@ -27790,10 +27501,6 @@ class FHGridInternalComponent {
27790
27501
  filter_x = ' and (' + p.filter + ')';
27791
27502
  var px = new QParam();
27792
27503
  px.sql = this.over_fulltext_sql;
27793
- // console.log(
27794
- // 'JSON.stringify(params.filterModel) ',
27795
- // JSON.stringify(params.filterModel)
27796
- // );
27797
27504
  if (JSON.stringify(params.filterModel) == '{}')
27798
27505
  px.sql = this.over_fulltext_sql + '_FT';
27799
27506
  px.types = ['string', 'string', 'string'];
@@ -27809,7 +27516,6 @@ class FHGridInternalComponent {
27809
27516
  if (data != null)
27810
27517
  if (data.result_msg == 'OK') {
27811
27518
  ok_op = true;
27812
- // console.log(data.result_data);
27813
27519
  this.rowData = data.result_data;
27814
27520
  params.success({ rowData: data.result_data, rowCount: data.result_data.length });
27815
27521
  this.b_init = true;
@@ -27818,14 +27524,11 @@ class FHGridInternalComponent {
27818
27524
  this.m_appService.complete();
27819
27525
  this.fill_end.emit();
27820
27526
  this.check_width();
27821
- // console.log("end");
27822
- // console.log(localStorage.getItem(this.grid_key+'_POS'));
27823
27527
  localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
27824
27528
  if (localStorage.getItem(this.grid_key + '_POS2') != null)
27825
27529
  if (this.gridOptions != null)
27826
27530
  if (this.gridApi != null)
27827
27531
  this.gridApi.forEachNode((node) => {
27828
- // console.log(node:any)
27829
27532
  if (this.getRowId(node) ===
27830
27533
  localStorage.getItem(this.grid_key + '_POS2')) {
27831
27534
  node.setSelected(true);
@@ -27857,22 +27560,17 @@ class FHGridInternalComponent {
27857
27560
  setTimeout(() => {
27858
27561
  this.autoSizeAll();
27859
27562
  }, 300);
27860
- //console.log('xxxxxxxxxxxxxxxxxxx');
27861
- // console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27862
27563
  //if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
27863
27564
  /*
27864
27565
 
27865
27566
  this.gridApi.forEachNode( (node:any) =>{
27866
27567
  // select the node
27867
- // console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27868
27568
  if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
27869
- // console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27870
27569
  node.setSelected(true);
27871
27570
 
27872
27571
  }}*/
27873
27572
  // if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
27874
27573
  //this.gridApi.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
27875
- // console.log(this.myData);
27876
27574
  }
27877
27575
  if (!ok_op) {
27878
27576
  this.errorMsg = data.msg + ' [' + data.result_msg + ']';
@@ -27928,7 +27626,6 @@ class FHGridInternalComponent {
27928
27626
  };
27929
27627
  }
27930
27628
  getRowId(item) {
27931
- // console.log(item);
27932
27629
  if (!item)
27933
27630
  return 'NA';
27934
27631
  if (item.ID != null)
@@ -27971,7 +27668,6 @@ class FHGridInternalComponent {
27971
27668
  });
27972
27669
  }
27973
27670
  okr(event) {
27974
- //console.log(event.column.colDef.field);
27975
27671
  event.data.nome_colonna = event.column.colDef.field;
27976
27672
  this.cell_edited.emit(event.data);
27977
27673
  }
@@ -27987,10 +27683,8 @@ class FHGridInternalComponent {
27987
27683
  }
27988
27684
  onResize(event) {
27989
27685
  return;
27990
- // console.log("auto height "+this.auto_height+ "("+bodyWidth+")");
27991
27686
  //if(bodyWidth>1400){
27992
27687
  // this.g_height= number(this.m_appService.getState().body_height.split('px').join(''))-40-this.off_set+'px';
27993
- //console.log('this.g_height '+this.g_height);
27994
27688
  //if(this.m_appService.getState( ).mobile)this.g_height=number(this.m_appService.getState().body_height.split('px').join(''))-40+'px';
27995
27689
  // this.num_per_pag=Math.round((700-50-this.off_set)/50);
27996
27690
  //}
@@ -28003,11 +27697,9 @@ class FHGridInternalComponent {
28003
27697
  //this.g_height=400-this.off_set+'px';
28004
27698
  // this.num_per_pag=Math.round((400-50-this.off_set)/50);
28005
27699
  //}
28006
- // console.log( this.g_height);
28007
27700
  }
28008
27701
  show_pulisci_filtri = false;
28009
27702
  autoSizeAll() {
28010
- //console.log("🚀 ~ file: fhgrid.ts ~ line 1380 ~ FHGridComponent ~ autoSizeAll ~ autoSizeAll")
28011
27703
  if (this.gridOptions == null)
28012
27704
  return;
28013
27705
  if (this.gridApi == null)
@@ -28053,13 +27745,11 @@ class FHGridInternalComponent {
28053
27745
  }
28054
27746
  });
28055
27747
  }
28056
- // console.log('ENTRO '+f+" "+t);
28057
27748
  if (t == 'number') {
28058
27749
  if (this.gridApi)
28059
27750
  this.gridApi.forEachNode((node) => {
28060
27751
  if (node.isSelected())
28061
27752
  if (node.data[f] != null) {
28062
- // console.log('selected');
28063
27753
  if (s != '')
28064
27754
  s = s + ',';
28065
27755
  s = s + node.data[f];
@@ -28207,7 +27897,6 @@ class FHGridInternalComponent {
28207
27897
  if (itemg.data == null)
28208
27898
  return this.uti_s.newGuid();
28209
27899
  let item = itemg.data;
28210
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ uiid calcolo", item);
28211
27900
  if (item.customKeyField != null)
28212
27901
  return [item.customKeyField];
28213
27902
  if (item.ID != null)
@@ -28226,7 +27915,6 @@ class FHGridInternalComponent {
28226
27915
  return item.notesid;
28227
27916
  if (item.ord != null)
28228
27917
  return item.ord;
28229
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ NOT FOUND!!", item);
28230
27918
  return this.uti_s.newGuid();
28231
27919
  }
28232
27920
  };
@@ -28370,7 +28058,6 @@ class FHGridInternalComponent {
28370
28058
  this.export_excel('pdf');
28371
28059
  }
28372
28060
  init_conf() {
28373
- // console.log(" init_conf()");
28374
28061
  //this.ckk();
28375
28062
  }
28376
28063
  createColumnDefs(em) { }
@@ -28483,7 +28170,6 @@ class FHGridInternalComponent {
28483
28170
  /*
28484
28171
  if(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']!=null)
28485
28172
  {
28486
- //console.log('setto pag: '+this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
28487
28173
  this.gridApi.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
28488
28174
  } */
28489
28175
  }
@@ -28536,44 +28222,35 @@ class FHGridInternalComponent {
28536
28222
  else {
28537
28223
  if (this.gridApi) {
28538
28224
  let saved_state = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
28539
- // console.log('BEFORE ',this.gridApi.getColumnState())
28540
28225
  this.gridApi.applyColumnState({
28541
28226
  state: saved_state,
28542
28227
  applyOrder: true,
28543
28228
  });
28544
- // console.log('ripristino cols', this.gridApi,saved_state);
28545
- // console.log('AFTER ',this.gridApi.getColumnState())
28546
28229
  }
28547
28230
  }
28548
28231
  }
28549
28232
  catch (eer) {
28550
- console.log(eer);
28551
28233
  }
28552
28234
  }
28553
28235
  /* try {
28554
28236
  this.gridApi.setSortModel(null);
28555
28237
  } catch (eer) {
28556
- console.log(eer);
28557
28238
  }
28558
28239
  if (
28559
28240
  localStorage.getItem(this.grid_key + "_SORT") != null &&
28560
28241
  (b_mantieni_ck || forza)
28561
28242
  )
28562
28243
  if (localStorage.getItem(this.grid_key + "_SORT") != "") {
28563
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
28564
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
28565
28244
  try {
28566
28245
  this.gridApi.setSortModel(
28567
28246
  JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
28568
28247
  );
28569
28248
  } catch (eer) {
28570
- console.log(eer);
28571
28249
  }
28572
28250
  }
28573
28251
  try {
28574
28252
  this.gridApi.setFilterModel(null);
28575
28253
  } catch (eer) {
28576
- console.log(eer);
28577
28254
  }*/
28578
28255
  if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
28579
28256
  (b_mantieni_ck || forza))
@@ -28583,7 +28260,6 @@ class FHGridInternalComponent {
28583
28260
  this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || ''));
28584
28261
  }
28585
28262
  catch (eer) {
28586
- console.log(eer);
28587
28263
  }
28588
28264
  }
28589
28265
  }
@@ -28611,12 +28287,10 @@ class FHGridInternalComponent {
28611
28287
  this.refresh_all_rows();
28612
28288
  }
28613
28289
  onModelUpdated() {
28614
- // console.log('onModelUpdated');
28615
28290
  // this.calculateRowCount();
28616
28291
  }
28617
28292
  gridApi;
28618
28293
  onReady(event) {
28619
- // console.log(this.header_h);
28620
28294
  this.gridApi = event.api;
28621
28295
  this.setHeaderHeight(this.header_h);
28622
28296
  if (this.num_per_pag != 0) {
@@ -28664,7 +28338,6 @@ class FHGridInternalComponent {
28664
28338
  b_iniended = false;
28665
28339
  onready_go() {
28666
28340
  this.ready = true;
28667
- //console.log('onready_go');
28668
28341
  setTimeout(() => {
28669
28342
  this.ckk();
28670
28343
  }, 10);
@@ -28757,9 +28430,7 @@ class FHGridInternalComponent {
28757
28430
  this.doFill_Temp(ss, true);
28758
28431
  }
28759
28432
  onCellClicked(event) {
28760
- // console.log(event.rowIndex + ' ' + event.colDef.field);
28761
28433
  this.cell_clicked.emit(event);
28762
- // console.log(this.myModalNormal);
28763
28434
  // this.testom.element.nativeElement.value=event.data.descrizione;
28764
28435
  // this.testom.element.nativeElement.scrollTop =0;
28765
28436
  //this.testom.element.nativeElement.focus();
@@ -28767,13 +28438,10 @@ class FHGridInternalComponent {
28767
28438
  // this.myModalNormal.element.nativeElement.show();
28768
28439
  }
28769
28440
  onCellValueChanged(event) {
28770
- // console.log('onCellValueChanged: ' + event.oldValue + ' to ' + event.newValue);
28771
28441
  }
28772
28442
  onCellDoubleClicked(event) {
28773
- // console.log('onCellDoubleClicked: ' + event.rowIndex + ' ' + event.colDef.field);
28774
28443
  }
28775
28444
  onCellFocused(event) {
28776
- //console.log('onCellFocused: (' + event.rowIndex + ',' + event.colIndex + ')');
28777
28445
  }
28778
28446
  onSelectionChanged(event) {
28779
28447
  var rowCount = this.getGridApi().getSelectedNodes().length;
@@ -28781,10 +28449,8 @@ class FHGridInternalComponent {
28781
28449
  this.num_s = rowCount;
28782
28450
  }
28783
28451
  onBeforeFilterChanged() {
28784
- // console.log('beforeFilterChanged');
28785
28452
  }
28786
28453
  oncolumnEverythingChanged(event) {
28787
- // console.log('oncolumnEverythingChanged');
28788
28454
  if (this.b_init) {
28789
28455
  if (this.gridApi)
28790
28456
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
@@ -28801,16 +28467,13 @@ class FHGridInternalComponent {
28801
28467
  }, 200);
28802
28468
  }
28803
28469
  onBeforeSortChanged() {
28804
- // console.log('onBeforeSortChanged');
28805
28470
  }
28806
28471
  onAfterSortChanged() {
28807
- // console.log('onAfterSortChanged');
28808
28472
  if (this.no_pref)
28809
28473
  return;
28810
28474
  if (this.b_init) {
28811
28475
  if (this.gridApi)
28812
28476
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
28813
- // console.log('salvo s: '+this.gridApi.getSortModel());
28814
28477
  /*
28815
28478
 
28816
28479
  localStorage.setItem(
@@ -28822,16 +28485,13 @@ class FHGridInternalComponent {
28822
28485
  onVirtualRowRemoved($event) {
28823
28486
  // because this event gets fired LOTS of times, we don't print it to the
28824
28487
  // console. if you want to see it, just uncomment out this line
28825
- // console.log('onVirtualRowRemoved: ' + event.rowIndex);
28826
28488
  }
28827
28489
  onRowClicked($event) {
28828
- //console.log('onRowClicked: ' );
28829
28490
  var selectedInGrid;
28830
28491
  if (this.gridApi)
28831
28492
  selectedInGrid = this.gridApi.getSelectedNodes();
28832
28493
  if (selectedInGrid != null)
28833
28494
  if (selectedInGrid[0] != null) {
28834
- // console.log((this.gridApi.getVerticalPixelRange()));
28835
28495
  localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
28836
28496
  if (this.gridApi)
28837
28497
  localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
@@ -28850,8 +28510,6 @@ class FHGridInternalComponent {
28850
28510
  }
28851
28511
  sRow;
28852
28512
  onRowDClicked($event) {
28853
- //console.log('onRowClicked: ' );
28854
- //console.log(event);
28855
28513
  this.dclicked.emit($event.data);
28856
28514
  var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
28857
28515
  if (iOS) {
@@ -28867,7 +28525,6 @@ class FHGridInternalComponent {
28867
28525
  // the method just prints the event name
28868
28526
  onColumnEvent($event) {
28869
28527
  this.columndclicked.emit($event);
28870
- // console.log('onColumnEvent: ' + $event);
28871
28528
  // localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
28872
28529
  }
28873
28530
  fix_flt = '';
@@ -29106,7 +28763,6 @@ class win_recupera_doc_v2 {
29106
28763
  this.dialogRef.close("ok");
29107
28764
  }
29108
28765
  }, (err) => {
29109
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
29110
28766
  });
29111
28767
  }
29112
28768
  }
@@ -29898,7 +29554,6 @@ class FHWorkflowView {
29898
29554
  this.m_router.navigate([this.app_root, a, d, 'edit']);
29899
29555
  }
29900
29556
  cmd_wkf(o) {
29901
- console.log('cmd_wkf ', o);
29902
29557
  if (o.cmd == 'annulla_richiesta')
29903
29558
  this.annulla_richiesta();
29904
29559
  if (o.cmd == 'recupera_richiesta')
@@ -29932,7 +29587,6 @@ class FHWorkflowView {
29932
29587
  break;
29933
29588
  }
29934
29589
  }
29935
- // console.log('arrAutori ',arrAutori);
29936
29590
  arrAutori = arrAutori.sort((n1, n2) => {
29937
29591
  if (n1.nc > n2.nc) {
29938
29592
  return 1;
@@ -29984,13 +29638,11 @@ class FHWorkflowView {
29984
29638
  if (o.autori != null)
29985
29639
  if (o.autori.split(',').length != 1)
29986
29640
  in_carico = true;
29987
- console.log(o.autori, in_carico);
29988
29641
  let b_assengna_a = false;
29989
29642
  if (o.assegnati_paralleli != null)
29990
29643
  if (o.assegnati_paralleli.split(',').length != 1)
29991
29644
  if (o.assegnati_paralleli.indexOf(this.app_s.user) > -1)
29992
29645
  b_assengna_a = true;
29993
- // console.log('this.m_obj.autori ',this.m_obj.autori, this.in_carico, this.b_assengna_a);
29994
29646
  let p = new QParam();
29995
29647
  p.sql = 'UPDATE_WKF_DOC_AUTHOR';
29996
29648
  p.values = [
@@ -30128,7 +29780,6 @@ class FHWorkflowView {
30128
29780
  }
30129
29781
  }
30130
29782
  if (b_found) {
30131
- console.log(livello, stato_doc);
30132
29783
  if (livello != stato_doc) {
30133
29784
  this._toastr.error(this.tsr.instant('Il documento non è in stato Bozza'));
30134
29785
  return;
@@ -30268,7 +29919,6 @@ class FHWorkflowView {
30268
29919
  p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
30269
29920
  this.m_dataService.doQuery(p).subscribe((data) => {
30270
29921
  this.get_grid().sRow.canale = data.result_data[0].canale;
30271
- console.log('setto canale: ' + this.get_grid().sRow.canale);
30272
29922
  this.riassegna_richiesta_step1();
30273
29923
  });
30274
29924
  }
@@ -30280,7 +29930,6 @@ class FHWorkflowView {
30280
29930
  this.m_dataService.doQuery(p).subscribe((data) => {
30281
29931
  // this.arrAutori=data.result_data;
30282
29932
  let arrAutori = data.result_data;
30283
- console.log('arrAutori prima ', arrAutori);
30284
29933
  let p = new QParam();
30285
29934
  p.sql = 'SELECT_WKF_VARIABILES_V2';
30286
29935
  p.types = ['string'];
@@ -30290,10 +29939,8 @@ class FHWorkflowView {
30290
29939
  if (datav.result_msg == 'OK') {
30291
29940
  arrAutori.map((v) => {
30292
29941
  if (v.step == 10 && v.value == '*ALLUSERS') {
30293
- // console.log('entro ',datav.result_data);
30294
29942
  datav.result_data.map((v1) => {
30295
29943
  if (v1.k == '*CREATOR') {
30296
- // console.log('entro1');
30297
29944
  v.username = v1.v;
30298
29945
  v.nc = v1.nc;
30299
29946
  v.ncx = v1.nc;
@@ -30314,13 +29961,11 @@ class FHWorkflowView {
30314
29961
  });
30315
29962
  }
30316
29963
  });
30317
- console.log('arrAutori dopo ', arrAutori, this.get_grid().sRow.canale);
30318
29964
  let arrAutori_temp = [];
30319
29965
  for (let i = 0; i < arrAutori.length; i++) {
30320
29966
  if (this.get_grid().sRow.canale == null ||
30321
29967
  this.get_grid().sRow.canale == '' ||
30322
29968
  this.get_grid().sRow.canale == arrAutori[i].context) {
30323
- console.log('arrAutori[i].context ', arrAutori[i].context);
30324
29969
  let b_x = false;
30325
29970
  arrAutori_temp.map((v) => {
30326
29971
  if (v.nc == arrAutori[i].nc &&
@@ -30331,7 +29976,6 @@ class FHWorkflowView {
30331
29976
  arrAutori_temp.push(arrAutori[i]);
30332
29977
  }
30333
29978
  }
30334
- console.log('arrAutori_temp ', arrAutori_temp);
30335
29979
  arrAutori = JSON.parse(JSON.stringify(arrAutori_temp));
30336
29980
  let dialogRef = this.dialog.open(win_riassegna_select_user_v2, {
30337
29981
  disableClose: true,
@@ -30393,7 +30037,6 @@ class FHWorkflowView {
30393
30037
  a_partecipanti = this.get_grid().sRow.partecipanti;
30394
30038
  let a_datanot = '';
30395
30039
  let old_grp = 'XCXXX';
30396
- console.log('this.wax ', this.wax);
30397
30040
  for (let i = 0; i < this.wax.length; i++) {
30398
30041
  let app_op = new QParam();
30399
30042
  app_op.sql = 'INSERT_TODO_GEST';
@@ -30583,7 +30226,6 @@ class FHWorkflowView {
30583
30226
  if (data.result_msg == 'OK') {
30584
30227
  }
30585
30228
  }, (err) => {
30586
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
30587
30229
  });
30588
30230
  }
30589
30231
  }
@@ -30689,7 +30331,6 @@ class FHWorkflowView {
30689
30331
  data.result_data[0].cognome +
30690
30332
  ' ' +
30691
30333
  data.result_data[0].nome;
30692
- // console.log('SETTO LOCALSTORAGE: ',this.app_s.COMPANY_KEY+'_imp_user',this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
30693
30334
  localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
30694
30335
  this.get_grid().doFill('');
30695
30336
  }
@@ -30763,7 +30404,6 @@ class FHWorkflowView {
30763
30404
  }
30764
30405
  self_ok() {
30765
30406
  if (this.get_grid() != null) {
30766
- console.log('this.get_grid() ', this.get_grid());
30767
30407
  this.get_grid().refresh_access(this);
30768
30408
  return;
30769
30409
  }
@@ -30882,7 +30522,6 @@ class FHWorkflowView {
30882
30522
  ok_conf_s(a) {
30883
30523
  this.livs = a;
30884
30524
  this.is_Ins = false;
30885
- console.log('livs ', this.livs);
30886
30525
  for (let i = 0; i < this.livs.length; i++) {
30887
30526
  if (this.livs[i].username == null)
30888
30527
  this.livs[i].username = 'ZZZ';
@@ -30921,7 +30560,6 @@ class FHWorkflowView {
30921
30560
  this.m_router.navigate([this.app_root, 'models']);
30922
30561
  }
30923
30562
  insert_doc() {
30924
- console.log('insert_doc() ', this.override_insert);
30925
30563
  if (!this.override_insert)
30926
30564
  this.m_router.navigate([this.app_root, this.id_applicativo, 'new']);
30927
30565
  else
@@ -31829,7 +31467,6 @@ class win_conferma_v2 {
31829
31467
  this.toastr = toastr;
31830
31468
  this._tsr = _tsr;
31831
31469
  this.data = data;
31832
- console.log('data ', data);
31833
31470
  if (data != null) {
31834
31471
  if (data.commento_default != null)
31835
31472
  this.nota = data.commento_default;
@@ -32075,7 +31712,6 @@ class win_info_doc_v2 {
32075
31712
  this.load_info(data);
32076
31713
  }
32077
31714
  load_info(data) {
32078
- console.log('data ', data);
32079
31715
  if (data.v == null)
32080
31716
  data.v = 1;
32081
31717
  this.codice = data.codice + '/' + data.v;
@@ -32308,7 +31944,6 @@ class win_log_v2 {
32308
31944
  this.m_appService.COMPANY_KEY +
32309
31945
  '/' +
32310
31946
  this.m_appService.API_ENDPOINT.split('/').join('_');
32311
- // console.log("🚀 ~ file: win_show_diag.ts ~ line 109 ~ win_show_diag ~ ngAfterContentInit ~ this.url_sel", this.url_sel)
32312
31947
  }
32313
31948
  logs = new Array();
32314
31949
  notifica_commenti = 1;
@@ -32367,7 +32002,6 @@ class win_log_v2 {
32367
32002
  this.title = this._tsr.instant('MODIFICA COMMENTO');
32368
32003
  }
32369
32004
  refresh_list() {
32370
- console.log('🚀 ~ file: win_log.ts ~ line 232 ~ win_log_v2 ~ refresh_list ~ refresh_list');
32371
32005
  this.load_graph();
32372
32006
  let p = new QParam();
32373
32007
  p.sql = 'SELECT_WORKFLOW_LOG';
@@ -32531,7 +32165,6 @@ class win_log_v2 {
32531
32165
  timeOut: 1000,
32532
32166
  progressBar: true,
32533
32167
  });
32534
- console.log('insert_update_comment !!!!');
32535
32168
  let px = new FSInput();
32536
32169
  px.command = 'exec_app';
32537
32170
  px.p1 = 'insert_update_comment';
@@ -32565,7 +32198,6 @@ class win_log_v2 {
32565
32198
  timeOut: 1000,
32566
32199
  progressBar: true,
32567
32200
  });
32568
- console.log('insert_update_comment !!!!');
32569
32201
  let px = new FSInput();
32570
32202
  px.command = 'exec_app';
32571
32203
  px.p1 = 'insert_update_comment';
@@ -33369,7 +33001,6 @@ class win_uploads_v2 {
33369
33001
  this.data = data;
33370
33002
  this.dialogRef = dialogRef;
33371
33003
  this.app_s = app_s;
33372
- console.log('data ', data);
33373
33004
  if (data != null) {
33374
33005
  if (data.App != null)
33375
33006
  this.App = data.App;
@@ -33559,7 +33190,6 @@ class FHWorkflowForm {
33559
33190
  this.m_dataService.doQuery(px).subscribe((data) => {
33560
33191
  if (data != null)
33561
33192
  if (data.result_msg == 'OK') {
33562
- //console.log('end SELECT_ROLES_WKF_V2',new Date());
33563
33193
  data.result_data.map((v) => {
33564
33194
  this.wkf_users_roles += v.name;
33565
33195
  });
@@ -33575,11 +33205,9 @@ class FHWorkflowForm {
33575
33205
  p.sql = 'SELECT_WKF_APP_INFO_BYUID';
33576
33206
  p.types = ['string'];
33577
33207
  p.values = [this.id_applicativo];
33578
- console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
33579
33208
  this.m_dataService.doQuery(p).subscribe((data) => {
33580
33209
  if (data != null)
33581
33210
  if (data.result_msg == 'OK') {
33582
- console.log(data.result_data.length);
33583
33211
  if (data.result_data.length > 0) {
33584
33212
  this.setta_info_app(data.result_data[0]);
33585
33213
  this.init_engine();
@@ -33696,21 +33324,16 @@ class FHWorkflowForm {
33696
33324
  }
33697
33325
  else {
33698
33326
  liv = this.m_obj.stato;
33699
- console.log('this.m_obj.canale ', this.m_obj.canale, liv);
33700
33327
  if (this.m_obj.canale != null && this.m_obj.canale != '')
33701
33328
  for (let i = 0; i < this.livs.length; i++)
33702
33329
  if (this.livs[i].step == liv) {
33703
- console.log(' liv ', this.livs[i]);
33704
33330
  if (this.user_idp.toUpperCase() == (this.livs[i].username || '').toUpperCase()) {
33705
- console.log(this.m_obj.canale + ' ' + this.livs[i].context);
33706
33331
  if (this.m_obj.canale == this.livs[i].context) {
33707
- console.log('clevel 1 ', this.livs[i]);
33708
33332
  this.clevel = this.livs[i];
33709
33333
  break;
33710
33334
  }
33711
33335
  }
33712
33336
  }
33713
- console.log('clevel 2 ', this.clevel, this.m_obj.canale, this.c_canale);
33714
33337
  if (this.clevel == null)
33715
33338
  for (let i = 0; i < this.livs.length; i++) {
33716
33339
  if (this.livs[i].username == null)
@@ -33729,9 +33352,7 @@ class FHWorkflowForm {
33729
33352
  }
33730
33353
  }
33731
33354
  }
33732
- console.log('clevel 2 ', this.clevel);
33733
33355
  this.clevel = this.check_n_levels(this.clevel);
33734
- console.log('clevel 2aa ', this.clevel);
33735
33356
  if (this.clevel == null || this.clevel == '') {
33736
33357
  this.alert('Errore di configurazione pratica contattare ufficio IT [0x002]', 1);
33737
33358
  return;
@@ -33774,7 +33395,6 @@ class FHWorkflowForm {
33774
33395
  }
33775
33396
  calcolanextandjump() {
33776
33397
  let p = new QParam();
33777
- console.log('this.respingi_enabled ', this.respingi_enabled);
33778
33398
  if (!this.b_respingi_button)
33779
33399
  p.sql = 'SELECT_TRANSAZIONI_FROM_LVL';
33780
33400
  else {
@@ -33804,7 +33424,6 @@ class FHWorkflowForm {
33804
33424
  width: '600px',
33805
33425
  });
33806
33426
  dialogRef.afterClosed().subscribe((result) => {
33807
- console.log('ris select level', result);
33808
33427
  if (result == null) {
33809
33428
  this.update_status(true, this.respingi_enabled, null, null, 2);
33810
33429
  return;
@@ -33817,7 +33436,6 @@ class FHWorkflowForm {
33817
33436
  }
33818
33437
  transizione_info = {};
33819
33438
  calcolanextandjump2(o) {
33820
- console.log('calcolanextandjump2', o);
33821
33439
  this.transizione_info = o;
33822
33440
  let cliv = 0;
33823
33441
  let liv = 0;
@@ -33869,7 +33487,6 @@ class FHWorkflowForm {
33869
33487
  arrUsersSelected = [];
33870
33488
  respingi_enabled = false;
33871
33489
  calcola_destinari(o) {
33872
- console.log('this. this.transizione_info ', o);
33873
33490
  if (this.nlevel == null) {
33874
33491
  this.alert('problema di configurazione passaggio prossimo livello ' +
33875
33492
  this.clevel.des_step +
@@ -33878,12 +33495,10 @@ class FHWorkflowForm {
33878
33495
  return;
33879
33496
  }
33880
33497
  //let arrayNexl: Array<any> = new Array();
33881
- console.log('canale before: ' + this.clevel.context);
33882
33498
  if (this.c_canale != null)
33883
33499
  if (this.c_canale != '')
33884
33500
  if (this.clevel.context == null || this.clevel.context == '')
33885
33501
  this.clevel.context = this.c_canale;
33886
- console.log('canale after: ' + this.clevel.context);
33887
33502
  let arrAutori = new Array();
33888
33503
  if (this.clevel.context == '') {
33889
33504
  for (let i = 0; i < this.livs.length; i++)
@@ -33895,7 +33510,6 @@ class FHWorkflowForm {
33895
33510
  for (let i = 0; i < this.livs.length; i++)
33896
33511
  if (this.livs[i].step == this.nlevel.step && this.livs[i].context != '')
33897
33512
  b_canale = true;
33898
- console.log('canale: ' + this.clevel.context);
33899
33513
  for (let i = 0; i < this.livs.length; i++)
33900
33514
  if (this.livs[i].step == this.nlevel.step) {
33901
33515
  if (this.clevel.context == this.livs[i].context ||
@@ -33906,7 +33520,6 @@ class FHWorkflowForm {
33906
33520
  }
33907
33521
  }
33908
33522
  }
33909
- console.log('autori calcolati: ' + arrAutori);
33910
33523
  if (arrAutori.length == 0) {
33911
33524
  this.alert('problema di configurazione il livello ' +
33912
33525
  this.nlevel.descri_livello +
@@ -33917,14 +33530,12 @@ class FHWorkflowForm {
33917
33530
  o.pre_assegna_req = 0;
33918
33531
  if (o.pre_assegna_man == null)
33919
33532
  o.pre_assegna_man = 0;
33920
- console.log(' o.pre_assegna_req ', o.pre_assegna_req);
33921
33533
  if (this.transizione_info.manual_assignment == 1 ||
33922
33534
  o.pre_assegna_man == 1) {
33923
33535
  let att_autor = [];
33924
33536
  if (this.m_obj.creatore != null)
33925
33537
  if (this.m_obj.creatore != '')
33926
33538
  arrAutori.map((v) => {
33927
- // console.log('v ',v);
33928
33539
  if (v.username == this.m_obj.creatore) {
33929
33540
  att_autor.push(v);
33930
33541
  }
@@ -33976,7 +33587,6 @@ class FHWorkflowForm {
33976
33587
  if (this.m_obj.creatore != null)
33977
33588
  if (this.m_obj.creatore != '')
33978
33589
  arrAutori.map((v) => {
33979
- // console.log('v ',v);
33980
33590
  if (v.username == this.m_obj.creatore) {
33981
33591
  att_autor.push(v);
33982
33592
  }
@@ -34125,7 +33735,6 @@ class FHWorkflowForm {
34125
33735
  break;
34126
33736
  }
34127
33737
  }
34128
- // console.log('arrAutori ',arrAutori);
34129
33738
  arrAutori = arrAutori.sort((n1, n2) => {
34130
33739
  if (n1.nc > n2.nc) {
34131
33740
  return 1;
@@ -34153,7 +33762,6 @@ class FHWorkflowForm {
34153
33762
  this.alert('Impossibile riassegnare', 1);
34154
33763
  return;
34155
33764
  }
34156
- // console.log(' result.arrsel ', result.arrsel);
34157
33765
  let arr_new_arr = '';
34158
33766
  this.m_obj.autori = '';
34159
33767
  this.m_obj.pers_int = '';
@@ -34163,7 +33771,6 @@ class FHWorkflowForm {
34163
33771
  arr_new_arr += ',';
34164
33772
  arr_new_arr += v.username;
34165
33773
  if (this.m_obj.autori.indexOf(v.username) == -1) {
34166
- console.log('VVV ', v);
34167
33774
  if (this.m_obj.autori != '')
34168
33775
  this.m_obj.autori = this.m_obj.autori + ',';
34169
33776
  this.m_obj.autori = this.m_obj.autori + v.username;
@@ -34178,13 +33785,11 @@ class FHWorkflowForm {
34178
33785
  if (this.m_obj.autori != null)
34179
33786
  if (this.m_obj.autori.split(',').length != 1)
34180
33787
  this.in_carico = true;
34181
- console.log(this.m_obj.autori, this.in_carico);
34182
33788
  this.b_assengna_a = false;
34183
33789
  if (this.m_obj.assegnati_paralleli != null)
34184
33790
  if (this.m_obj.assegnati_paralleli.split(',').length != 1)
34185
33791
  if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
34186
33792
  this.b_assengna_a = true;
34187
- // console.log('this.m_obj.autori ',this.m_obj.autori, this.in_carico, this.b_assengna_a);
34188
33793
  this.update_status(b_edit, this.respingi_enabled, this.in_carico, this.b_assengna_a, 18);
34189
33794
  let p = new QParam();
34190
33795
  p.sql = 'UPDATE_WKF_DOC_AUTHOR';
@@ -34338,12 +33943,10 @@ class FHWorkflowForm {
34338
33943
  });
34339
33944
  }
34340
33945
  exec_wkf(trans, liv, arrdest, comm, crea_ver = false, assegnati_paralleli) {
34341
- console.log('exec_wkf trans ', trans, ' liv ', liv, ' arrdest ', arrdest, ' comm ', comm, ' crea_ver ', crea_ver, ' assegnati_paralleli ', assegnati_paralleli);
34342
33946
  let dev_mode = false;
34343
33947
  if (this.app_s.dev_mode != null)
34344
33948
  if (this.app_s.dev_mode == '1')
34345
33949
  dev_mode = true;
34346
- console.log('exec_wkf ', arrdest, assegnati_paralleli);
34347
33950
  if (crea_ver == null)
34348
33951
  crea_ver = false;
34349
33952
  this.dialogRef_ww = this.m_dialog.open(FHWinWaitComponent, {
@@ -34399,7 +34002,6 @@ class FHWorkflowForm {
34399
34002
  this.m_dataService.doQuery(p).subscribe((data) => {
34400
34003
  this.reset_updw();
34401
34004
  this.m_fileservice.doQuery(fs).subscribe((data) => {
34402
- console.log(data);
34403
34005
  if (trans.step_d >= 900)
34404
34006
  this.doEnd(trans.step_d);
34405
34007
  else
@@ -34424,7 +34026,6 @@ class FHWorkflowForm {
34424
34026
  }
34425
34027
  back(edit_button) {
34426
34028
  let arrd = this.uti_s.get_diff_doc(this.old_doc, this.getfieldvalues());
34427
- console.log(arrd);
34428
34029
  let flt = [];
34429
34030
  for (let i = 0; i < arrd.length; i++) {
34430
34031
  if (arrd[i].val == '-1')
@@ -34490,10 +34091,8 @@ class FHWorkflowForm {
34490
34091
  this.goto_edit_doc(notif_av);
34491
34092
  return;
34492
34093
  }
34493
- console.log('sendEMail_ex prima ', dev_mode);
34494
34094
  if (!dev_mode)
34495
34095
  dev_mode = !this.is_send_email();
34496
- console.log('sendEMail_ex dopo ', dev_mode);
34497
34096
  let obj_r = {
34498
34097
  destinatari: to.split(','),
34499
34098
  commento: commento,
@@ -34582,7 +34181,6 @@ class FHWorkflowForm {
34582
34181
  this.salva();
34583
34182
  }
34584
34183
  open_wkf(em, inser_c = false, edit_c = true, show_wkf = true) {
34585
- console.log('inser_c = false,edit_c=true ', inser_c, edit_c);
34586
34184
  let s_h = this.app_s.getState().body_h - 40 + 'px';
34587
34185
  let dialogRef = this.m_dialog.open(win_log_v2, {
34588
34186
  disableClose: true,
@@ -34621,7 +34219,6 @@ class FHWorkflowForm {
34621
34219
  dialogRef.afterClosed().subscribe((result) => {
34622
34220
  if (result == null)
34623
34221
  if (result == 'i') {
34624
- console.log('inserito commento');
34625
34222
  em.emit();
34626
34223
  }
34627
34224
  this.r_count();
@@ -34663,13 +34260,11 @@ class FHWorkflowForm {
34663
34260
  if (result != null)
34664
34261
  if (result == 'i') {
34665
34262
  em.emit();
34666
- console.log('emetto insert');
34667
34263
  }
34668
34264
  this.r_count();
34669
34265
  });
34670
34266
  }
34671
34267
  open_upload(sovra_path = '', admin_role = '[ZZZ_DIS_CC]', tipologiaAllegati = '') {
34672
- console.log('open_upload ', sovra_path, admin_role);
34673
34268
  let dialogRef = this.m_dialog.open(win_uploads_v2, {
34674
34269
  disableClose: true,
34675
34270
  width: '90%',
@@ -34725,7 +34320,6 @@ class FHWorkflowForm {
34725
34320
  this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
34726
34321
  this.update_status(false, false, null, null, 12);
34727
34322
  let arr = this.getfieldvalues();
34728
- // console.log('arr',arr);
34729
34323
  let p = new QParam();
34730
34324
  p.sql = 'insert_aggiuntivi';
34731
34325
  p.types = ['string', 'string'];
@@ -34761,9 +34355,7 @@ class FHWorkflowForm {
34761
34355
  arr[i].values = 'dbnull';
34762
34356
  }
34763
34357
  if (arr[i].types == 'datetime') {
34764
- console.log('typeof ', typeof arr[i].values, arr[i].values);
34765
34358
  arr[i].values = this.uti_s.sql_date_time(arr[i].values);
34766
- console.log('arr[i].values ', arr[i].values);
34767
34359
  if (arr[i].values.split('0').join('') == 'NaN-NaN-NaN NaN:NaN')
34768
34360
  arr[i].values = 'dbnull';
34769
34361
  }
@@ -34782,7 +34374,6 @@ class FHWorkflowForm {
34782
34374
  }
34783
34375
  p.values.push(arr[i].values);
34784
34376
  }
34785
- // console.log('p',p);
34786
34377
  this.m_wkf.doQuery(p).subscribe((data) => {
34787
34378
  if (data != null)
34788
34379
  if (data.result_msg == 'OK') {
@@ -34833,7 +34424,6 @@ class FHWorkflowForm {
34833
34424
  this.m_dataService.doQuery(p).subscribe((data) => {
34834
34425
  if (data != null)
34835
34426
  if (data.result_msg == 'OK') {
34836
- // console.log('end load_document',new Date());
34837
34427
  let a = data.result_data;
34838
34428
  if (a.length > 0) {
34839
34429
  this.ok_load_document(a[0]);
@@ -34891,7 +34481,6 @@ class FHWorkflowForm {
34891
34481
  this.m_dataService.doQuery(p).subscribe((datav) => {
34892
34482
  if (datav != null)
34893
34483
  if (datav.result_msg == 'OK') {
34894
- console.log('SELECT_WKF_VARIABILES_V2 ', datav.result_data);
34895
34484
  datav.result_data.push({
34896
34485
  k: '*CURRENT_USER',
34897
34486
  v: this.app_s.user,
@@ -34930,7 +34519,6 @@ class FHWorkflowForm {
34930
34519
  }
34931
34520
  }
34932
34521
  }
34933
- console.log('SELECT_WKF_VARIABILES_V2 dopo add ', datav.result_data);
34934
34522
  data.result_data.map((v) => {
34935
34523
  if (v.value.indexOf('*') == 0) {
34936
34524
  v.context = this.m_obj.canale;
@@ -34939,7 +34527,6 @@ class FHWorkflowForm {
34939
34527
  datav.result_data.map((v1) => {
34940
34528
  if (v.value ==
34941
34529
  v1.k) {
34942
- console.log('sostituisco k: ', v1.k, v1.v);
34943
34530
  v.username = v1.v;
34944
34531
  v.nc = v1.nc;
34945
34532
  v.ncx = v1.nc;
@@ -34948,7 +34535,6 @@ class FHWorkflowForm {
34948
34535
  });
34949
34536
  }
34950
34537
  });
34951
- console.log('Var speciali ', datav.result_data);
34952
34538
  let x_app = [];
34953
34539
  data.result_data.map((v) => {
34954
34540
  if (v.value.indexOf('*') != 0 || v.sost || false)
@@ -34957,7 +34543,6 @@ class FHWorkflowForm {
34957
34543
  console.log('escludo! ', v);
34958
34544
  });
34959
34545
  data.result_data = JSON.parse(JSON.stringify(x_app));
34960
- console.log('liv dopo SELECT_WKF_VARIABILES_V2 ', data.result_data);
34961
34546
  let ret = this.wkf_filter_users(data.result_data);
34962
34547
  data.result_data = ret.users;
34963
34548
  if (data.result_data.length == 0) {
@@ -34965,13 +34550,11 @@ class FHWorkflowForm {
34965
34550
  return;
34966
34551
  }
34967
34552
  this.sub_context.forEach((v) => {
34968
- console.log('prima --- override_channel', data.result_data);
34969
34553
  for (let i = 0; i < data.result_data.length; i++) {
34970
34554
  if (data.result_data[i].context)
34971
34555
  if (data.result_data[i].context == v.origin && v.step == data.result_data[i].step)
34972
34556
  data.result_data[i].context = v.destination;
34973
34557
  }
34974
- console.log('dopo --- override_channel', data.result_data);
34975
34558
  });
34976
34559
  this.ok_livelli_doc(data.result_data);
34977
34560
  }
@@ -34983,7 +34566,6 @@ class FHWorkflowForm {
34983
34566
  return { users: users, msg: 'Impossibile procedere utenti non configurati' };
34984
34567
  }
34985
34568
  ok_livelli_doc(r) {
34986
- console.log();
34987
34569
  this.livs = r;
34988
34570
  this.over_canale_iniz();
34989
34571
  if (this.m_obj.stato <= 10)
@@ -35058,20 +34640,17 @@ class FHWorkflowForm {
35058
34640
  this.c_canale = this.forza_canale;
35059
34641
  }
35060
34642
  ck_canale_multiplo() {
35061
- console.log('ck_canale_multiplo ', this.livs);
35062
34643
  let min_liv = 0;
35063
34644
  for (let i = 0; i < this.livs.length; i++)
35064
34645
  if (this.livs[i].step < min_liv || min_liv == 0) {
35065
34646
  this.clevel = this.livs[i];
35066
34647
  min_liv = this.livs[i].step;
35067
34648
  }
35068
- console.log('min_liv ', min_liv);
35069
34649
  let sv = [];
35070
34650
  for (let i = 0; i < this.livs.length; i++)
35071
34651
  if (this.livs[i].step == min_liv &&
35072
34652
  this.app_s.getState().wkf_doc_info.curr_user.toUpperCase() ==
35073
34653
  (this.livs[i].username || '').toUpperCase()) {
35074
- console.log(' this.livs[i].step ', this.livs[i].step, (this.livs[i].username || '').toUpperCase(), this.livs[i].context);
35075
34654
  let b_found = false;
35076
34655
  for (let y = 0; y < sv.length; y++)
35077
34656
  if (sv[y] == this.livs[i].context) {
@@ -35084,7 +34663,6 @@ class FHWorkflowForm {
35084
34663
  else
35085
34664
  sv.push('');
35086
34665
  }
35087
- console.log('sv ', sv);
35088
34666
  if (sv.length <= 1) {
35089
34667
  this.c_canale = sv[0];
35090
34668
  this.create_new_document();
@@ -35123,7 +34701,6 @@ class FHWorkflowForm {
35123
34701
  public open_allegati(){
35124
34702
 
35125
34703
  let dialogRef = this.m_dialog.open(win_allegati);
35126
- console.log("ERRX: ");
35127
34704
 
35128
34705
  dialogRef.afterClosed().subscribe(result => {
35129
34706
  // this.selectedOption = result;
@@ -35152,7 +34729,6 @@ class FHWorkflowForm {
35152
34729
  }
35153
34730
  this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
35154
34731
  this.m_obj.s_uto = this.s_uto;
35155
- console.log('this.m_obj ', this.m_obj);
35156
34732
  let dialogRef = this.m_dialog.open(win_info_doc_v2, {
35157
34733
  disableClose: true,
35158
34734
  data: this.m_obj,
@@ -35487,8 +35063,6 @@ class FHWorkflowForm {
35487
35063
  }
35488
35064
  for (let i = 0; i < this.livs.length; i++)
35489
35065
  if (min_liv == this.livs[i].step) {
35490
- //console.log('this.user_idp.toUpperCase() ',this.user_idp.toUpperCase());
35491
- //console.log('(this.livs[i].username||'').toUpperCase() ',(this.livs[i].username||'').toUpperCase() );
35492
35066
  if (this.livs[i].username == null)
35493
35067
  this.livs[i].username = 'ZZZ';
35494
35068
  if (this.user_idp.toUpperCase() == (this.livs[i].username || '').toUpperCase() ||
@@ -35521,7 +35095,6 @@ class FHWorkflowForm {
35521
35095
  this.b_respingi_button = false;
35522
35096
  if ((this.app_info.proceed_mode || 'P') == 'R')
35523
35097
  this.b_respingi_button = true;
35524
- console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2301 ~ FHWorkflowForm ~ return_edit 1111 ~ b_respingi_button", this.b_respingi_button);
35525
35098
  let px = new QParam();
35526
35099
  px.sql = 'SELECT_TRANSAZIONI_FROM_LVL_DOWN';
35527
35100
  px.values = [this.id_applicativo, (this.m_obj.stato || -1)];
@@ -35534,7 +35107,6 @@ class FHWorkflowForm {
35534
35107
  if (this.m_obj.autori == null)
35535
35108
  this.m_obj.autori = '';
35536
35109
  if ((',' + this.m_obj.autori.toLowerCase() + ',').indexOf(',' + this.user_idp.toLowerCase() + ',') != -1) {
35537
- // console.log('this.m_obj.autori ', this.m_obj.autori);
35538
35110
  if (this.m_obj.autori != null)
35539
35111
  if (this.m_obj.autori.split(',').length != 1)
35540
35112
  this.in_carico = true;
@@ -35598,12 +35170,9 @@ class FHWorkflowForm {
35598
35170
  this.tsr.instant(this.m_obj.stat_stato));
35599
35171
  this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
35600
35172
  });
35601
- // console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2301 ~ FHWorkflowForm ~ return_edit 222 ~ b_respingi_button", this.b_respingi_button)
35602
- //console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2301 ~ FHWorkflowForm ~ return_edit 333 ~ b_respingi_button", this.respingi_enabled)
35603
35173
  //+' ('+s_uto+')');
35604
35174
  }
35605
35175
  reset_form_v(t) {
35606
- console.log('reset_form_v ', this.loaded);
35607
35176
  if (!this.loaded) {
35608
35177
  setTimeout(() => {
35609
35178
  this.reset_form_v(t);
@@ -35645,12 +35214,6 @@ class FHWorkflowForm {
35645
35214
  init_engine() {
35646
35215
  if (this.app_s.user != null)
35647
35216
  this.user_idp = this.app_s.user;
35648
- // console.log(
35649
- // "this.user_idp == null || this.m_route.params==null ",
35650
- // this.user_idp,
35651
- // this.m_route.params,
35652
- // new Date()
35653
- // );
35654
35217
  if (this.user_idp == null || this.m_route.params == null) {
35655
35218
  setTimeout(() => {
35656
35219
  this.init_engine();
@@ -35665,7 +35228,6 @@ class FHWorkflowForm {
35665
35228
  this.custom_action = params['custom_action'];
35666
35229
  this.custom_action_param = params['param'];
35667
35230
  this.b_edit = id != 'new' && !this.custom_action ? true : false;
35668
- console.log('🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2413 ~ FHWorkflowForm ~ this.m_route.params.subscribe ~ this.b_edit', this.b_edit, id, params);
35669
35231
  this.init_app_wkf();
35670
35232
  if (!this.b_edit)
35671
35233
  if (this.id_applicativo.indexOf('_') > -1) {
@@ -35680,7 +35242,6 @@ class FHWorkflowForm {
35680
35242
  });
35681
35243
  }
35682
35244
  init_app_wkf() {
35683
- // console.log("init_app_wkf ", this.b_edit);
35684
35245
  if (!this.b_edit)
35685
35246
  this.insert_doc();
35686
35247
  else
@@ -35791,7 +35352,6 @@ class FHWorkflowHeaderBar {
35791
35352
  else
35792
35353
  this.custom_commands_sec.push(v);
35793
35354
  });
35794
- console.log('🚀 ~ FHWorkflowHeaderBar ~ custom_commands_pri ~ custom_commands_sec:', this.custom_commands_pri, this.custom_commands_sec);
35795
35355
  }
35796
35356
  button_clicked = new EventEmitter();
35797
35357
  revisione() {
@@ -35845,7 +35405,6 @@ class FHWorkflowHeaderBar {
35845
35405
  this.dt_agg.open_upload(this.sovra_path, this.admin_role, this.tipologiaAllegati);
35846
35406
  }
35847
35407
  open_wkf() {
35848
- console.log('this.edit_comments_in_logs ', this.edit_comments_in_logs);
35849
35408
  this.button_clicked.emit('open_wkf');
35850
35409
  if (this.dt_agg != null)
35851
35410
  this.dt_agg.open_wkf(this.comment_inserted, false, this.edit_comments_in_logs, this.showWkfGraph);
@@ -36094,13 +35653,13 @@ class FHWorkflowHeaderBar {
36094
35653
  </div>
36095
35654
  </div>
36096
35655
  </div>
36097
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i6$6.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }] });
35656
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i6$6.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i8$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
36098
35657
  }
36099
35658
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWorkflowHeaderBar, decorators: [{
36100
35659
  type: Component,
36101
35660
  args: [{
36102
35661
  selector: 'FHWorkflowHeaderBar',
36103
- imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule],
35662
+ imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule, FlexLayoutModule],
36104
35663
  template: `
36105
35664
  <div
36106
35665
  fxLayout="row"
@@ -36390,11 +35949,8 @@ class AuthHttpRequestInterceptor {
36390
35949
  }
36391
35950
  intercept(request, next) {
36392
35951
  const token = this.getJwtToken();
36393
- // console.log('[AuthInterceptor] Intercepting request:', request.url);
36394
- // console.log('[AuthInterceptor] Token available:', token !== 'ZZ' && token !== null);
36395
35952
  if (token && token !== 'ZZ') {
36396
35953
  request = this.addToken(request, token);
36397
- // console.log('[AuthInterceptor] Token added to request');
36398
35954
  }
36399
35955
  else {
36400
35956
  // console.warn('[AuthInterceptor] No valid token found in localStorage');
@@ -36434,12 +35990,10 @@ class AuthHttpRequestInterceptor {
36434
35990
  return next.handle(request);
36435
35991
  }
36436
35992
  if (!this.isRefreshing) {
36437
- // console.log('[AuthInterceptor] Starting token refresh...');
36438
35993
  this.isRefreshing = true;
36439
35994
  this.refreshTokenSubject.next(null);
36440
35995
  return this.refreshToken(token, refreshToken).pipe(switchMap((token) => {
36441
35996
  this.isRefreshing = false;
36442
- // console.log('[AuthInterceptor] Token refreshed successfully');
36443
35997
  this.refreshTokenSubject.next(localStorage.getItem(this.appService.COMPANY_KEY + 'token'));
36444
35998
  return next.handle(this.addToken(request, localStorage.getItem(this.appService.COMPANY_KEY + 'token') ||
36445
35999
  'ZZ'));
@@ -36451,9 +36005,7 @@ class AuthHttpRequestInterceptor {
36451
36005
  }));
36452
36006
  }
36453
36007
  else {
36454
- // console.log('[AuthInterceptor] Waiting for ongoing token refresh...');
36455
36008
  return this.refreshTokenSubject.pipe(filter((token) => token != null), take(1), switchMap((jwt) => {
36456
- // console.log('[AuthInterceptor] Using refreshed token from queue');
36457
36009
  return next.handle(this.addToken(request, localStorage.getItem(this.appService.COMPANY_KEY + 'token') ||
36458
36010
  'ZZ'));
36459
36011
  }));
@@ -36464,7 +36016,6 @@ class AuthHttpRequestInterceptor {
36464
36016
  accessToken: token,
36465
36017
  refreshToken: refreshToken,
36466
36018
  });
36467
- // console.log('[AuthInterceptor] Calling refresh endpoint:', this.appService.API_ENDPOINT + 'token/refresh');
36468
36019
  return this.http
36469
36020
  .post(this.appService.API_ENDPOINT + 'token/refresh', credentials, {
36470
36021
  headers: new HttpHeaders({
@@ -36477,13 +36028,11 @@ class AuthHttpRequestInterceptor {
36477
36028
  this.loginservice.logout();
36478
36029
  return;
36479
36030
  }
36480
- // console.log('[AuthInterceptor] New tokens saved to localStorage');
36481
36031
  localStorage.setItem(this.appService.COMPANY_KEY + 'token', res.accessToken);
36482
36032
  localStorage.setItem(this.appService.COMPANY_KEY + 'refreshToken', res.refreshToken);
36483
36033
  }));
36484
36034
  }
36485
36035
  addToken(request, token) {
36486
- // console.log("🚀 ~ AuthHttpRequestInterceptor ~ addToken ~ addToken:", request,token)
36487
36036
  return request.clone({
36488
36037
  setHeaders: {
36489
36038
  Authorization: `Bearer ${token}`,
@@ -36608,7 +36157,6 @@ class QueryOpenService {
36608
36157
  */
36609
36158
  doQuery(queryp, displayError = true, url_sec = null) {
36610
36159
  this.app_s.start();
36611
- //console.log('queryp before ',queryp);
36612
36160
  this.headers = new HttpHeaders({
36613
36161
  "Content-Type": "application/json"
36614
36162
  });
@@ -36616,7 +36164,6 @@ class QueryOpenService {
36616
36164
  this.url = this.app_s.API_ENDPOINT + this.app_s.OPEN_QUERY_ENDPOINT;
36617
36165
  else
36618
36166
  this.url = url_sec;
36619
- // console.log('QueryService url: '+ this.url);
36620
36167
  if (queryp.types != null && queryp.sql.indexOf("_MULTI") == -1)
36621
36168
  for (let i = 0; i < queryp.types.length; i++) {
36622
36169
  if (queryp.values[i] == null)
@@ -36663,13 +36210,11 @@ class QueryOpenService {
36663
36210
  }
36664
36211
  }
36665
36212
  }
36666
- //console.log('queryp after ',queryp);
36667
36213
  let post_v = JSON.stringify(queryp);
36668
36214
  // Check if running on localhost:4200
36669
36215
  const isLocalhost = window.location.hostname === 'localhost' && window.location.port === '4200';
36670
36216
  // se rilevo che sono sono localhost:4200 scrivo su console
36671
36217
  if (isLocalhost) {
36672
- console.log("QueryService: " + post_v);
36673
36218
  }
36674
36219
  return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
36675
36220
  this.app_s.complete();