@fluxhub/fluxhub-lib 10.0.143 → 10.0.145

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.
@@ -8361,24 +8361,28 @@ class FHGridComponent {
8361
8361
  include_null_value = true;
8362
8362
  }
8363
8363
  let num_all = -1;
8364
- let countryFilterComponent = this.gridOptions.api.getFilterInstance(key);
8364
+ let countryFilterComponent = this.gridOptions.api.getColumnDef(key);
8365
8365
  console.log('countryFilterComponent ', countryFilterComponent);
8366
- if (countryFilterComponent != null) {
8367
- let model = countryFilterComponent.getModel();
8368
- console.log('model ', model);
8369
- if (model != null)
8370
- num_all = model.values.length;
8371
- }
8366
+ if (countryFilterComponent != null)
8367
+ if (countryFilterComponent.filterParams != null)
8368
+ if (countryFilterComponent.filterParams.values != null) {
8369
+ let model = countryFilterComponent.filterParams.values;
8370
+ console.log('model ', model);
8371
+ if (model != null)
8372
+ num_all = model.values.length;
8373
+ }
8372
8374
  console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all);
8373
- if (sq != "" && obj_filtro.values.length != num_all) {
8374
- b_filter = true;
8375
- if (add_end)
8376
- filter_v = filter_v + " and ";
8377
- if (!include_null_value)
8378
- filter_v = filter_v + key + " in (" + sq + ")";
8379
- else
8380
- filter_v =
8381
- filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
8375
+ if (sq != "") {
8376
+ if (obj_filtro.values.length != num_all) {
8377
+ b_filter = true;
8378
+ if (add_end)
8379
+ filter_v = filter_v + " and ";
8380
+ if (!include_null_value)
8381
+ filter_v = filter_v + key + " in (" + sq + ")";
8382
+ else
8383
+ filter_v =
8384
+ filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
8385
+ }
8382
8386
  }
8383
8387
  else {
8384
8388
  b_filter = true;