@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
@@ -546,7 +546,6 @@ var UtilityService = /** @class */ (function () {
546
546
  * @return {?}
547
547
  */
548
548
  function (obj_value, combo_value) {
549
- console.log('check_value_combo(obj_value,combo_value) ', obj_value, ' ', combo_value);
550
549
  if (combo_value != null)
551
550
  if (combo_value != '-1')
552
551
  return combo_value;
@@ -814,13 +813,16 @@ var UtilityService = /** @class */ (function () {
814
813
  };
815
814
  /**
816
815
  * @param {?} dt
816
+ * @param {?=} adds
817
817
  * @return {?}
818
818
  */
819
819
  UtilityService.prototype.sql_date = /**
820
820
  * @param {?} dt
821
+ * @param {?=} adds
821
822
  * @return {?}
822
823
  */
823
- function (dt) {
824
+ function (dt, adds) {
825
+ if (adds === void 0) { adds = ''; }
824
826
  if (dt == null)
825
827
  return 'dbnull';
826
828
  if (typeof dt == "undefined")
@@ -834,30 +836,17 @@ var UtilityService = /** @class */ (function () {
834
836
  // getMonth() is zero-based
835
837
  /** @type {?} */
836
838
  var dd = dt.getDate();
837
- if (this.app_s.SQL_SERVER_LANG == 'it')
838
- return [
839
- (dd > 9
840
- ? ''
841
- : '0') + dd,
842
- '-',
843
- (mm > 9
844
- ? ''
845
- : '0') + mm,
846
- '-',
847
- dt.getFullYear()
848
- ].join('');
849
- if (this.app_s.SQL_SERVER_LANG == 'uk')
850
- return [
851
- dt.getFullYear(),
852
- '-',
853
- (mm > 9
854
- ? ''
855
- : '0') + mm,
856
- '-',
857
- (dd > 9
858
- ? ''
859
- : '0') + dd
860
- ].join('');
839
+ return 'CONVERT(DATETIME,\'' + [
840
+ dt.getFullYear(),
841
+ '-',
842
+ (mm > 9
843
+ ? ''
844
+ : '0') + mm,
845
+ '-',
846
+ (dd > 9
847
+ ? ''
848
+ : '0') + dd
849
+ ].join('') + adds + '\',127)';
861
850
  return "Parametro SQL_SERVER_LANG non corretto";
862
851
  };
863
852
  /**
@@ -2775,11 +2764,9 @@ var FHListComponent = /** @class */ (function () {
2775
2764
  return;
2776
2765
  /** @type {?} */
2777
2766
  var arr_val = desc_val.split(',');
2778
- console.log("arr_val ", arr_val);
2779
2767
  for (var j = 0; j < this.myData.length; j++)
2780
2768
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2781
2769
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
2782
- console.log('this.myData[j].checked ', this.myData[j].checked);
2783
2770
  this.myData[j].checked = true;
2784
2771
  }
2785
2772
  }
@@ -2832,7 +2819,6 @@ var FHListComponent = /** @class */ (function () {
2832
2819
  var arr_val = desc_val.split(',');
2833
2820
  for (var j = 0; j < this.myData.length; j++)
2834
2821
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2835
- console.log(this.myData[j].valore + ' ' + arr_val[j1]);
2836
2822
  if (this.myData[j].valore == arr_val[j1]) {
2837
2823
  this.myData[j].checked = true;
2838
2824
  //console.log("selval: "+this.selval);
@@ -3482,7 +3468,6 @@ var AuthenticationService = /** @class */ (function () {
3482
3468
  function (username, password, displayError) {
3483
3469
  var _this = this;
3484
3470
  if (displayError === void 0) { displayError = true; }
3485
- console.log(' this.app_s ', this.app_s);
3486
3471
  this.url = this.app_s.API_ENDPOINT + this.app_s.LOGIN_ENDPOINT;
3487
3472
  /** @type {?} */
3488
3473
  var post_v = JSON.stringify({ username: username, password: password });
@@ -6446,7 +6431,6 @@ var OfficeAutomatorService = /** @class */ (function () {
6446
6431
  if (left.ord > right.ord)
6447
6432
  return 1;
6448
6433
  }));
6449
- console.log('commands ', commands);
6450
6434
  p.values = [uiid, JSON.stringify(commands)];
6451
6435
  return this.dataService.doQuery(p).pipe(flatMap((/**
6452
6436
  * @param {?} data
@@ -6510,7 +6494,6 @@ var OfficeAutomatorService = /** @class */ (function () {
6510
6494
  /** @type {?} */
6511
6495
  var chunkInfo = data.result_data;
6512
6496
  if (chunkInfo.length == 1) {
6513
- console.log('COMPLETE!');
6514
6497
  subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
6515
6498
  subscriber.complete();
6516
6499
  }
@@ -6524,7 +6507,6 @@ var OfficeAutomatorService = /** @class */ (function () {
6524
6507
  }), 3000); // 3 sec default check interval
6525
6508
  }
6526
6509
  else {
6527
- console.log('Timeout');
6528
6510
  subscriber.error('Timeout');
6529
6511
  self.toastr.error('Timeout');
6530
6512
  }
@@ -6668,7 +6650,6 @@ var FHGridComponent = /** @class */ (function () {
6668
6650
  }
6669
6651
  p.system_dest = _this.system_dest;
6670
6652
  p.field = _this.fields;
6671
- console.log('filterModel ', params.filterModel);
6672
6653
  if (_this.filters != null)
6673
6654
  p.filter = _this.filters;
6674
6655
  if (_this.fix_flt != "") {
@@ -6702,12 +6683,9 @@ var FHGridComponent = /** @class */ (function () {
6702
6683
  p.filter += " and ";
6703
6684
  p.filter += " (";
6704
6685
  p.filter += _this.calcola_filtro(params.filterModel[key].condition1, '', key, false);
6705
- console.log('After chiamata1: ', p.filter);
6706
6686
  p.filter += ' ' + obj_filtro_test.operator + ' ';
6707
6687
  p.filter += _this.calcola_filtro(params.filterModel[key].condition2, '', key, false);
6708
- console.log('After chiamata2: ', p.filter);
6709
6688
  p.filter += ")";
6710
- console.log('After chiamata2: ', p.filter);
6711
6689
  }
6712
6690
  // }
6713
6691
  }
@@ -7189,7 +7167,6 @@ var FHGridComponent = /** @class */ (function () {
7189
7167
  */
7190
7168
  function (obj_filtro, filter_v, key, add_end) {
7191
7169
  if (add_end === void 0) { add_end = true; }
7192
- console.log('calcola_filtro ', obj_filtro, filter_v, key);
7193
7170
  /** @type {?} */
7194
7171
  var b_filter = false;
7195
7172
  if (obj_filtro.type != null) {
@@ -7236,25 +7213,25 @@ var FHGridComponent = /** @class */ (function () {
7236
7213
  filter_v = filter_v + ' and ';
7237
7214
  filter_v = filter_v + ' (';
7238
7215
  if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null)
7239
- filter_v = filter_v + key + ">='" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + "'";
7216
+ filter_v = filter_v + key + ">=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + "";
7240
7217
  if (obj_filtro.dateTo != null) {
7241
7218
  if (obj_filtro.dateFrom != null)
7242
7219
  filter_v = filter_v + ' and ';
7243
- filter_v = filter_v + key + "<='" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "'";
7220
+ filter_v = filter_v + key + "<=" + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "";
7244
7221
  }
7245
7222
  else if (obj_filtro.dateFrom != null) {
7246
7223
  if (obj_filtro.type == "greaterThan")
7247
- filter_v = filter_v + ' ' + key + ' >= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7224
+ filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7248
7225
  if (obj_filtro.type == "equals")
7249
- 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\')';
7226
+ 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') + ')';
7250
7227
  if (obj_filtro.type == "notEqual")
7251
- filter_v = filter_v + ' ' + key + ' <> \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7228
+ filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7252
7229
  if (obj_filtro.type == "lessThan")
7253
- filter_v = filter_v + ' ' + key + ' <= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7230
+ filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7254
7231
  if (obj_filtro.type == "lessThanOrEqual")
7255
- filter_v = filter_v + ' ' + key + ' <= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7232
+ filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7256
7233
  if (obj_filtro.type == "greaterThanOrEqual")
7257
- filter_v = filter_v + ' ' + key + ' >= \'' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '\'';
7234
+ filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
7258
7235
  }
7259
7236
  filter_v = filter_v + ' )';
7260
7237
  }
@@ -9425,8 +9402,6 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
9425
9402
  * @return {?}
9426
9403
  */
9427
9404
  function (ob) {
9428
- console.log('ob ', ob);
9429
- console.log('date_sel ', this.date_sel);
9430
9405
  /* if(ob.key=='-')
9431
9406
  {
9432
9407
  ob.preventDefault();
@@ -9452,13 +9427,10 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
9452
9427
  * @return {?}
9453
9428
  */
9454
9429
  function (event) {
9455
- console.log('event ', event);
9456
9430
  /** @type {?} */
9457
9431
  var s = event.target.value;
9458
- console.log('s -> ', s);
9459
9432
  /** @type {?} */
9460
9433
  var arr = s.split('-').join('/').split('/');
9461
- console.log('arr ', arr);
9462
9434
  if (arr.length == 3) {
9463
9435
  if (arr[1].length == 1)
9464
9436
  arr[1] = "0" + arr[1];
@@ -9472,7 +9444,6 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
9472
9444
  if (yy < 100)
9473
9445
  yy += 2000;
9474
9446
  this.date_sel = dtp.createDate(yy, parseInt(arr[1]) - 1, parseInt(arr[0]));
9475
- console.log('dare s', this.date_sel);
9476
9447
  }
9477
9448
  else
9478
9449
  console.log('data non valida! ', arr);
@@ -9639,7 +9610,6 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
9639
9610
  * @return {?}
9640
9611
  */
9641
9612
  function (d) {
9642
- console.log('d ', d);
9643
9613
  this.dateAdapter.setLocale('it-IT');
9644
9614
  if (d == null) {
9645
9615
  this.date_sel = null;
@@ -10392,7 +10362,6 @@ var DtPick = /** @class */ (function () {
10392
10362
  * @return {?}
10393
10363
  */
10394
10364
  function () {
10395
- console.log('set focus');
10396
10365
  this.dtc.setFocusToInputBox();
10397
10366
  };
10398
10367
  /**
@@ -10403,13 +10372,10 @@ var DtPick = /** @class */ (function () {
10403
10372
  */
10404
10373
  function () {
10405
10374
  var _this = this;
10406
- console.log('dt_ch!!');
10407
- console.log(this.dtc);
10408
10375
  setTimeout((/**
10409
10376
  * @return {?}
10410
10377
  */
10411
10378
  function () {
10412
- console.log(_this.date_sel);
10413
10379
  _this.change.emit();
10414
10380
  }), 50);
10415
10381
  };
@@ -11169,7 +11135,6 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
11169
11135
  * @return {?}
11170
11136
  */
11171
11137
  function (event) {
11172
- console.log('event.code ', event.code);
11173
11138
  if (event.code == "Enter") {
11174
11139
  this.enter_pressed.emit();
11175
11140
  }
@@ -12788,8 +12753,6 @@ var win_uploads = /** @class */ (function () {
12788
12753
  */
12789
12754
  function (fileItem) {
12790
12755
  var _this = this;
12791
- console.log('this.arr_g ', this.arr_g);
12792
- console.log('fileItem ', fileItem);
12793
12756
  for (var i = 0; i < this.arr_g.length; i++) {
12794
12757
  if (this.arr_g[i].Filename.toLowerCase() == fileItem.file.name.toLowerCase()) {
12795
12758
  this.toastr.error('File già presente (cancellarlo per aggiornarlo)');
@@ -12875,7 +12838,6 @@ var win_uploads = /** @class */ (function () {
12875
12838
  * @return {?}
12876
12839
  */
12877
12840
  function (fileItem) {
12878
- console.log('onAfterAddingFile');
12879
12841
  _this.ch(fileItem);
12880
12842
  });
12881
12843
  this.init(this.App, this.K);
@@ -14442,7 +14404,6 @@ var FHGridJSONComponent = /** @class */ (function () {
14442
14404
  result = new Array('autoSizeAll', 'expandAll', 'contractAll', 'copy', 'copyWithHeaders', 'paste',
14443
14405
  // 'resetColumns',
14444
14406
  'toolPanel');
14445
- console.log(result);
14446
14407
  return result;
14447
14408
  };
14448
14409
  /**