@fluxhub/fluxhub-lib 1.0.424 → 1.0.426

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 (30) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +23 -62
  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 +9 -14
  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 +14 -27
  14. package/esm2015/lib/wkf_engine/win_uploads.js +1 -4
  15. package/esm5/lib/controls/fhcurrencyfield.js +1 -2
  16. package/esm5/lib/controls/fhdatepicker.js +1 -8
  17. package/esm5/lib/controls/fhgrid.js +9 -14
  18. package/esm5/lib/controls/fhgrid_json.js +1 -2
  19. package/esm5/lib/controls/fhlist.js +1 -4
  20. package/esm5/lib/controls/grid_editors/dt_pick.js +1 -5
  21. package/esm5/lib/services/login.service.js +1 -2
  22. package/esm5/lib/services/office_automator.service.js +1 -4
  23. package/esm5/lib/services/utility.service.js +16 -27
  24. package/esm5/lib/wkf_engine/win_uploads.js +1 -4
  25. package/fesm2015/fluxhub-fluxhub-lib.js +21 -62
  26. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  27. package/fesm5/fluxhub-fluxhub-lib.js +23 -62
  28. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  29. package/lib/services/utility.service.d.ts +1 -1
  30. package/package.json +1 -1
@@ -568,7 +568,6 @@
568
568
  * @return {?}
569
569
  */
570
570
  function (obj_value, combo_value) {
571
- console.log('check_value_combo(obj_value,combo_value) ', obj_value, ' ', combo_value);
572
571
  if (combo_value != null)
573
572
  if (combo_value != '-1')
574
573
  return combo_value;
@@ -836,13 +835,16 @@
836
835
  };
837
836
  /**
838
837
  * @param {?} dt
838
+ * @param {?=} adds
839
839
  * @return {?}
840
840
  */
841
841
  UtilityService.prototype.sql_date = /**
842
842
  * @param {?} dt
843
+ * @param {?=} adds
843
844
  * @return {?}
844
845
  */
845
- function (dt) {
846
+ function (dt, adds) {
847
+ if (adds === void 0) { adds = ''; }
846
848
  if (dt == null)
847
849
  return 'dbnull';
848
850
  if (typeof dt == "undefined")
@@ -856,30 +858,17 @@
856
858
  // getMonth() is zero-based
857
859
  /** @type {?} */
858
860
  var dd = dt.getDate();
859
- if (this.app_s.SQL_SERVER_LANG == 'it')
860
- return [
861
- (dd > 9
862
- ? ''
863
- : '0') + dd,
864
- '-',
865
- (mm > 9
866
- ? ''
867
- : '0') + mm,
868
- '-',
869
- dt.getFullYear()
870
- ].join('');
871
- if (this.app_s.SQL_SERVER_LANG == 'uk')
872
- return [
873
- dt.getFullYear(),
874
- '-',
875
- (mm > 9
876
- ? ''
877
- : '0') + mm,
878
- '-',
879
- (dd > 9
880
- ? ''
881
- : '0') + dd
882
- ].join('');
861
+ return 'CONVERT(DATETIME,\'' + [
862
+ dt.getFullYear(),
863
+ '-',
864
+ (mm > 9
865
+ ? ''
866
+ : '0') + mm,
867
+ '-',
868
+ (dd > 9
869
+ ? ''
870
+ : '0') + dd
871
+ ].join('') + adds + '\',127)';
883
872
  return "Parametro SQL_SERVER_LANG non corretto";
884
873
  };
885
874
  /**
@@ -2797,11 +2786,9 @@
2797
2786
  return;
2798
2787
  /** @type {?} */
2799
2788
  var arr_val = desc_val.split(',');
2800
- console.log("arr_val ", arr_val);
2801
2789
  for (var j = 0; j < this.myData.length; j++)
2802
2790
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2803
2791
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
2804
- console.log('this.myData[j].checked ', this.myData[j].checked);
2805
2792
  this.myData[j].checked = true;
2806
2793
  }
2807
2794
  }
@@ -2854,7 +2841,6 @@
2854
2841
  var arr_val = desc_val.split(',');
2855
2842
  for (var j = 0; j < this.myData.length; j++)
2856
2843
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2857
- console.log(this.myData[j].valore + ' ' + arr_val[j1]);
2858
2844
  if (this.myData[j].valore == arr_val[j1]) {
2859
2845
  this.myData[j].checked = true;
2860
2846
  //console.log("selval: "+this.selval);
@@ -3504,7 +3490,6 @@
3504
3490
  function (username, password, displayError) {
3505
3491
  var _this = this;
3506
3492
  if (displayError === void 0) { displayError = true; }
3507
- console.log(' this.app_s ', this.app_s);
3508
3493
  this.url = this.app_s.API_ENDPOINT + this.app_s.LOGIN_ENDPOINT;
3509
3494
  /** @type {?} */
3510
3495
  var post_v = JSON.stringify({ username: username, password: password });
@@ -6468,7 +6453,6 @@
6468
6453
  if (left.ord > right.ord)
6469
6454
  return 1;
6470
6455
  }));
6471
- console.log('commands ', commands);
6472
6456
  p.values = [uiid, JSON.stringify(commands)];
6473
6457
  return this.dataService.doQuery(p).pipe(operators.flatMap((/**
6474
6458
  * @param {?} data
@@ -6532,7 +6516,6 @@
6532
6516
  /** @type {?} */
6533
6517
  var chunkInfo = data.result_data;
6534
6518
  if (chunkInfo.length == 1) {
6535
- console.log('COMPLETE!');
6536
6519
  subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
6537
6520
  subscriber.complete();
6538
6521
  }
@@ -6546,7 +6529,6 @@
6546
6529
  }), 3000); // 3 sec default check interval
6547
6530
  }
6548
6531
  else {
6549
- console.log('Timeout');
6550
6532
  subscriber.error('Timeout');
6551
6533
  self.toastr.error('Timeout');
6552
6534
  }
@@ -6690,7 +6672,6 @@
6690
6672
  }
6691
6673
  p.system_dest = _this.system_dest;
6692
6674
  p.field = _this.fields;
6693
- console.log('filterModel ', params.filterModel);
6694
6675
  if (_this.filters != null)
6695
6676
  p.filter = _this.filters;
6696
6677
  if (_this.fix_flt != "") {
@@ -6724,12 +6705,9 @@
6724
6705
  p.filter += " and ";
6725
6706
  p.filter += " (";
6726
6707
  p.filter += _this.calcola_filtro(params.filterModel[key].condition1, '', key, false);
6727
- console.log('After chiamata1: ', p.filter);
6728
6708
  p.filter += ' ' + obj_filtro_test.operator + ' ';
6729
6709
  p.filter += _this.calcola_filtro(params.filterModel[key].condition2, '', key, false);
6730
- console.log('After chiamata2: ', p.filter);
6731
6710
  p.filter += ")";
6732
- console.log('After chiamata2: ', p.filter);
6733
6711
  }
6734
6712
  // }
6735
6713
  }
@@ -7211,7 +7189,6 @@
7211
7189
  */
7212
7190
  function (obj_filtro, filter_v, key, add_end) {
7213
7191
  if (add_end === void 0) { add_end = true; }
7214
- console.log('calcola_filtro ', obj_filtro, filter_v, key);
7215
7192
  /** @type {?} */
7216
7193
  var b_filter = false;
7217
7194
  if (obj_filtro.type != null) {
@@ -7258,25 +7235,25 @@
7258
7235
  filter_v = filter_v + ' and ';
7259
7236
  filter_v = filter_v + ' (';
7260
7237
  if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null)
7261
- filter_v = filter_v + key + ">='" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + "'";
7238
+ filter_v = filter_v + key + ">=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + "";
7262
7239
  if (obj_filtro.dateTo != null) {
7263
7240
  if (obj_filtro.dateFrom != null)
7264
7241
  filter_v = filter_v + ' and ';
7265
- filter_v = filter_v + key + "<='" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "'";
7242
+ filter_v = filter_v + key + "<=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "";
7266
7243
  }
7267
7244
  else if (obj_filtro.dateFrom != null) {
7268
7245
  if (obj_filtro.type == "greaterThan")
7269
- filter_v = filter_v + ' ' + key + ' >= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7246
+ filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7270
7247
  if (obj_filtro.type == "equals")
7271
- filter_v = filter_v + ' (' + key + ' >=\'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\' and ' + key + ' <=\'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + ' 23:59:00\')';
7248
+ filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + ' and ' + key + ' <=' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1), ' 23:59:00') + ')';
7272
7249
  if (obj_filtro.type == "notEqual")
7273
- filter_v = filter_v + ' ' + key + ' <> \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7250
+ filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7274
7251
  if (obj_filtro.type == "lessThan")
7275
- filter_v = filter_v + ' ' + key + ' <= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7252
+ filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7276
7253
  if (obj_filtro.type == "lessThanOrEqual")
7277
- filter_v = filter_v + ' ' + key + ' <= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7254
+ filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7278
7255
  if (obj_filtro.type == "greaterThanOrEqual")
7279
- filter_v = filter_v + ' ' + key + ' >= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7256
+ filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7280
7257
  }
7281
7258
  filter_v = filter_v + ' )';
7282
7259
  }
@@ -9447,8 +9424,6 @@
9447
9424
  * @return {?}
9448
9425
  */
9449
9426
  function (ob) {
9450
- console.log('ob ', ob);
9451
- console.log('date_sel ', this.date_sel);
9452
9427
  /* if(ob.key=='-')
9453
9428
  {
9454
9429
  ob.preventDefault();
@@ -9474,13 +9449,10 @@
9474
9449
  * @return {?}
9475
9450
  */
9476
9451
  function (event) {
9477
- console.log('event ', event);
9478
9452
  /** @type {?} */
9479
9453
  var s = event.target.value;
9480
- console.log('s -> ', s);
9481
9454
  /** @type {?} */
9482
9455
  var arr = s.split('-').join('/').split('/');
9483
- console.log('arr ', arr);
9484
9456
  if (arr.length == 3) {
9485
9457
  if (arr[1].length == 1)
9486
9458
  arr[1] = "0" + arr[1];
@@ -9494,7 +9466,6 @@
9494
9466
  if (yy < 100)
9495
9467
  yy += 2000;
9496
9468
  this.date_sel = dtp.createDate(yy, parseInt(arr[1]) - 1, parseInt(arr[0]));
9497
- console.log('dare s', this.date_sel);
9498
9469
  }
9499
9470
  else
9500
9471
  console.log('data non valida! ', arr);
@@ -9661,7 +9632,6 @@
9661
9632
  * @return {?}
9662
9633
  */
9663
9634
  function (d) {
9664
- console.log('d ', d);
9665
9635
  this.dateAdapter.setLocale('it-IT');
9666
9636
  if (d == null) {
9667
9637
  this.date_sel = null;
@@ -10414,7 +10384,6 @@
10414
10384
  * @return {?}
10415
10385
  */
10416
10386
  function () {
10417
- console.log('set focus');
10418
10387
  this.dtc.setFocusToInputBox();
10419
10388
  };
10420
10389
  /**
@@ -10425,13 +10394,10 @@
10425
10394
  */
10426
10395
  function () {
10427
10396
  var _this = this;
10428
- console.log('dt_ch!!');
10429
- console.log(this.dtc);
10430
10397
  setTimeout((/**
10431
10398
  * @return {?}
10432
10399
  */
10433
10400
  function () {
10434
- console.log(_this.date_sel);
10435
10401
  _this.change.emit();
10436
10402
  }), 50);
10437
10403
  };
@@ -11191,7 +11157,6 @@
11191
11157
  * @return {?}
11192
11158
  */
11193
11159
  function (event) {
11194
- console.log('event.code ', event.code);
11195
11160
  if (event.code == "Enter") {
11196
11161
  this.enter_pressed.emit();
11197
11162
  }
@@ -12810,8 +12775,6 @@
12810
12775
  */
12811
12776
  function (fileItem) {
12812
12777
  var _this = this;
12813
- console.log('this.arr_g ', this.arr_g);
12814
- console.log('fileItem ', fileItem);
12815
12778
  for (var i = 0; i < this.arr_g.length; i++) {
12816
12779
  if (this.arr_g[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
12817
12780
  this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
@@ -12897,7 +12860,6 @@
12897
12860
  * @return {?}
12898
12861
  */
12899
12862
  function (fileItem) {
12900
- console.log('onAfterAddingFile');
12901
12863
  _this.ch(fileItem);
12902
12864
  });
12903
12865
  this.init(this.App, this.K);
@@ -14464,7 +14426,6 @@
14464
14426
  result = new Array('autoSizeAll', 'expandAll', 'contractAll', 'copy', 'copyWithHeaders', 'paste',
14465
14427
  // 'resetColumns',
14466
14428
  'toolPanel');
14467
- console.log(result);
14468
14429
  return result;
14469
14430
  };
14470
14431
  /**