@fluxhub/fluxhub-lib 1.0.400 → 1.0.402

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.
@@ -6689,8 +6689,6 @@ var FHGridComponent = /** @class */ (function () {
6689
6689
  // console.log( params.filterModel[key]);
6690
6690
  /** @type {?} */
6691
6691
  var obj_filtro_test = params.filterModel[key];
6692
- if (p.filter != '')
6693
- p.filter += " and ";
6694
6692
  if (obj_filtro_test.operator == null) {
6695
6693
  if (p.filter == '')
6696
6694
  p.filter += _this.calcola_filtro(params.filterModel[key], '', key, false);
@@ -6698,6 +6696,8 @@ var FHGridComponent = /** @class */ (function () {
6698
6696
  p.filter += _this.calcola_filtro(params.filterModel[key], '', key, true);
6699
6697
  }
6700
6698
  else {
6699
+ if (p.filter != '')
6700
+ p.filter += " and ";
6701
6701
  p.filter += " (";
6702
6702
  p.filter += _this.calcola_filtro(params.filterModel[key].condition1, '', key, false);
6703
6703
  console.log('After chiamata1: ', p.filter);
@@ -7230,7 +7230,7 @@ var FHGridComponent = /** @class */ (function () {
7230
7230
  }
7231
7231
  if (obj_filtro.dateTo != null || obj_filtro.dateFrom != null) {
7232
7232
  b_filter = true;
7233
- if (filter_v != "")
7233
+ if (add_end)
7234
7234
  filter_v = filter_v + ' and ';
7235
7235
  filter_v = filter_v + ' (';
7236
7236
  if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null)