@fluxhub/fluxhub-lib 1.0.423 → 1.0.425

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.
Files changed (33) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +11 -54
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/controls/fhcurrencyfield.js +1 -2
  6. package/esm2015/lib/controls/fhdatepicker.js +1 -8
  7. package/esm2015/lib/controls/fhgrid.js +1 -6
  8. package/esm2015/lib/controls/fhgrid_json.js +1 -2
  9. package/esm2015/lib/controls/fhlist.js +1 -4
  10. package/esm2015/lib/controls/grid_editors/dt_pick.js +1 -5
  11. package/esm2015/lib/services/login.service.js +1 -2
  12. package/esm2015/lib/services/office_automator.service.js +1 -4
  13. package/esm2015/lib/services/utility.service.js +12 -26
  14. package/esm2015/lib/wkf_engine/win_uploads.js +1 -4
  15. package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +1 -7
  16. package/esm5/lib/controls/fhcurrencyfield.js +1 -2
  17. package/esm5/lib/controls/fhdatepicker.js +1 -8
  18. package/esm5/lib/controls/fhgrid.js +1 -6
  19. package/esm5/lib/controls/fhgrid_json.js +1 -2
  20. package/esm5/lib/controls/fhlist.js +1 -4
  21. package/esm5/lib/controls/grid_editors/dt_pick.js +1 -5
  22. package/esm5/lib/services/login.service.js +1 -2
  23. package/esm5/lib/services/office_automator.service.js +1 -4
  24. package/esm5/lib/services/utility.service.js +12 -26
  25. package/esm5/lib/wkf_engine/win_uploads.js +1 -4
  26. package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +1 -7
  27. package/fesm2015/fluxhub-fluxhub-lib.js +11 -54
  28. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  29. package/fesm5/fluxhub-fluxhub-lib.js +11 -54
  30. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  31. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  32. package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +0 -1
  33. package/package.json +1 -1
@@ -495,7 +495,6 @@ class UtilityService {
495
495
  * @return {?}
496
496
  */
497
497
  check_value_combo(obj_value, combo_value) {
498
- console.log('check_value_combo(obj_value,combo_value) ', obj_value, ' ', combo_value);
499
498
  if (combo_value != null)
500
499
  if (combo_value != '-1')
501
500
  return combo_value;
@@ -723,30 +722,17 @@ class UtilityService {
723
722
  // getMonth() is zero-based
724
723
  /** @type {?} */
725
724
  var dd = dt.getDate();
726
- if (this.app_s.SQL_SERVER_LANG == 'it')
727
- return [
728
- (dd > 9
729
- ? ''
730
- : '0') + dd,
731
- '-',
732
- (mm > 9
733
- ? ''
734
- : '0') + mm,
735
- '-',
736
- dt.getFullYear()
737
- ].join('');
738
- if (this.app_s.SQL_SERVER_LANG == 'uk')
739
- return [
740
- dt.getFullYear(),
741
- '-',
742
- (mm > 9
743
- ? ''
744
- : '0') + mm,
745
- '-',
746
- (dd > 9
747
- ? ''
748
- : '0') + dd
749
- ].join('');
725
+ return 'CONVERT(DATETIME,\'' + [
726
+ dt.getFullYear(),
727
+ '-',
728
+ (mm > 9
729
+ ? ''
730
+ : '0') + mm,
731
+ '-',
732
+ (dd > 9
733
+ ? ''
734
+ : '0') + dd
735
+ ].join('') + '\',127)';
750
736
  return "Parametro SQL_SERVER_LANG non corretto";
751
737
  }
752
738
  /**
@@ -2430,11 +2416,9 @@ class FHListComponent {
2430
2416
  return;
2431
2417
  /** @type {?} */
2432
2418
  let arr_val = desc_val.split(',');
2433
- console.log("arr_val ", arr_val);
2434
2419
  for (let j = 0; j < this.myData.length; j++)
2435
2420
  for (let j1 = 0; j1 < arr_val.length; j1++) {
2436
2421
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
2437
- console.log('this.myData[j].checked ', this.myData[j].checked);
2438
2422
  this.myData[j].checked = true;
2439
2423
  }
2440
2424
  }
@@ -2479,7 +2463,6 @@ class FHListComponent {
2479
2463
  let arr_val = desc_val.split(',');
2480
2464
  for (let j = 0; j < this.myData.length; j++)
2481
2465
  for (let j1 = 0; j1 < arr_val.length; j1++) {
2482
- console.log(this.myData[j].valore + ' ' + arr_val[j1]);
2483
2466
  if (this.myData[j].valore == arr_val[j1]) {
2484
2467
  this.myData[j].checked = true;
2485
2468
  //console.log("selval: "+this.selval);
@@ -3145,7 +3128,6 @@ class AuthenticationService {
3145
3128
  * @return {?}
3146
3129
  */
3147
3130
  login(username, password, displayError = true) {
3148
- console.log(' this.app_s ', this.app_s);
3149
3131
  this.url = this.app_s.API_ENDPOINT + this.app_s.LOGIN_ENDPOINT;
3150
3132
  /** @type {?} */
3151
3133
  let post_v = JSON.stringify({ username: username, password: password });
@@ -6196,7 +6178,6 @@ class OfficeAutomatorService {
6196
6178
  if (left.ord > right.ord)
6197
6179
  return 1;
6198
6180
  }));
6199
- console.log('commands ', commands);
6200
6181
  p.values = [uiid, JSON.stringify(commands)];
6201
6182
  return this.dataService.doQuery(p).pipe(flatMap((/**
6202
6183
  * @param {?} data
@@ -6260,7 +6241,6 @@ class OfficeAutomatorService {
6260
6241
  /** @type {?} */
6261
6242
  const chunkInfo = data.result_data;
6262
6243
  if (chunkInfo.length == 1) {
6263
- console.log('COMPLETE!');
6264
6244
  subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
6265
6245
  subscriber.complete();
6266
6246
  }
@@ -6274,7 +6254,6 @@ class OfficeAutomatorService {
6274
6254
  }), 3000); // 3 sec default check interval
6275
6255
  }
6276
6256
  else {
6277
- console.log('Timeout');
6278
6257
  subscriber.error('Timeout');
6279
6258
  self.toastr.error('Timeout');
6280
6259
  }
@@ -6427,7 +6406,6 @@ class FHGridComponent {
6427
6406
  }
6428
6407
  p.system_dest = this.system_dest;
6429
6408
  p.field = this.fields;
6430
- console.log('filterModel ', params.filterModel);
6431
6409
  if (this.filters != null)
6432
6410
  p.filter = this.filters;
6433
6411
  if (this.fix_flt != "") {
@@ -6461,12 +6439,9 @@ class FHGridComponent {
6461
6439
  p.filter += " and ";
6462
6440
  p.filter += " (";
6463
6441
  p.filter += this.calcola_filtro(params.filterModel[key].condition1, '', key, false);
6464
- console.log('After chiamata1: ', p.filter);
6465
6442
  p.filter += ' ' + obj_filtro_test.operator + ' ';
6466
6443
  p.filter += this.calcola_filtro(params.filterModel[key].condition2, '', key, false);
6467
- console.log('After chiamata2: ', p.filter);
6468
6444
  p.filter += ")";
6469
- console.log('After chiamata2: ', p.filter);
6470
6445
  }
6471
6446
  // }
6472
6447
  }
@@ -6913,7 +6888,6 @@ class FHGridComponent {
6913
6888
  * @return {?}
6914
6889
  */
6915
6890
  calcola_filtro(obj_filtro, filter_v, key, add_end = true) {
6916
- console.log('calcola_filtro ', obj_filtro, filter_v, key);
6917
6891
  /** @type {?} */
6918
6892
  let b_filter = false;
6919
6893
  if (obj_filtro.type != null) {
@@ -8753,8 +8727,6 @@ class FHDatePickerComponent extends FHValueAccessor {
8753
8727
  * @return {?}
8754
8728
  */
8755
8729
  checkInput(ob) {
8756
- console.log('ob ', ob);
8757
- console.log('date_sel ', this.date_sel);
8758
8730
  /* if(ob.key=='-')
8759
8731
  {
8760
8732
  ob.preventDefault();
@@ -8777,13 +8749,10 @@ class FHDatePickerComponent extends FHValueAccessor {
8777
8749
  * @return {?}
8778
8750
  */
8779
8751
  dt_chg(event) {
8780
- console.log('event ', event);
8781
8752
  /** @type {?} */
8782
8753
  let s = event.target.value;
8783
- console.log('s -> ', s);
8784
8754
  /** @type {?} */
8785
8755
  let arr = s.split('-').join('/').split('/');
8786
- console.log('arr ', arr);
8787
8756
  if (arr.length == 3) {
8788
8757
  if (arr[1].length == 1)
8789
8758
  arr[1] = "0" + arr[1];
@@ -8797,7 +8766,6 @@ class FHDatePickerComponent extends FHValueAccessor {
8797
8766
  if (yy < 100)
8798
8767
  yy += 2000;
8799
8768
  this.date_sel = dtp.createDate(yy, parseInt(arr[1]) - 1, parseInt(arr[0]));
8800
- console.log('dare s', this.date_sel);
8801
8769
  }
8802
8770
  else
8803
8771
  console.log('data non valida! ', arr);
@@ -8910,7 +8878,6 @@ class FHDatePickerComponent extends FHValueAccessor {
8910
8878
  * @return {?}
8911
8879
  */
8912
8880
  setValue(d) {
8913
- console.log('d ', d);
8914
8881
  this.dateAdapter.setLocale('it-IT');
8915
8882
  if (d == null) {
8916
8883
  this.date_sel = null;
@@ -9730,20 +9697,16 @@ class DtPick {
9730
9697
  * @return {?}
9731
9698
  */
9732
9699
  setFocus() {
9733
- console.log('set focus');
9734
9700
  this.dtc.setFocusToInputBox();
9735
9701
  }
9736
9702
  /**
9737
9703
  * @return {?}
9738
9704
  */
9739
9705
  dt_ch() {
9740
- console.log('dt_ch!!');
9741
- console.log(this.dtc);
9742
9706
  setTimeout((/**
9743
9707
  * @return {?}
9744
9708
  */
9745
9709
  () => {
9746
- console.log(this.date_sel);
9747
9710
  this.change.emit();
9748
9711
  }), 50);
9749
9712
  }
@@ -10546,7 +10509,6 @@ class FHCurrencyFieldComponent {
10546
10509
  * @return {?}
10547
10510
  */
10548
10511
  kd(event) {
10549
- console.log('event.code ', event.code);
10550
10512
  if (event.code == "Enter") {
10551
10513
  this.enter_pressed.emit();
10552
10514
  }
@@ -12167,8 +12129,6 @@ class win_uploads {
12167
12129
  * @return {?}
12168
12130
  */
12169
12131
  ch(fileItem) {
12170
- console.log('this.arr_g ', this.arr_g);
12171
- console.log('fileItem ', fileItem);
12172
12132
  for (let i = 0; i < this.arr_g.length; i++) {
12173
12133
  if (this.arr_g[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
12174
12134
  this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
@@ -12246,7 +12206,6 @@ class win_uploads {
12246
12206
  * @return {?}
12247
12207
  */
12248
12208
  (fileItem) => {
12249
- console.log('onAfterAddingFile');
12250
12209
  this.ch(fileItem);
12251
12210
  });
12252
12211
  this.init(this.App, this.K);
@@ -13981,7 +13940,6 @@ class FHGridJSONComponent {
13981
13940
  result = new Array('autoSizeAll', 'expandAll', 'contractAll', 'copy', 'copyWithHeaders', 'paste',
13982
13941
  // 'resetColumns',
13983
13942
  'toolPanel');
13984
- console.log(result);
13985
13943
  return result;
13986
13944
  }
13987
13945
  /**
@@ -16462,7 +16420,6 @@ class dati_aggiuntivi {
16462
16420
  this.btnApprova_label = 'APPROVA';
16463
16421
  this.btnAssegna_label = "Assegna";
16464
16422
  this.btnRespingi_label = 'RESPINGI';
16465
- this.enabled_form();
16466
16423
  this.app_s.getState().topnavTitle = this.app_info.descrizione_breve + ' - Nuova Richiesta';
16467
16424
  this.reset_form(this.app_info.descrizione_breve + ' - Nuova Richiesta');
16468
16425
  this.reset_counters_int(0, 0);