@fluxhub/fluxhub-lib 19.0.88 → 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]);
@@ -14899,6 +14696,11 @@ class FHColorPickerComponent {
14899
14696
  return this._color ? this._color.toHexString() : null;
14900
14697
  }
14901
14698
  ngOnInit() {
14699
+ // Inizializza con un colore di default se _color è null
14700
+ if (!this._color) {
14701
+ this.colorControl.setValueFrom('#2196F3');
14702
+ this._color = this.colorControl.value;
14703
+ }
14902
14704
  }
14903
14705
  showColorPicker(event) {
14904
14706
  if (this.isVisible === true) {
@@ -14910,14 +14712,38 @@ class FHColorPickerComponent {
14910
14712
  event.preventDefault();
14911
14713
  event.stopPropagation();
14912
14714
  this.isVisible = false;
14913
- this.onChange(this.colorControl.value);
14914
14715
  this._color = this.colorControl.value;
14915
- this.change.emit(this.colorControl.value.toHexString());
14716
+ const hexValue = this._color ? this._color.toHexString() : '#2196F3';
14717
+ this.onChange(hexValue);
14718
+ this.change.emit(hexValue);
14916
14719
  }
14917
14720
  constructor() { }
14918
14721
  ngAfterViewInit() { }
14919
14722
  writeValue(value) {
14920
- this._color = value;
14723
+ // Gestisce sia stringhe hex che oggetti Color
14724
+ if (value) {
14725
+ if (typeof value === 'string') {
14726
+ // Se è una stringa, convertila in un oggetto Color
14727
+ try {
14728
+ this.colorControl.setValueFrom(value);
14729
+ this._color = this.colorControl.value;
14730
+ }
14731
+ catch (e) {
14732
+ // Se la conversione fallisce, usa un colore di default
14733
+ this.colorControl.setValueFrom('#2196F3');
14734
+ this._color = this.colorControl.value;
14735
+ }
14736
+ }
14737
+ else {
14738
+ // Se è già un oggetto Color
14739
+ this._color = value;
14740
+ }
14741
+ }
14742
+ else {
14743
+ // Se il valore è null/undefined, usa un colore di default
14744
+ this.colorControl.setValueFrom('#2196F3');
14745
+ this._color = this.colorControl.value;
14746
+ }
14921
14747
  }
14922
14748
  onChange = (_) => { };
14923
14749
  onTouched = () => { };
@@ -15757,7 +15583,6 @@ class FHDateRangePickerComponent {
15757
15583
 
15758
15584
  }
15759
15585
  let arr: Array<string> = this.pickerId.nativeElement.value.split('-').join('/').split('/');
15760
- console.log(arr);
15761
15586
  if (arr.length == 3) {
15762
15587
  let yy=parseInt(arr[2]);
15763
15588
 
@@ -15789,7 +15614,6 @@ class FHDateRangePickerComponent {
15789
15614
  }
15790
15615
  chxx(e) {
15791
15616
  this.setlocalt();
15792
- //console.log(e);
15793
15617
  //e.stopPropagation();
15794
15618
  }
15795
15619
  /*public myDatePickerOptions: IMyDpOptions = {
@@ -15800,7 +15624,6 @@ class FHDateRangePickerComponent {
15800
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' }
15801
15625
  };*/
15802
15626
  ch(event) {
15803
- // console.log("ON CHANGE ", this.getValue());
15804
15627
  this.onChange(this.getValue());
15805
15628
  this.change.emit(this.getValue());
15806
15629
  }
@@ -15812,7 +15635,6 @@ class FHDateRangePickerComponent {
15812
15635
  this.v_view = this.uti_s.date2String(new Date());
15813
15636
  }
15814
15637
  setlocalt() {
15815
- //console.log('setlocalt ',this._apps.user_lang);
15816
15638
  if (this._apps.user_lang == null || this._apps.user_lang == '') {
15817
15639
  setTimeout(() => {
15818
15640
  this.setlocalt();
@@ -15821,11 +15643,9 @@ class FHDateRangePickerComponent {
15821
15643
  }
15822
15644
  if ((this._apps.user_lang || '') == 'it') {
15823
15645
  this.adapter.setLocale('it');
15824
- //console.log('set locale it');
15825
15646
  }
15826
15647
  else if (this._apps.user_lang == 'en') {
15827
15648
  this.adapter.setLocale('en');
15828
- // console.log('set locale gb');
15829
15649
  }
15830
15650
  else {
15831
15651
  this.adapter.setLocale('it');
@@ -15874,7 +15694,6 @@ class FHDateRangePickerComponent {
15874
15694
  this.date_sel = new Date();
15875
15695
  }
15876
15696
  setValue(d) {
15877
- // console.log("🚀 ~ file: FHDateRangePicker.ts:284 ~ setValue ~ d", d)
15878
15697
  this.setlocalt();
15879
15698
  // this.dateAdapter.setLocale("it-IT");
15880
15699
  if (d == null) {
@@ -16040,17 +15859,14 @@ class FHRichTextComponent {
16040
15859
  focus = new EventEmitter();
16041
15860
  blur = new EventEmitter();
16042
15861
  cch(o) {
16043
- // console.log("cch ", o);
16044
15862
  setTimeout(() => {
16045
15863
  this.onChange(this.value);
16046
15864
  this.change.emit(this.value);
16047
15865
  });
16048
15866
  }
16049
15867
  cch1(o1) {
16050
- //console.log("cch1 ", o1);
16051
15868
  }
16052
15869
  modelch() {
16053
- // console.log("modelch ", this.value);
16054
15870
  setTimeout(() => {
16055
15871
  this.onChange(this.value);
16056
15872
  this.change.emit(this.value);
@@ -16175,19 +15991,12 @@ class FHTimePickerComponent {
16175
15991
  }
16176
15992
  upm() {
16177
15993
  let tt = parseInt(this.m + '') + parseInt(this.step + '');
16178
- // console.log('upm ', this.m, parseInt(this.m + ''), tt);
16179
15994
  if (tt < 60) {
16180
15995
  this.m = tt;
16181
15996
  }
16182
15997
  this.sc();
16183
15998
  }
16184
15999
  dom() {
16185
- // console.log(
16186
- // 'dom ',
16187
- // this.m,
16188
- // parseInt(this.m + ''),
16189
- // parseInt(this.m + '') - this.step
16190
- // );
16191
16000
  if (parseInt(this.m + '') - this.step >= 0) {
16192
16001
  this.m = parseInt(this.m + '') - this.step;
16193
16002
  }
@@ -16309,7 +16118,6 @@ class FHTimePickerComponent {
16309
16118
  setTimeout(() => {
16310
16119
  setTimeout(() => {
16311
16120
  let value = this.getValue();
16312
- // console.log('sc ', value);
16313
16121
  this.onChange(value);
16314
16122
  this.selchange.emit();
16315
16123
  }, 200);
@@ -17297,7 +17105,6 @@ class FHUploadPanelComponent {
17297
17105
  if (o.response == null)
17298
17106
  return;
17299
17107
  let obj_r = JSON.parse(o.response);
17300
- // console.log(obj_r);
17301
17108
  if (obj_r != null)
17302
17109
  if (obj_r.msg != null)
17303
17110
  if (obj_r.msg != '') {
@@ -17621,13 +17428,6 @@ class FHUploadPanelComponent {
17621
17428
  (!this.access_control ||
17622
17429
  this.arr_g[i].idp == this._appservice.user ||
17623
17430
  this.uti.hasRole(this.ruolo_supervisore, false));
17624
- // console.log("🚀 ~ file: fhuploadpanel.ts:746 ~ FHUploadPanelComponent ~ this._dataService.doQuery ~ this.can_delete_owner:"
17625
- // , this.can_delete_owner
17626
- // ,' show_delete ', this.show_delete
17627
- // ,' access_control ', this.access_control
17628
- // ,' this.arr_g[i].idp ', this.arr_g[i].idp
17629
- // ,' this.arr_g[i].can_delete', this.arr_g[i].can_delete
17630
- // )
17631
17431
  if ('[ZZZ_DIS_CC]' == this.ruolo_supervisore)
17632
17432
  this.arr_g[i].can_delete_m = this.arr_g[i].idp;
17633
17433
  else
@@ -17639,12 +17439,6 @@ class FHUploadPanelComponent {
17639
17439
  this.show_delete &&
17640
17440
  (!this.access_control ||
17641
17441
  this.uti.hasRole(this.ruolo_supervisore, false));
17642
- // console.log("🚀 ~ file: fhuploadpanel.ts:746 ~ FHUploadPanelComponent ~ this._dataService.doQuery ~ this.can_delete_owner:"
17643
- // , this.can_delete_owner
17644
- // ,' show_delete ', this.show_delete
17645
- // ,' access_control ', this.access_control
17646
- // ,' this.arr_g[i].can_delete', this.arr_g[i].can_delete
17647
- // )
17648
17442
  if ('[ZZZ_DIS_CC]' == this.ruolo_supervisore)
17649
17443
  this.arr_g[i].can_delete_m = '';
17650
17444
  else
@@ -18769,7 +18563,6 @@ class FHUploadS3Component {
18769
18563
  onFileDrop(o) {
18770
18564
  }
18771
18565
  fileOverBase(e) {
18772
- console.log(e);
18773
18566
  this.hasBaseDropZoneOver = e;
18774
18567
  }
18775
18568
  call_up() {
@@ -18849,7 +18642,6 @@ class FHUploadS3Component {
18849
18642
  value: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
18850
18643
  },
18851
18644
  ];
18852
- // console.log('ngAfterViewInit!!');
18853
18645
  this.uploader.setOptions(uo);
18854
18646
  this.uploader.onCompleteAll = () => {
18855
18647
  this.loading = false;
@@ -18867,8 +18659,6 @@ class FHUploadS3Component {
18867
18659
  this.ch(fileItem);
18868
18660
  };
18869
18661
  this.uploader.onProgressItem = (fileItem, progress) => {
18870
- // console.log(fileItem);
18871
- // console.log(progress);
18872
18662
  this.loading = true;
18873
18663
  if (this.dialogRef != null)
18874
18664
  if (this.dialogRef.componentInstance != null)
@@ -18905,10 +18695,6 @@ class FHUploadS3Component {
18905
18695
  this.uploader.onBeforeUploadItem = (item) => {
18906
18696
  item.withCredentials = false;
18907
18697
  };
18908
- // console.log(
18909
- // "uploader ",
18910
- // this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new"
18911
- // );
18912
18698
  this.uploader.onCompleteItem = (item, response, status, header) => {
18913
18699
  if (status === 200) {
18914
18700
  this.descrizione = "";
@@ -19003,15 +18789,12 @@ class FHUploadS3Component {
19003
18789
  this.programma_da_eseguire = programma_da_eseguire;
19004
18790
  this.allow_delete = allow_delete;
19005
18791
  this.ref_allegato();
19006
- // console.log('init! ',this.tipo)
19007
18792
  if (this.tipo.indexOf("SELECT_") > -1) {
19008
18793
  this.multi_list = true;
19009
18794
  this.load_types();
19010
- //console.log('fillCombo');
19011
18795
  }
19012
18796
  }
19013
18797
  ref_allegato() {
19014
- // console.log(' ref_allegato')
19015
18798
  this.id = null;
19016
18799
  this.descrizione = "";
19017
18800
  this.file_name = "";
@@ -20434,7 +20217,6 @@ class FHPickUsersComponent {
20434
20217
  filtra() {
20435
20218
  if (this.fltr_user == null)
20436
20219
  this.fltr_user = '';
20437
- console.log('filtra() ' + this.fltr_user.toUpperCase());
20438
20220
  this.users_list_sel = new Array();
20439
20221
  for (let i = 0; i < this.users_list.length; i++)
20440
20222
  if (this.users_list[i].nc != null) {
@@ -20537,7 +20319,6 @@ class FHPickUsersComponent {
20537
20319
  if (index > -1) {
20538
20320
  this.users_list.splice(index, 1);
20539
20321
  }
20540
- console.log('this.users_list 1 ', this.users_list);
20541
20322
  if (this.single_sel)
20542
20323
  this.user_sel = new Array();
20543
20324
  if (this.user_sel == null)
@@ -21154,9 +20935,7 @@ class FHUserFieldComponent {
21154
20935
  this.selectedUser = result;
21155
20936
  this.writeValue("noop");
21156
20937
  this.select.emit(this.selectedUser);
21157
- // console.log(this.selectedUser);
21158
20938
  this.userName = this.getUsersNc();
21159
- // console.log(this.userName);
21160
20939
  }
21161
20940
  else
21162
20941
  this.clear();
@@ -21512,7 +21291,6 @@ class NumericEditorComponent {
21512
21291
  params.charPress && "1234567890,".indexOf(params.charPress) < 0;
21513
21292
  }
21514
21293
  getValue() {
21515
- // console.log('numeric editore: getValue ['+String(this.value)+']');
21516
21294
  if (String(this.value) == "")
21517
21295
  return 0;
21518
21296
  let appov = 0;
@@ -21545,7 +21323,6 @@ class NumericEditorComponent {
21545
21323
  // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
21546
21324
  ngAfterViewInit() {
21547
21325
  setTimeout(() => {
21548
- //console.log(this.input.element.nativeElement);
21549
21326
  // this.input.first.nativeElement.focus();
21550
21327
  if (this.input != null)
21551
21328
  if (this.input.element != null)
@@ -21577,7 +21354,6 @@ class NumericEditorComponent {
21577
21354
  if (charCode >= 96 && charCode <= 109)
21578
21355
  return true;
21579
21356
  var charStr = String.fromCharCode(charCode);
21580
- // console.log(charCode);
21581
21357
  return this.isCharNumeric(charStr);
21582
21358
  }
21583
21359
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NumericEditorComponent, deps: [{ token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
@@ -21623,8 +21399,6 @@ class ComboBoxEditorComponent {
21623
21399
  this._dataService = _dataService;
21624
21400
  }
21625
21401
  setDt() {
21626
- // console.log('setdt');
21627
- // 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");
21628
21402
  this.date_zz = this.selval;
21629
21403
  }
21630
21404
  myData = new Array();
@@ -21635,7 +21409,6 @@ class ComboBoxEditorComponent {
21635
21409
  p.types = params.types;
21636
21410
  p.values = params.values;
21637
21411
  let ok_op = false;
21638
- // console.log(p);
21639
21412
  this._dataService.doQuery(p).subscribe((data) => {
21640
21413
  let ok_op = false;
21641
21414
  if (data != null)
@@ -21660,7 +21433,6 @@ class ComboBoxEditorComponent {
21660
21433
  }
21661
21434
  getValue() {
21662
21435
  // var dt:Date=new Date(Date.UTC(this.date_zz.getFullYear()-1900,this.date_zz.getMonth(),this.date_zz.getDate()));
21663
- // 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");
21664
21436
  if (this.date_zz == null)
21665
21437
  return null;
21666
21438
  return this.date_zz; //this.date_zz.toJSON();
@@ -21670,7 +21442,6 @@ class ComboBoxEditorComponent {
21670
21442
  }
21671
21443
  onKeyDown(event) {
21672
21444
  let key = event.which || event.keyCode;
21673
- // console.log(key);
21674
21445
  if (key == 37 ||
21675
21446
  key == 13 || // left
21676
21447
  key == 39) {
@@ -21773,7 +21544,6 @@ class TextAreaEditorComponent {
21773
21544
  }
21774
21545
  getValue() {
21775
21546
  // var dt:Date=new Date(Date.UTC(this.date_zz.getFullYear()-1900,this.date_zz.getMonth(),this.date_zz.getDate()));
21776
- // 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");
21777
21547
  if (this.date_zz == null)
21778
21548
  return null;
21779
21549
  return this.date_zz; //this.date_zz.toJSON();
@@ -21783,7 +21553,6 @@ class TextAreaEditorComponent {
21783
21553
  }
21784
21554
  onKeyDown(event) {
21785
21555
  let key = event.which || event.keyCode;
21786
- // console.log(key);
21787
21556
  if (key == 37 ||
21788
21557
  key == 13 || // left
21789
21558
  key == 39) {
@@ -23417,7 +23186,6 @@ class FHWinGridSelection {
23417
23186
  }
23418
23187
  }
23419
23188
  fitSizeAll() {
23420
- // console.log("🚀 ~ FHGridInternalComponent ~ fitSizeAll ~ fitSizeAll:",this.gridApi)
23421
23189
  if (this.gridApi)
23422
23190
  this.gridApi.sizeColumnsToFit();
23423
23191
  }
@@ -23441,7 +23209,6 @@ class FHWinGridSelection {
23441
23209
  if (this.data.selectAll != null)
23442
23210
  this.selectAllRows = this.data.selectAll;
23443
23211
  this.singleSelection = (this.data.singleSelection || false);
23444
- console.log("🚀 ~ FHWinGridSelection ~ this.singleSelection:", this.singleSelection);
23445
23212
  if (this.singleSelection) {
23446
23213
  this.gridOptions = {
23447
23214
  debug: false,
@@ -23470,7 +23237,6 @@ class FHWinGridSelection {
23470
23237
  }
23471
23238
  };
23472
23239
  }
23473
- // console.log("🚀 ~ FHWinGridSelection ~ this.singleSelection:", this.gridOptions)
23474
23240
  }
23475
23241
  if (this.groupColumnName != '')
23476
23242
  this.autoGroupColumnDef = {
@@ -23483,7 +23249,6 @@ class FHWinGridSelection {
23483
23249
  }
23484
23250
  };
23485
23251
  }
23486
- // console.log("🚀 ~ file: win_grid_selection.ts:137 ~ FHWinGridSelection ~ data:", data,(this.data.selectAll||true))
23487
23252
  ie() { }
23488
23253
  ok() {
23489
23254
  if (!this.singleSelection)
@@ -26030,7 +25795,6 @@ class FHFormExecuterComponent {
26030
25795
  .subscribe((result) => {
26031
25796
  if (result != null) {
26032
25797
  let indUiiid = this.items.findIndex((itm) => itm.uiid == item.uiid);
26033
- // console.log("🚀 ~ file: form_executer.ts:201 ~ FHFormExecuterComponent ~ .subscribe ~ indUiiid:", this.items, indUiiid,item,result)
26034
25798
  if (indUiiid != -1) {
26035
25799
  this.items[indUiiid].default_value = result.valore;
26036
25800
  this.items[indUiiid].default_description = result.descrizione_valore;
@@ -26047,7 +25811,6 @@ class FHFormExecuterComponent {
26047
25811
  .subscribe((result) => {
26048
25812
  if (result != null) {
26049
25813
  let indUiiid = this.items.findIndex((itm) => itm.uiid == item.uiid);
26050
- // console.log("🚀 ~ file: form_executer.ts:218 ~ FHFormExecuterComponent ~ .subscribe ~ indUiiid:", this.items, indUiiid,item,result)
26051
25814
  if (indUiiid != -1) {
26052
25815
  this.items[indUiiid].default_value = result.valore;
26053
25816
  this.items[indUiiid].default_description = result.descrizione_valore;
@@ -26109,7 +25872,6 @@ class FHFormExecuterComponent {
26109
25872
  }
26110
25873
  return item;
26111
25874
  });
26112
- console.log('this.items AFTER ', this.items);
26113
25875
  }
26114
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 });
26115
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: `
@@ -26592,9 +26354,7 @@ class AppMakerService {
26592
26354
  "Content-Type": "application/json",
26593
26355
  Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
26594
26356
  });
26595
- // console.log('AppMakerService url: '+ this.url);
26596
26357
  let post_v = JSON.stringify(queryp);
26597
- // console.log(post_v);
26598
26358
  return this.http.post(this.url, post_v).pipe(map((res) => {
26599
26359
  // Handle errors, display if enabled
26600
26360
  let r = res;
@@ -26626,9 +26386,7 @@ class AppMakerService {
26626
26386
  }));
26627
26387
  }
26628
26388
  extractData(res) {
26629
- //console.log(res);
26630
26389
  let body = res.json();
26631
- // console.log(body);
26632
26390
  return body || {};
26633
26391
  }
26634
26392
  handleError(error) {
@@ -27070,7 +26828,6 @@ class FHGridInternalComponent {
27070
26828
  }
27071
26829
  }
27072
26830
  catch (e) {
27073
- console.log(e);
27074
26831
  }
27075
26832
  }
27076
26833
  gf = null;
@@ -27570,7 +27327,6 @@ class FHGridInternalComponent {
27570
27327
  }
27571
27328
  }
27572
27329
  }
27573
- // console.log('return filter_v ', filter_v);
27574
27330
  return filter_v;
27575
27331
  }
27576
27332
  init_end = new EventEmitter();
@@ -27585,10 +27341,7 @@ class FHGridInternalComponent {
27585
27341
  p.table_count = this.tbl_name;
27586
27342
  if (this.count_tbl_name != '')
27587
27343
  p.table_count = this.count_tbl_name;
27588
- // console.log(params);
27589
27344
  p.num_per_pag = (params.request.endRow || 0) - (params.request.startRow || 0);
27590
- // console.log(this.gridOptions.cacheBlockSize );
27591
- // console.log(this.gridOptions.paginationPageSize );
27592
27345
  p.curr_page = Math.round((params.request.startRow || 0) / p.num_per_pag);
27593
27346
  if (p.curr_page == null)
27594
27347
  p.curr_page = 0;
@@ -27634,18 +27387,11 @@ class FHGridInternalComponent {
27634
27387
  p.filter = p.filter + ' and ';
27635
27388
  p.filter = p.filter + ' (' + this.fix_flt_temp + ' )';
27636
27389
  }
27637
- // console.log('Filter model');
27638
- //console.log(params.filterModel);
27639
27390
  let p_fi = p.filter;
27640
27391
  let b_init = false;
27641
27392
  if (params.request.filterModel != null) {
27642
- // console.log('Filtri');
27643
27393
  for (let key in params.request.filterModel) {
27644
27394
  if (!b_init) {
27645
- // console.log(
27646
- // '🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always',
27647
- // this.include_always
27648
- // );
27649
27395
  if (this.include_always != '') {
27650
27396
  if (p.filter != '')
27651
27397
  p.filter += ' and ';
@@ -27653,7 +27399,6 @@ class FHGridInternalComponent {
27653
27399
  }
27654
27400
  }
27655
27401
  let obj_filtro_test = params.request.filterModel[key];
27656
- // console.log(params.filterModel[key], key);
27657
27402
  if (obj_filtro_test.operator == null) {
27658
27403
  if (!(p.filter != '' && (b_init || this.include_always == '')))
27659
27404
  p.filter += this.calcola_filtro(params.request.filterModel[key], '', key, false);
@@ -27690,7 +27435,6 @@ class FHGridInternalComponent {
27690
27435
  else
27691
27436
  this.show_pulisci_filtri = true;
27692
27437
  //p.num_per_pag=5000;
27693
- // console.log(this._gridservice);
27694
27438
  this.loading_fulltext = true;
27695
27439
  this.str_curr_q_p = '';
27696
27440
  if (p.filter != '')
@@ -27704,7 +27448,6 @@ class FHGridInternalComponent {
27704
27448
  if (data != null)
27705
27449
  if (data.result_msg == 'OK') {
27706
27450
  ok_op = true;
27707
- // console.log(data.result_data);
27708
27451
  this.rowData = data.result_data;
27709
27452
  params.success({ rowData: data.result_data, rowCount: data.count });
27710
27453
  this.b_init = true;
@@ -27713,14 +27456,11 @@ class FHGridInternalComponent {
27713
27456
  this.m_appService.complete();
27714
27457
  this.fill_end.emit();
27715
27458
  this.check_width();
27716
- // console.log("end");
27717
- // console.log(localStorage.getItem(this.grid_key+'_POS'));
27718
27459
  localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
27719
27460
  if (localStorage.getItem(this.grid_key + '_POS2') != null)
27720
27461
  if (this.gridOptions != null)
27721
27462
  if (this.gridApi != null)
27722
27463
  this.gridApi.forEachNode((node) => {
27723
- // console.log(node:any)
27724
27464
  if (this.getRowId(node) ===
27725
27465
  localStorage.getItem(this.grid_key + '_POS2')) {
27726
27466
  node.setSelected(true);
@@ -27761,10 +27501,6 @@ class FHGridInternalComponent {
27761
27501
  filter_x = ' and (' + p.filter + ')';
27762
27502
  var px = new QParam();
27763
27503
  px.sql = this.over_fulltext_sql;
27764
- // console.log(
27765
- // 'JSON.stringify(params.filterModel) ',
27766
- // JSON.stringify(params.filterModel)
27767
- // );
27768
27504
  if (JSON.stringify(params.filterModel) == '{}')
27769
27505
  px.sql = this.over_fulltext_sql + '_FT';
27770
27506
  px.types = ['string', 'string', 'string'];
@@ -27780,7 +27516,6 @@ class FHGridInternalComponent {
27780
27516
  if (data != null)
27781
27517
  if (data.result_msg == 'OK') {
27782
27518
  ok_op = true;
27783
- // console.log(data.result_data);
27784
27519
  this.rowData = data.result_data;
27785
27520
  params.success({ rowData: data.result_data, rowCount: data.result_data.length });
27786
27521
  this.b_init = true;
@@ -27789,14 +27524,11 @@ class FHGridInternalComponent {
27789
27524
  this.m_appService.complete();
27790
27525
  this.fill_end.emit();
27791
27526
  this.check_width();
27792
- // console.log("end");
27793
- // console.log(localStorage.getItem(this.grid_key+'_POS'));
27794
27527
  localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
27795
27528
  if (localStorage.getItem(this.grid_key + '_POS2') != null)
27796
27529
  if (this.gridOptions != null)
27797
27530
  if (this.gridApi != null)
27798
27531
  this.gridApi.forEachNode((node) => {
27799
- // console.log(node:any)
27800
27532
  if (this.getRowId(node) ===
27801
27533
  localStorage.getItem(this.grid_key + '_POS2')) {
27802
27534
  node.setSelected(true);
@@ -27828,22 +27560,17 @@ class FHGridInternalComponent {
27828
27560
  setTimeout(() => {
27829
27561
  this.autoSizeAll();
27830
27562
  }, 300);
27831
- //console.log('xxxxxxxxxxxxxxxxxxx');
27832
- // console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27833
27563
  //if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
27834
27564
  /*
27835
27565
 
27836
27566
  this.gridApi.forEachNode( (node:any) =>{
27837
27567
  // select the node
27838
- // console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27839
27568
  if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
27840
- // console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27841
27569
  node.setSelected(true);
27842
27570
 
27843
27571
  }}*/
27844
27572
  // if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
27845
27573
  //this.gridApi.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
27846
- // console.log(this.myData);
27847
27574
  }
27848
27575
  if (!ok_op) {
27849
27576
  this.errorMsg = data.msg + ' [' + data.result_msg + ']';
@@ -27899,7 +27626,6 @@ class FHGridInternalComponent {
27899
27626
  };
27900
27627
  }
27901
27628
  getRowId(item) {
27902
- // console.log(item);
27903
27629
  if (!item)
27904
27630
  return 'NA';
27905
27631
  if (item.ID != null)
@@ -27942,7 +27668,6 @@ class FHGridInternalComponent {
27942
27668
  });
27943
27669
  }
27944
27670
  okr(event) {
27945
- //console.log(event.column.colDef.field);
27946
27671
  event.data.nome_colonna = event.column.colDef.field;
27947
27672
  this.cell_edited.emit(event.data);
27948
27673
  }
@@ -27958,10 +27683,8 @@ class FHGridInternalComponent {
27958
27683
  }
27959
27684
  onResize(event) {
27960
27685
  return;
27961
- // console.log("auto height "+this.auto_height+ "("+bodyWidth+")");
27962
27686
  //if(bodyWidth>1400){
27963
27687
  // this.g_height= number(this.m_appService.getState().body_height.split('px').join(''))-40-this.off_set+'px';
27964
- //console.log('this.g_height '+this.g_height);
27965
27688
  //if(this.m_appService.getState( ).mobile)this.g_height=number(this.m_appService.getState().body_height.split('px').join(''))-40+'px';
27966
27689
  // this.num_per_pag=Math.round((700-50-this.off_set)/50);
27967
27690
  //}
@@ -27974,11 +27697,9 @@ class FHGridInternalComponent {
27974
27697
  //this.g_height=400-this.off_set+'px';
27975
27698
  // this.num_per_pag=Math.round((400-50-this.off_set)/50);
27976
27699
  //}
27977
- // console.log( this.g_height);
27978
27700
  }
27979
27701
  show_pulisci_filtri = false;
27980
27702
  autoSizeAll() {
27981
- //console.log("🚀 ~ file: fhgrid.ts ~ line 1380 ~ FHGridComponent ~ autoSizeAll ~ autoSizeAll")
27982
27703
  if (this.gridOptions == null)
27983
27704
  return;
27984
27705
  if (this.gridApi == null)
@@ -28024,13 +27745,11 @@ class FHGridInternalComponent {
28024
27745
  }
28025
27746
  });
28026
27747
  }
28027
- // console.log('ENTRO '+f+" "+t);
28028
27748
  if (t == 'number') {
28029
27749
  if (this.gridApi)
28030
27750
  this.gridApi.forEachNode((node) => {
28031
27751
  if (node.isSelected())
28032
27752
  if (node.data[f] != null) {
28033
- // console.log('selected');
28034
27753
  if (s != '')
28035
27754
  s = s + ',';
28036
27755
  s = s + node.data[f];
@@ -28178,7 +27897,6 @@ class FHGridInternalComponent {
28178
27897
  if (itemg.data == null)
28179
27898
  return this.uti_s.newGuid();
28180
27899
  let item = itemg.data;
28181
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ uiid calcolo", item);
28182
27900
  if (item.customKeyField != null)
28183
27901
  return [item.customKeyField];
28184
27902
  if (item.ID != null)
@@ -28197,7 +27915,6 @@ class FHGridInternalComponent {
28197
27915
  return item.notesid;
28198
27916
  if (item.ord != null)
28199
27917
  return item.ord;
28200
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ NOT FOUND!!", item);
28201
27918
  return this.uti_s.newGuid();
28202
27919
  }
28203
27920
  };
@@ -28341,7 +28058,6 @@ class FHGridInternalComponent {
28341
28058
  this.export_excel('pdf');
28342
28059
  }
28343
28060
  init_conf() {
28344
- // console.log(" init_conf()");
28345
28061
  //this.ckk();
28346
28062
  }
28347
28063
  createColumnDefs(em) { }
@@ -28454,7 +28170,6 @@ class FHGridInternalComponent {
28454
28170
  /*
28455
28171
  if(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']!=null)
28456
28172
  {
28457
- //console.log('setto pag: '+this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
28458
28173
  this.gridApi.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
28459
28174
  } */
28460
28175
  }
@@ -28507,44 +28222,35 @@ class FHGridInternalComponent {
28507
28222
  else {
28508
28223
  if (this.gridApi) {
28509
28224
  let saved_state = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
28510
- // console.log('BEFORE ',this.gridApi.getColumnState())
28511
28225
  this.gridApi.applyColumnState({
28512
28226
  state: saved_state,
28513
28227
  applyOrder: true,
28514
28228
  });
28515
- // console.log('ripristino cols', this.gridApi,saved_state);
28516
- // console.log('AFTER ',this.gridApi.getColumnState())
28517
28229
  }
28518
28230
  }
28519
28231
  }
28520
28232
  catch (eer) {
28521
- console.log(eer);
28522
28233
  }
28523
28234
  }
28524
28235
  /* try {
28525
28236
  this.gridApi.setSortModel(null);
28526
28237
  } catch (eer) {
28527
- console.log(eer);
28528
28238
  }
28529
28239
  if (
28530
28240
  localStorage.getItem(this.grid_key + "_SORT") != null &&
28531
28241
  (b_mantieni_ck || forza)
28532
28242
  )
28533
28243
  if (localStorage.getItem(this.grid_key + "_SORT") != "") {
28534
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
28535
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
28536
28244
  try {
28537
28245
  this.gridApi.setSortModel(
28538
28246
  JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
28539
28247
  );
28540
28248
  } catch (eer) {
28541
- console.log(eer);
28542
28249
  }
28543
28250
  }
28544
28251
  try {
28545
28252
  this.gridApi.setFilterModel(null);
28546
28253
  } catch (eer) {
28547
- console.log(eer);
28548
28254
  }*/
28549
28255
  if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
28550
28256
  (b_mantieni_ck || forza))
@@ -28554,7 +28260,6 @@ class FHGridInternalComponent {
28554
28260
  this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || ''));
28555
28261
  }
28556
28262
  catch (eer) {
28557
- console.log(eer);
28558
28263
  }
28559
28264
  }
28560
28265
  }
@@ -28582,12 +28287,10 @@ class FHGridInternalComponent {
28582
28287
  this.refresh_all_rows();
28583
28288
  }
28584
28289
  onModelUpdated() {
28585
- // console.log('onModelUpdated');
28586
28290
  // this.calculateRowCount();
28587
28291
  }
28588
28292
  gridApi;
28589
28293
  onReady(event) {
28590
- // console.log(this.header_h);
28591
28294
  this.gridApi = event.api;
28592
28295
  this.setHeaderHeight(this.header_h);
28593
28296
  if (this.num_per_pag != 0) {
@@ -28635,7 +28338,6 @@ class FHGridInternalComponent {
28635
28338
  b_iniended = false;
28636
28339
  onready_go() {
28637
28340
  this.ready = true;
28638
- //console.log('onready_go');
28639
28341
  setTimeout(() => {
28640
28342
  this.ckk();
28641
28343
  }, 10);
@@ -28728,9 +28430,7 @@ class FHGridInternalComponent {
28728
28430
  this.doFill_Temp(ss, true);
28729
28431
  }
28730
28432
  onCellClicked(event) {
28731
- // console.log(event.rowIndex + ' ' + event.colDef.field);
28732
28433
  this.cell_clicked.emit(event);
28733
- // console.log(this.myModalNormal);
28734
28434
  // this.testom.element.nativeElement.value=event.data.descrizione;
28735
28435
  // this.testom.element.nativeElement.scrollTop =0;
28736
28436
  //this.testom.element.nativeElement.focus();
@@ -28738,13 +28438,10 @@ class FHGridInternalComponent {
28738
28438
  // this.myModalNormal.element.nativeElement.show();
28739
28439
  }
28740
28440
  onCellValueChanged(event) {
28741
- // console.log('onCellValueChanged: ' + event.oldValue + ' to ' + event.newValue);
28742
28441
  }
28743
28442
  onCellDoubleClicked(event) {
28744
- // console.log('onCellDoubleClicked: ' + event.rowIndex + ' ' + event.colDef.field);
28745
28443
  }
28746
28444
  onCellFocused(event) {
28747
- //console.log('onCellFocused: (' + event.rowIndex + ',' + event.colIndex + ')');
28748
28445
  }
28749
28446
  onSelectionChanged(event) {
28750
28447
  var rowCount = this.getGridApi().getSelectedNodes().length;
@@ -28752,10 +28449,8 @@ class FHGridInternalComponent {
28752
28449
  this.num_s = rowCount;
28753
28450
  }
28754
28451
  onBeforeFilterChanged() {
28755
- // console.log('beforeFilterChanged');
28756
28452
  }
28757
28453
  oncolumnEverythingChanged(event) {
28758
- // console.log('oncolumnEverythingChanged');
28759
28454
  if (this.b_init) {
28760
28455
  if (this.gridApi)
28761
28456
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
@@ -28772,16 +28467,13 @@ class FHGridInternalComponent {
28772
28467
  }, 200);
28773
28468
  }
28774
28469
  onBeforeSortChanged() {
28775
- // console.log('onBeforeSortChanged');
28776
28470
  }
28777
28471
  onAfterSortChanged() {
28778
- // console.log('onAfterSortChanged');
28779
28472
  if (this.no_pref)
28780
28473
  return;
28781
28474
  if (this.b_init) {
28782
28475
  if (this.gridApi)
28783
28476
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
28784
- // console.log('salvo s: '+this.gridApi.getSortModel());
28785
28477
  /*
28786
28478
 
28787
28479
  localStorage.setItem(
@@ -28793,16 +28485,13 @@ class FHGridInternalComponent {
28793
28485
  onVirtualRowRemoved($event) {
28794
28486
  // because this event gets fired LOTS of times, we don't print it to the
28795
28487
  // console. if you want to see it, just uncomment out this line
28796
- // console.log('onVirtualRowRemoved: ' + event.rowIndex);
28797
28488
  }
28798
28489
  onRowClicked($event) {
28799
- //console.log('onRowClicked: ' );
28800
28490
  var selectedInGrid;
28801
28491
  if (this.gridApi)
28802
28492
  selectedInGrid = this.gridApi.getSelectedNodes();
28803
28493
  if (selectedInGrid != null)
28804
28494
  if (selectedInGrid[0] != null) {
28805
- // console.log((this.gridApi.getVerticalPixelRange()));
28806
28495
  localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
28807
28496
  if (this.gridApi)
28808
28497
  localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
@@ -28821,8 +28510,6 @@ class FHGridInternalComponent {
28821
28510
  }
28822
28511
  sRow;
28823
28512
  onRowDClicked($event) {
28824
- //console.log('onRowClicked: ' );
28825
- //console.log(event);
28826
28513
  this.dclicked.emit($event.data);
28827
28514
  var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
28828
28515
  if (iOS) {
@@ -28838,7 +28525,6 @@ class FHGridInternalComponent {
28838
28525
  // the method just prints the event name
28839
28526
  onColumnEvent($event) {
28840
28527
  this.columndclicked.emit($event);
28841
- // console.log('onColumnEvent: ' + $event);
28842
28528
  // localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
28843
28529
  }
28844
28530
  fix_flt = '';
@@ -29077,7 +28763,6 @@ class win_recupera_doc_v2 {
29077
28763
  this.dialogRef.close("ok");
29078
28764
  }
29079
28765
  }, (err) => {
29080
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
29081
28766
  });
29082
28767
  }
29083
28768
  }
@@ -29869,7 +29554,6 @@ class FHWorkflowView {
29869
29554
  this.m_router.navigate([this.app_root, a, d, 'edit']);
29870
29555
  }
29871
29556
  cmd_wkf(o) {
29872
- console.log('cmd_wkf ', o);
29873
29557
  if (o.cmd == 'annulla_richiesta')
29874
29558
  this.annulla_richiesta();
29875
29559
  if (o.cmd == 'recupera_richiesta')
@@ -29903,7 +29587,6 @@ class FHWorkflowView {
29903
29587
  break;
29904
29588
  }
29905
29589
  }
29906
- // console.log('arrAutori ',arrAutori);
29907
29590
  arrAutori = arrAutori.sort((n1, n2) => {
29908
29591
  if (n1.nc > n2.nc) {
29909
29592
  return 1;
@@ -29955,13 +29638,11 @@ class FHWorkflowView {
29955
29638
  if (o.autori != null)
29956
29639
  if (o.autori.split(',').length != 1)
29957
29640
  in_carico = true;
29958
- console.log(o.autori, in_carico);
29959
29641
  let b_assengna_a = false;
29960
29642
  if (o.assegnati_paralleli != null)
29961
29643
  if (o.assegnati_paralleli.split(',').length != 1)
29962
29644
  if (o.assegnati_paralleli.indexOf(this.app_s.user) > -1)
29963
29645
  b_assengna_a = true;
29964
- // console.log('this.m_obj.autori ',this.m_obj.autori, this.in_carico, this.b_assengna_a);
29965
29646
  let p = new QParam();
29966
29647
  p.sql = 'UPDATE_WKF_DOC_AUTHOR';
29967
29648
  p.values = [
@@ -30099,7 +29780,6 @@ class FHWorkflowView {
30099
29780
  }
30100
29781
  }
30101
29782
  if (b_found) {
30102
- console.log(livello, stato_doc);
30103
29783
  if (livello != stato_doc) {
30104
29784
  this._toastr.error(this.tsr.instant('Il documento non è in stato Bozza'));
30105
29785
  return;
@@ -30239,7 +29919,6 @@ class FHWorkflowView {
30239
29919
  p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
30240
29920
  this.m_dataService.doQuery(p).subscribe((data) => {
30241
29921
  this.get_grid().sRow.canale = data.result_data[0].canale;
30242
- console.log('setto canale: ' + this.get_grid().sRow.canale);
30243
29922
  this.riassegna_richiesta_step1();
30244
29923
  });
30245
29924
  }
@@ -30251,7 +29930,6 @@ class FHWorkflowView {
30251
29930
  this.m_dataService.doQuery(p).subscribe((data) => {
30252
29931
  // this.arrAutori=data.result_data;
30253
29932
  let arrAutori = data.result_data;
30254
- console.log('arrAutori prima ', arrAutori);
30255
29933
  let p = new QParam();
30256
29934
  p.sql = 'SELECT_WKF_VARIABILES_V2';
30257
29935
  p.types = ['string'];
@@ -30261,10 +29939,8 @@ class FHWorkflowView {
30261
29939
  if (datav.result_msg == 'OK') {
30262
29940
  arrAutori.map((v) => {
30263
29941
  if (v.step == 10 && v.value == '*ALLUSERS') {
30264
- // console.log('entro ',datav.result_data);
30265
29942
  datav.result_data.map((v1) => {
30266
29943
  if (v1.k == '*CREATOR') {
30267
- // console.log('entro1');
30268
29944
  v.username = v1.v;
30269
29945
  v.nc = v1.nc;
30270
29946
  v.ncx = v1.nc;
@@ -30285,13 +29961,11 @@ class FHWorkflowView {
30285
29961
  });
30286
29962
  }
30287
29963
  });
30288
- console.log('arrAutori dopo ', arrAutori, this.get_grid().sRow.canale);
30289
29964
  let arrAutori_temp = [];
30290
29965
  for (let i = 0; i < arrAutori.length; i++) {
30291
29966
  if (this.get_grid().sRow.canale == null ||
30292
29967
  this.get_grid().sRow.canale == '' ||
30293
29968
  this.get_grid().sRow.canale == arrAutori[i].context) {
30294
- console.log('arrAutori[i].context ', arrAutori[i].context);
30295
29969
  let b_x = false;
30296
29970
  arrAutori_temp.map((v) => {
30297
29971
  if (v.nc == arrAutori[i].nc &&
@@ -30302,7 +29976,6 @@ class FHWorkflowView {
30302
29976
  arrAutori_temp.push(arrAutori[i]);
30303
29977
  }
30304
29978
  }
30305
- console.log('arrAutori_temp ', arrAutori_temp);
30306
29979
  arrAutori = JSON.parse(JSON.stringify(arrAutori_temp));
30307
29980
  let dialogRef = this.dialog.open(win_riassegna_select_user_v2, {
30308
29981
  disableClose: true,
@@ -30364,7 +30037,6 @@ class FHWorkflowView {
30364
30037
  a_partecipanti = this.get_grid().sRow.partecipanti;
30365
30038
  let a_datanot = '';
30366
30039
  let old_grp = 'XCXXX';
30367
- console.log('this.wax ', this.wax);
30368
30040
  for (let i = 0; i < this.wax.length; i++) {
30369
30041
  let app_op = new QParam();
30370
30042
  app_op.sql = 'INSERT_TODO_GEST';
@@ -30554,7 +30226,6 @@ class FHWorkflowView {
30554
30226
  if (data.result_msg == 'OK') {
30555
30227
  }
30556
30228
  }, (err) => {
30557
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
30558
30229
  });
30559
30230
  }
30560
30231
  }
@@ -30660,7 +30331,6 @@ class FHWorkflowView {
30660
30331
  data.result_data[0].cognome +
30661
30332
  ' ' +
30662
30333
  data.result_data[0].nome;
30663
- // console.log('SETTO LOCALSTORAGE: ',this.app_s.COMPANY_KEY+'_imp_user',this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
30664
30334
  localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
30665
30335
  this.get_grid().doFill('');
30666
30336
  }
@@ -30734,7 +30404,6 @@ class FHWorkflowView {
30734
30404
  }
30735
30405
  self_ok() {
30736
30406
  if (this.get_grid() != null) {
30737
- console.log('this.get_grid() ', this.get_grid());
30738
30407
  this.get_grid().refresh_access(this);
30739
30408
  return;
30740
30409
  }
@@ -30853,7 +30522,6 @@ class FHWorkflowView {
30853
30522
  ok_conf_s(a) {
30854
30523
  this.livs = a;
30855
30524
  this.is_Ins = false;
30856
- console.log('livs ', this.livs);
30857
30525
  for (let i = 0; i < this.livs.length; i++) {
30858
30526
  if (this.livs[i].username == null)
30859
30527
  this.livs[i].username = 'ZZZ';
@@ -30892,7 +30560,6 @@ class FHWorkflowView {
30892
30560
  this.m_router.navigate([this.app_root, 'models']);
30893
30561
  }
30894
30562
  insert_doc() {
30895
- console.log('insert_doc() ', this.override_insert);
30896
30563
  if (!this.override_insert)
30897
30564
  this.m_router.navigate([this.app_root, this.id_applicativo, 'new']);
30898
30565
  else
@@ -31800,7 +31467,6 @@ class win_conferma_v2 {
31800
31467
  this.toastr = toastr;
31801
31468
  this._tsr = _tsr;
31802
31469
  this.data = data;
31803
- console.log('data ', data);
31804
31470
  if (data != null) {
31805
31471
  if (data.commento_default != null)
31806
31472
  this.nota = data.commento_default;
@@ -32046,7 +31712,6 @@ class win_info_doc_v2 {
32046
31712
  this.load_info(data);
32047
31713
  }
32048
31714
  load_info(data) {
32049
- console.log('data ', data);
32050
31715
  if (data.v == null)
32051
31716
  data.v = 1;
32052
31717
  this.codice = data.codice + '/' + data.v;
@@ -32279,7 +31944,6 @@ class win_log_v2 {
32279
31944
  this.m_appService.COMPANY_KEY +
32280
31945
  '/' +
32281
31946
  this.m_appService.API_ENDPOINT.split('/').join('_');
32282
- // console.log("🚀 ~ file: win_show_diag.ts ~ line 109 ~ win_show_diag ~ ngAfterContentInit ~ this.url_sel", this.url_sel)
32283
31947
  }
32284
31948
  logs = new Array();
32285
31949
  notifica_commenti = 1;
@@ -32338,7 +32002,6 @@ class win_log_v2 {
32338
32002
  this.title = this._tsr.instant('MODIFICA COMMENTO');
32339
32003
  }
32340
32004
  refresh_list() {
32341
- console.log('🚀 ~ file: win_log.ts ~ line 232 ~ win_log_v2 ~ refresh_list ~ refresh_list');
32342
32005
  this.load_graph();
32343
32006
  let p = new QParam();
32344
32007
  p.sql = 'SELECT_WORKFLOW_LOG';
@@ -32502,7 +32165,6 @@ class win_log_v2 {
32502
32165
  timeOut: 1000,
32503
32166
  progressBar: true,
32504
32167
  });
32505
- console.log('insert_update_comment !!!!');
32506
32168
  let px = new FSInput();
32507
32169
  px.command = 'exec_app';
32508
32170
  px.p1 = 'insert_update_comment';
@@ -32536,7 +32198,6 @@ class win_log_v2 {
32536
32198
  timeOut: 1000,
32537
32199
  progressBar: true,
32538
32200
  });
32539
- console.log('insert_update_comment !!!!');
32540
32201
  let px = new FSInput();
32541
32202
  px.command = 'exec_app';
32542
32203
  px.p1 = 'insert_update_comment';
@@ -33340,7 +33001,6 @@ class win_uploads_v2 {
33340
33001
  this.data = data;
33341
33002
  this.dialogRef = dialogRef;
33342
33003
  this.app_s = app_s;
33343
- console.log('data ', data);
33344
33004
  if (data != null) {
33345
33005
  if (data.App != null)
33346
33006
  this.App = data.App;
@@ -33530,7 +33190,6 @@ class FHWorkflowForm {
33530
33190
  this.m_dataService.doQuery(px).subscribe((data) => {
33531
33191
  if (data != null)
33532
33192
  if (data.result_msg == 'OK') {
33533
- //console.log('end SELECT_ROLES_WKF_V2',new Date());
33534
33193
  data.result_data.map((v) => {
33535
33194
  this.wkf_users_roles += v.name;
33536
33195
  });
@@ -33546,11 +33205,9 @@ class FHWorkflowForm {
33546
33205
  p.sql = 'SELECT_WKF_APP_INFO_BYUID';
33547
33206
  p.types = ['string'];
33548
33207
  p.values = [this.id_applicativo];
33549
- console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
33550
33208
  this.m_dataService.doQuery(p).subscribe((data) => {
33551
33209
  if (data != null)
33552
33210
  if (data.result_msg == 'OK') {
33553
- console.log(data.result_data.length);
33554
33211
  if (data.result_data.length > 0) {
33555
33212
  this.setta_info_app(data.result_data[0]);
33556
33213
  this.init_engine();
@@ -33667,21 +33324,16 @@ class FHWorkflowForm {
33667
33324
  }
33668
33325
  else {
33669
33326
  liv = this.m_obj.stato;
33670
- console.log('this.m_obj.canale ', this.m_obj.canale, liv);
33671
33327
  if (this.m_obj.canale != null && this.m_obj.canale != '')
33672
33328
  for (let i = 0; i < this.livs.length; i++)
33673
33329
  if (this.livs[i].step == liv) {
33674
- console.log(' liv ', this.livs[i]);
33675
33330
  if (this.user_idp.toUpperCase() == (this.livs[i].username || '').toUpperCase()) {
33676
- console.log(this.m_obj.canale + ' ' + this.livs[i].context);
33677
33331
  if (this.m_obj.canale == this.livs[i].context) {
33678
- console.log('clevel 1 ', this.livs[i]);
33679
33332
  this.clevel = this.livs[i];
33680
33333
  break;
33681
33334
  }
33682
33335
  }
33683
33336
  }
33684
- console.log('clevel 2 ', this.clevel, this.m_obj.canale, this.c_canale);
33685
33337
  if (this.clevel == null)
33686
33338
  for (let i = 0; i < this.livs.length; i++) {
33687
33339
  if (this.livs[i].username == null)
@@ -33700,9 +33352,7 @@ class FHWorkflowForm {
33700
33352
  }
33701
33353
  }
33702
33354
  }
33703
- console.log('clevel 2 ', this.clevel);
33704
33355
  this.clevel = this.check_n_levels(this.clevel);
33705
- console.log('clevel 2aa ', this.clevel);
33706
33356
  if (this.clevel == null || this.clevel == '') {
33707
33357
  this.alert('Errore di configurazione pratica contattare ufficio IT [0x002]', 1);
33708
33358
  return;
@@ -33745,7 +33395,6 @@ class FHWorkflowForm {
33745
33395
  }
33746
33396
  calcolanextandjump() {
33747
33397
  let p = new QParam();
33748
- console.log('this.respingi_enabled ', this.respingi_enabled);
33749
33398
  if (!this.b_respingi_button)
33750
33399
  p.sql = 'SELECT_TRANSAZIONI_FROM_LVL';
33751
33400
  else {
@@ -33775,7 +33424,6 @@ class FHWorkflowForm {
33775
33424
  width: '600px',
33776
33425
  });
33777
33426
  dialogRef.afterClosed().subscribe((result) => {
33778
- console.log('ris select level', result);
33779
33427
  if (result == null) {
33780
33428
  this.update_status(true, this.respingi_enabled, null, null, 2);
33781
33429
  return;
@@ -33788,7 +33436,6 @@ class FHWorkflowForm {
33788
33436
  }
33789
33437
  transizione_info = {};
33790
33438
  calcolanextandjump2(o) {
33791
- console.log('calcolanextandjump2', o);
33792
33439
  this.transizione_info = o;
33793
33440
  let cliv = 0;
33794
33441
  let liv = 0;
@@ -33840,7 +33487,6 @@ class FHWorkflowForm {
33840
33487
  arrUsersSelected = [];
33841
33488
  respingi_enabled = false;
33842
33489
  calcola_destinari(o) {
33843
- console.log('this. this.transizione_info ', o);
33844
33490
  if (this.nlevel == null) {
33845
33491
  this.alert('problema di configurazione passaggio prossimo livello ' +
33846
33492
  this.clevel.des_step +
@@ -33849,12 +33495,10 @@ class FHWorkflowForm {
33849
33495
  return;
33850
33496
  }
33851
33497
  //let arrayNexl: Array<any> = new Array();
33852
- console.log('canale before: ' + this.clevel.context);
33853
33498
  if (this.c_canale != null)
33854
33499
  if (this.c_canale != '')
33855
33500
  if (this.clevel.context == null || this.clevel.context == '')
33856
33501
  this.clevel.context = this.c_canale;
33857
- console.log('canale after: ' + this.clevel.context);
33858
33502
  let arrAutori = new Array();
33859
33503
  if (this.clevel.context == '') {
33860
33504
  for (let i = 0; i < this.livs.length; i++)
@@ -33866,7 +33510,6 @@ class FHWorkflowForm {
33866
33510
  for (let i = 0; i < this.livs.length; i++)
33867
33511
  if (this.livs[i].step == this.nlevel.step && this.livs[i].context != '')
33868
33512
  b_canale = true;
33869
- console.log('canale: ' + this.clevel.context);
33870
33513
  for (let i = 0; i < this.livs.length; i++)
33871
33514
  if (this.livs[i].step == this.nlevel.step) {
33872
33515
  if (this.clevel.context == this.livs[i].context ||
@@ -33877,7 +33520,6 @@ class FHWorkflowForm {
33877
33520
  }
33878
33521
  }
33879
33522
  }
33880
- console.log('autori calcolati: ' + arrAutori);
33881
33523
  if (arrAutori.length == 0) {
33882
33524
  this.alert('problema di configurazione il livello ' +
33883
33525
  this.nlevel.descri_livello +
@@ -33888,14 +33530,12 @@ class FHWorkflowForm {
33888
33530
  o.pre_assegna_req = 0;
33889
33531
  if (o.pre_assegna_man == null)
33890
33532
  o.pre_assegna_man = 0;
33891
- console.log(' o.pre_assegna_req ', o.pre_assegna_req);
33892
33533
  if (this.transizione_info.manual_assignment == 1 ||
33893
33534
  o.pre_assegna_man == 1) {
33894
33535
  let att_autor = [];
33895
33536
  if (this.m_obj.creatore != null)
33896
33537
  if (this.m_obj.creatore != '')
33897
33538
  arrAutori.map((v) => {
33898
- // console.log('v ',v);
33899
33539
  if (v.username == this.m_obj.creatore) {
33900
33540
  att_autor.push(v);
33901
33541
  }
@@ -33947,7 +33587,6 @@ class FHWorkflowForm {
33947
33587
  if (this.m_obj.creatore != null)
33948
33588
  if (this.m_obj.creatore != '')
33949
33589
  arrAutori.map((v) => {
33950
- // console.log('v ',v);
33951
33590
  if (v.username == this.m_obj.creatore) {
33952
33591
  att_autor.push(v);
33953
33592
  }
@@ -34096,7 +33735,6 @@ class FHWorkflowForm {
34096
33735
  break;
34097
33736
  }
34098
33737
  }
34099
- // console.log('arrAutori ',arrAutori);
34100
33738
  arrAutori = arrAutori.sort((n1, n2) => {
34101
33739
  if (n1.nc > n2.nc) {
34102
33740
  return 1;
@@ -34124,7 +33762,6 @@ class FHWorkflowForm {
34124
33762
  this.alert('Impossibile riassegnare', 1);
34125
33763
  return;
34126
33764
  }
34127
- // console.log(' result.arrsel ', result.arrsel);
34128
33765
  let arr_new_arr = '';
34129
33766
  this.m_obj.autori = '';
34130
33767
  this.m_obj.pers_int = '';
@@ -34134,7 +33771,6 @@ class FHWorkflowForm {
34134
33771
  arr_new_arr += ',';
34135
33772
  arr_new_arr += v.username;
34136
33773
  if (this.m_obj.autori.indexOf(v.username) == -1) {
34137
- console.log('VVV ', v);
34138
33774
  if (this.m_obj.autori != '')
34139
33775
  this.m_obj.autori = this.m_obj.autori + ',';
34140
33776
  this.m_obj.autori = this.m_obj.autori + v.username;
@@ -34149,13 +33785,11 @@ class FHWorkflowForm {
34149
33785
  if (this.m_obj.autori != null)
34150
33786
  if (this.m_obj.autori.split(',').length != 1)
34151
33787
  this.in_carico = true;
34152
- console.log(this.m_obj.autori, this.in_carico);
34153
33788
  this.b_assengna_a = false;
34154
33789
  if (this.m_obj.assegnati_paralleli != null)
34155
33790
  if (this.m_obj.assegnati_paralleli.split(',').length != 1)
34156
33791
  if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
34157
33792
  this.b_assengna_a = true;
34158
- // console.log('this.m_obj.autori ',this.m_obj.autori, this.in_carico, this.b_assengna_a);
34159
33793
  this.update_status(b_edit, this.respingi_enabled, this.in_carico, this.b_assengna_a, 18);
34160
33794
  let p = new QParam();
34161
33795
  p.sql = 'UPDATE_WKF_DOC_AUTHOR';
@@ -34309,12 +33943,10 @@ class FHWorkflowForm {
34309
33943
  });
34310
33944
  }
34311
33945
  exec_wkf(trans, liv, arrdest, comm, crea_ver = false, assegnati_paralleli) {
34312
- console.log('exec_wkf trans ', trans, ' liv ', liv, ' arrdest ', arrdest, ' comm ', comm, ' crea_ver ', crea_ver, ' assegnati_paralleli ', assegnati_paralleli);
34313
33946
  let dev_mode = false;
34314
33947
  if (this.app_s.dev_mode != null)
34315
33948
  if (this.app_s.dev_mode == '1')
34316
33949
  dev_mode = true;
34317
- console.log('exec_wkf ', arrdest, assegnati_paralleli);
34318
33950
  if (crea_ver == null)
34319
33951
  crea_ver = false;
34320
33952
  this.dialogRef_ww = this.m_dialog.open(FHWinWaitComponent, {
@@ -34370,7 +34002,6 @@ class FHWorkflowForm {
34370
34002
  this.m_dataService.doQuery(p).subscribe((data) => {
34371
34003
  this.reset_updw();
34372
34004
  this.m_fileservice.doQuery(fs).subscribe((data) => {
34373
- console.log(data);
34374
34005
  if (trans.step_d >= 900)
34375
34006
  this.doEnd(trans.step_d);
34376
34007
  else
@@ -34395,7 +34026,6 @@ class FHWorkflowForm {
34395
34026
  }
34396
34027
  back(edit_button) {
34397
34028
  let arrd = this.uti_s.get_diff_doc(this.old_doc, this.getfieldvalues());
34398
- console.log(arrd);
34399
34029
  let flt = [];
34400
34030
  for (let i = 0; i < arrd.length; i++) {
34401
34031
  if (arrd[i].val == '-1')
@@ -34461,10 +34091,8 @@ class FHWorkflowForm {
34461
34091
  this.goto_edit_doc(notif_av);
34462
34092
  return;
34463
34093
  }
34464
- console.log('sendEMail_ex prima ', dev_mode);
34465
34094
  if (!dev_mode)
34466
34095
  dev_mode = !this.is_send_email();
34467
- console.log('sendEMail_ex dopo ', dev_mode);
34468
34096
  let obj_r = {
34469
34097
  destinatari: to.split(','),
34470
34098
  commento: commento,
@@ -34553,7 +34181,6 @@ class FHWorkflowForm {
34553
34181
  this.salva();
34554
34182
  }
34555
34183
  open_wkf(em, inser_c = false, edit_c = true, show_wkf = true) {
34556
- console.log('inser_c = false,edit_c=true ', inser_c, edit_c);
34557
34184
  let s_h = this.app_s.getState().body_h - 40 + 'px';
34558
34185
  let dialogRef = this.m_dialog.open(win_log_v2, {
34559
34186
  disableClose: true,
@@ -34592,7 +34219,6 @@ class FHWorkflowForm {
34592
34219
  dialogRef.afterClosed().subscribe((result) => {
34593
34220
  if (result == null)
34594
34221
  if (result == 'i') {
34595
- console.log('inserito commento');
34596
34222
  em.emit();
34597
34223
  }
34598
34224
  this.r_count();
@@ -34634,13 +34260,11 @@ class FHWorkflowForm {
34634
34260
  if (result != null)
34635
34261
  if (result == 'i') {
34636
34262
  em.emit();
34637
- console.log('emetto insert');
34638
34263
  }
34639
34264
  this.r_count();
34640
34265
  });
34641
34266
  }
34642
34267
  open_upload(sovra_path = '', admin_role = '[ZZZ_DIS_CC]', tipologiaAllegati = '') {
34643
- console.log('open_upload ', sovra_path, admin_role);
34644
34268
  let dialogRef = this.m_dialog.open(win_uploads_v2, {
34645
34269
  disableClose: true,
34646
34270
  width: '90%',
@@ -34696,7 +34320,6 @@ class FHWorkflowForm {
34696
34320
  this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
34697
34321
  this.update_status(false, false, null, null, 12);
34698
34322
  let arr = this.getfieldvalues();
34699
- // console.log('arr',arr);
34700
34323
  let p = new QParam();
34701
34324
  p.sql = 'insert_aggiuntivi';
34702
34325
  p.types = ['string', 'string'];
@@ -34732,9 +34355,7 @@ class FHWorkflowForm {
34732
34355
  arr[i].values = 'dbnull';
34733
34356
  }
34734
34357
  if (arr[i].types == 'datetime') {
34735
- console.log('typeof ', typeof arr[i].values, arr[i].values);
34736
34358
  arr[i].values = this.uti_s.sql_date_time(arr[i].values);
34737
- console.log('arr[i].values ', arr[i].values);
34738
34359
  if (arr[i].values.split('0').join('') == 'NaN-NaN-NaN NaN:NaN')
34739
34360
  arr[i].values = 'dbnull';
34740
34361
  }
@@ -34753,7 +34374,6 @@ class FHWorkflowForm {
34753
34374
  }
34754
34375
  p.values.push(arr[i].values);
34755
34376
  }
34756
- // console.log('p',p);
34757
34377
  this.m_wkf.doQuery(p).subscribe((data) => {
34758
34378
  if (data != null)
34759
34379
  if (data.result_msg == 'OK') {
@@ -34804,7 +34424,6 @@ class FHWorkflowForm {
34804
34424
  this.m_dataService.doQuery(p).subscribe((data) => {
34805
34425
  if (data != null)
34806
34426
  if (data.result_msg == 'OK') {
34807
- // console.log('end load_document',new Date());
34808
34427
  let a = data.result_data;
34809
34428
  if (a.length > 0) {
34810
34429
  this.ok_load_document(a[0]);
@@ -34862,7 +34481,6 @@ class FHWorkflowForm {
34862
34481
  this.m_dataService.doQuery(p).subscribe((datav) => {
34863
34482
  if (datav != null)
34864
34483
  if (datav.result_msg == 'OK') {
34865
- console.log('SELECT_WKF_VARIABILES_V2 ', datav.result_data);
34866
34484
  datav.result_data.push({
34867
34485
  k: '*CURRENT_USER',
34868
34486
  v: this.app_s.user,
@@ -34901,7 +34519,6 @@ class FHWorkflowForm {
34901
34519
  }
34902
34520
  }
34903
34521
  }
34904
- console.log('SELECT_WKF_VARIABILES_V2 dopo add ', datav.result_data);
34905
34522
  data.result_data.map((v) => {
34906
34523
  if (v.value.indexOf('*') == 0) {
34907
34524
  v.context = this.m_obj.canale;
@@ -34910,7 +34527,6 @@ class FHWorkflowForm {
34910
34527
  datav.result_data.map((v1) => {
34911
34528
  if (v.value ==
34912
34529
  v1.k) {
34913
- console.log('sostituisco k: ', v1.k, v1.v);
34914
34530
  v.username = v1.v;
34915
34531
  v.nc = v1.nc;
34916
34532
  v.ncx = v1.nc;
@@ -34919,7 +34535,6 @@ class FHWorkflowForm {
34919
34535
  });
34920
34536
  }
34921
34537
  });
34922
- console.log('Var speciali ', datav.result_data);
34923
34538
  let x_app = [];
34924
34539
  data.result_data.map((v) => {
34925
34540
  if (v.value.indexOf('*') != 0 || v.sost || false)
@@ -34928,7 +34543,6 @@ class FHWorkflowForm {
34928
34543
  console.log('escludo! ', v);
34929
34544
  });
34930
34545
  data.result_data = JSON.parse(JSON.stringify(x_app));
34931
- console.log('liv dopo SELECT_WKF_VARIABILES_V2 ', data.result_data);
34932
34546
  let ret = this.wkf_filter_users(data.result_data);
34933
34547
  data.result_data = ret.users;
34934
34548
  if (data.result_data.length == 0) {
@@ -34936,13 +34550,11 @@ class FHWorkflowForm {
34936
34550
  return;
34937
34551
  }
34938
34552
  this.sub_context.forEach((v) => {
34939
- console.log('prima --- override_channel', data.result_data);
34940
34553
  for (let i = 0; i < data.result_data.length; i++) {
34941
34554
  if (data.result_data[i].context)
34942
34555
  if (data.result_data[i].context == v.origin && v.step == data.result_data[i].step)
34943
34556
  data.result_data[i].context = v.destination;
34944
34557
  }
34945
- console.log('dopo --- override_channel', data.result_data);
34946
34558
  });
34947
34559
  this.ok_livelli_doc(data.result_data);
34948
34560
  }
@@ -34954,7 +34566,6 @@ class FHWorkflowForm {
34954
34566
  return { users: users, msg: 'Impossibile procedere utenti non configurati' };
34955
34567
  }
34956
34568
  ok_livelli_doc(r) {
34957
- console.log();
34958
34569
  this.livs = r;
34959
34570
  this.over_canale_iniz();
34960
34571
  if (this.m_obj.stato <= 10)
@@ -35029,20 +34640,17 @@ class FHWorkflowForm {
35029
34640
  this.c_canale = this.forza_canale;
35030
34641
  }
35031
34642
  ck_canale_multiplo() {
35032
- console.log('ck_canale_multiplo ', this.livs);
35033
34643
  let min_liv = 0;
35034
34644
  for (let i = 0; i < this.livs.length; i++)
35035
34645
  if (this.livs[i].step < min_liv || min_liv == 0) {
35036
34646
  this.clevel = this.livs[i];
35037
34647
  min_liv = this.livs[i].step;
35038
34648
  }
35039
- console.log('min_liv ', min_liv);
35040
34649
  let sv = [];
35041
34650
  for (let i = 0; i < this.livs.length; i++)
35042
34651
  if (this.livs[i].step == min_liv &&
35043
34652
  this.app_s.getState().wkf_doc_info.curr_user.toUpperCase() ==
35044
34653
  (this.livs[i].username || '').toUpperCase()) {
35045
- console.log(' this.livs[i].step ', this.livs[i].step, (this.livs[i].username || '').toUpperCase(), this.livs[i].context);
35046
34654
  let b_found = false;
35047
34655
  for (let y = 0; y < sv.length; y++)
35048
34656
  if (sv[y] == this.livs[i].context) {
@@ -35055,7 +34663,6 @@ class FHWorkflowForm {
35055
34663
  else
35056
34664
  sv.push('');
35057
34665
  }
35058
- console.log('sv ', sv);
35059
34666
  if (sv.length <= 1) {
35060
34667
  this.c_canale = sv[0];
35061
34668
  this.create_new_document();
@@ -35094,7 +34701,6 @@ class FHWorkflowForm {
35094
34701
  public open_allegati(){
35095
34702
 
35096
34703
  let dialogRef = this.m_dialog.open(win_allegati);
35097
- console.log("ERRX: ");
35098
34704
 
35099
34705
  dialogRef.afterClosed().subscribe(result => {
35100
34706
  // this.selectedOption = result;
@@ -35123,7 +34729,6 @@ class FHWorkflowForm {
35123
34729
  }
35124
34730
  this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
35125
34731
  this.m_obj.s_uto = this.s_uto;
35126
- console.log('this.m_obj ', this.m_obj);
35127
34732
  let dialogRef = this.m_dialog.open(win_info_doc_v2, {
35128
34733
  disableClose: true,
35129
34734
  data: this.m_obj,
@@ -35458,8 +35063,6 @@ class FHWorkflowForm {
35458
35063
  }
35459
35064
  for (let i = 0; i < this.livs.length; i++)
35460
35065
  if (min_liv == this.livs[i].step) {
35461
- //console.log('this.user_idp.toUpperCase() ',this.user_idp.toUpperCase());
35462
- //console.log('(this.livs[i].username||'').toUpperCase() ',(this.livs[i].username||'').toUpperCase() );
35463
35066
  if (this.livs[i].username == null)
35464
35067
  this.livs[i].username = 'ZZZ';
35465
35068
  if (this.user_idp.toUpperCase() == (this.livs[i].username || '').toUpperCase() ||
@@ -35492,7 +35095,6 @@ class FHWorkflowForm {
35492
35095
  this.b_respingi_button = false;
35493
35096
  if ((this.app_info.proceed_mode || 'P') == 'R')
35494
35097
  this.b_respingi_button = true;
35495
- console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2301 ~ FHWorkflowForm ~ return_edit 1111 ~ b_respingi_button", this.b_respingi_button);
35496
35098
  let px = new QParam();
35497
35099
  px.sql = 'SELECT_TRANSAZIONI_FROM_LVL_DOWN';
35498
35100
  px.values = [this.id_applicativo, (this.m_obj.stato || -1)];
@@ -35505,7 +35107,6 @@ class FHWorkflowForm {
35505
35107
  if (this.m_obj.autori == null)
35506
35108
  this.m_obj.autori = '';
35507
35109
  if ((',' + this.m_obj.autori.toLowerCase() + ',').indexOf(',' + this.user_idp.toLowerCase() + ',') != -1) {
35508
- // console.log('this.m_obj.autori ', this.m_obj.autori);
35509
35110
  if (this.m_obj.autori != null)
35510
35111
  if (this.m_obj.autori.split(',').length != 1)
35511
35112
  this.in_carico = true;
@@ -35569,12 +35170,9 @@ class FHWorkflowForm {
35569
35170
  this.tsr.instant(this.m_obj.stat_stato));
35570
35171
  this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
35571
35172
  });
35572
- // console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2301 ~ FHWorkflowForm ~ return_edit 222 ~ b_respingi_button", this.b_respingi_button)
35573
- //console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2301 ~ FHWorkflowForm ~ return_edit 333 ~ b_respingi_button", this.respingi_enabled)
35574
35173
  //+' ('+s_uto+')');
35575
35174
  }
35576
35175
  reset_form_v(t) {
35577
- console.log('reset_form_v ', this.loaded);
35578
35176
  if (!this.loaded) {
35579
35177
  setTimeout(() => {
35580
35178
  this.reset_form_v(t);
@@ -35616,12 +35214,6 @@ class FHWorkflowForm {
35616
35214
  init_engine() {
35617
35215
  if (this.app_s.user != null)
35618
35216
  this.user_idp = this.app_s.user;
35619
- // console.log(
35620
- // "this.user_idp == null || this.m_route.params==null ",
35621
- // this.user_idp,
35622
- // this.m_route.params,
35623
- // new Date()
35624
- // );
35625
35217
  if (this.user_idp == null || this.m_route.params == null) {
35626
35218
  setTimeout(() => {
35627
35219
  this.init_engine();
@@ -35636,7 +35228,6 @@ class FHWorkflowForm {
35636
35228
  this.custom_action = params['custom_action'];
35637
35229
  this.custom_action_param = params['param'];
35638
35230
  this.b_edit = id != 'new' && !this.custom_action ? true : false;
35639
- console.log('🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2413 ~ FHWorkflowForm ~ this.m_route.params.subscribe ~ this.b_edit', this.b_edit, id, params);
35640
35231
  this.init_app_wkf();
35641
35232
  if (!this.b_edit)
35642
35233
  if (this.id_applicativo.indexOf('_') > -1) {
@@ -35651,7 +35242,6 @@ class FHWorkflowForm {
35651
35242
  });
35652
35243
  }
35653
35244
  init_app_wkf() {
35654
- // console.log("init_app_wkf ", this.b_edit);
35655
35245
  if (!this.b_edit)
35656
35246
  this.insert_doc();
35657
35247
  else
@@ -35762,7 +35352,6 @@ class FHWorkflowHeaderBar {
35762
35352
  else
35763
35353
  this.custom_commands_sec.push(v);
35764
35354
  });
35765
- console.log('🚀 ~ FHWorkflowHeaderBar ~ custom_commands_pri ~ custom_commands_sec:', this.custom_commands_pri, this.custom_commands_sec);
35766
35355
  }
35767
35356
  button_clicked = new EventEmitter();
35768
35357
  revisione() {
@@ -35816,7 +35405,6 @@ class FHWorkflowHeaderBar {
35816
35405
  this.dt_agg.open_upload(this.sovra_path, this.admin_role, this.tipologiaAllegati);
35817
35406
  }
35818
35407
  open_wkf() {
35819
- console.log('this.edit_comments_in_logs ', this.edit_comments_in_logs);
35820
35408
  this.button_clicked.emit('open_wkf');
35821
35409
  if (this.dt_agg != null)
35822
35410
  this.dt_agg.open_wkf(this.comment_inserted, false, this.edit_comments_in_logs, this.showWkfGraph);
@@ -36065,13 +35653,13 @@ class FHWorkflowHeaderBar {
36065
35653
  </div>
36066
35654
  </div>
36067
35655
  </div>
36068
- `, 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"] }] });
36069
35657
  }
36070
35658
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWorkflowHeaderBar, decorators: [{
36071
35659
  type: Component,
36072
35660
  args: [{
36073
35661
  selector: 'FHWorkflowHeaderBar',
36074
- imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule],
35662
+ imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule, FlexLayoutModule],
36075
35663
  template: `
36076
35664
  <div
36077
35665
  fxLayout="row"
@@ -36361,11 +35949,8 @@ class AuthHttpRequestInterceptor {
36361
35949
  }
36362
35950
  intercept(request, next) {
36363
35951
  const token = this.getJwtToken();
36364
- // console.log('[AuthInterceptor] Intercepting request:', request.url);
36365
- // console.log('[AuthInterceptor] Token available:', token !== 'ZZ' && token !== null);
36366
35952
  if (token && token !== 'ZZ') {
36367
35953
  request = this.addToken(request, token);
36368
- // console.log('[AuthInterceptor] Token added to request');
36369
35954
  }
36370
35955
  else {
36371
35956
  // console.warn('[AuthInterceptor] No valid token found in localStorage');
@@ -36405,12 +35990,10 @@ class AuthHttpRequestInterceptor {
36405
35990
  return next.handle(request);
36406
35991
  }
36407
35992
  if (!this.isRefreshing) {
36408
- // console.log('[AuthInterceptor] Starting token refresh...');
36409
35993
  this.isRefreshing = true;
36410
35994
  this.refreshTokenSubject.next(null);
36411
35995
  return this.refreshToken(token, refreshToken).pipe(switchMap((token) => {
36412
35996
  this.isRefreshing = false;
36413
- // console.log('[AuthInterceptor] Token refreshed successfully');
36414
35997
  this.refreshTokenSubject.next(localStorage.getItem(this.appService.COMPANY_KEY + 'token'));
36415
35998
  return next.handle(this.addToken(request, localStorage.getItem(this.appService.COMPANY_KEY + 'token') ||
36416
35999
  'ZZ'));
@@ -36422,9 +36005,7 @@ class AuthHttpRequestInterceptor {
36422
36005
  }));
36423
36006
  }
36424
36007
  else {
36425
- // console.log('[AuthInterceptor] Waiting for ongoing token refresh...');
36426
36008
  return this.refreshTokenSubject.pipe(filter((token) => token != null), take(1), switchMap((jwt) => {
36427
- // console.log('[AuthInterceptor] Using refreshed token from queue');
36428
36009
  return next.handle(this.addToken(request, localStorage.getItem(this.appService.COMPANY_KEY + 'token') ||
36429
36010
  'ZZ'));
36430
36011
  }));
@@ -36435,7 +36016,6 @@ class AuthHttpRequestInterceptor {
36435
36016
  accessToken: token,
36436
36017
  refreshToken: refreshToken,
36437
36018
  });
36438
- // console.log('[AuthInterceptor] Calling refresh endpoint:', this.appService.API_ENDPOINT + 'token/refresh');
36439
36019
  return this.http
36440
36020
  .post(this.appService.API_ENDPOINT + 'token/refresh', credentials, {
36441
36021
  headers: new HttpHeaders({
@@ -36448,13 +36028,11 @@ class AuthHttpRequestInterceptor {
36448
36028
  this.loginservice.logout();
36449
36029
  return;
36450
36030
  }
36451
- // console.log('[AuthInterceptor] New tokens saved to localStorage');
36452
36031
  localStorage.setItem(this.appService.COMPANY_KEY + 'token', res.accessToken);
36453
36032
  localStorage.setItem(this.appService.COMPANY_KEY + 'refreshToken', res.refreshToken);
36454
36033
  }));
36455
36034
  }
36456
36035
  addToken(request, token) {
36457
- // console.log("🚀 ~ AuthHttpRequestInterceptor ~ addToken ~ addToken:", request,token)
36458
36036
  return request.clone({
36459
36037
  setHeaders: {
36460
36038
  Authorization: `Bearer ${token}`,
@@ -36579,7 +36157,6 @@ class QueryOpenService {
36579
36157
  */
36580
36158
  doQuery(queryp, displayError = true, url_sec = null) {
36581
36159
  this.app_s.start();
36582
- //console.log('queryp before ',queryp);
36583
36160
  this.headers = new HttpHeaders({
36584
36161
  "Content-Type": "application/json"
36585
36162
  });
@@ -36587,7 +36164,6 @@ class QueryOpenService {
36587
36164
  this.url = this.app_s.API_ENDPOINT + this.app_s.OPEN_QUERY_ENDPOINT;
36588
36165
  else
36589
36166
  this.url = url_sec;
36590
- // console.log('QueryService url: '+ this.url);
36591
36167
  if (queryp.types != null && queryp.sql.indexOf("_MULTI") == -1)
36592
36168
  for (let i = 0; i < queryp.types.length; i++) {
36593
36169
  if (queryp.values[i] == null)
@@ -36634,13 +36210,11 @@ class QueryOpenService {
36634
36210
  }
36635
36211
  }
36636
36212
  }
36637
- //console.log('queryp after ',queryp);
36638
36213
  let post_v = JSON.stringify(queryp);
36639
36214
  // Check if running on localhost:4200
36640
36215
  const isLocalhost = window.location.hostname === 'localhost' && window.location.port === '4200';
36641
36216
  // se rilevo che sono sono localhost:4200 scrivo su console
36642
36217
  if (isLocalhost) {
36643
- console.log("QueryService: " + post_v);
36644
36218
  }
36645
36219
  return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
36646
36220
  this.app_s.complete();