@fluxhub/fluxhub-lib 10.0.141 → 10.0.143

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.
@@ -5796,17 +5796,17 @@
5796
5796
  else {
5797
5797
  include_null_value = true;
5798
5798
  }
5799
- var num_all_1 = -1;
5800
- this.columnDefs.map(function (v) {
5801
- console.log('v ', v);
5802
- if (v != null)
5803
- if (v.filterParams != null)
5804
- if (v.filterParams.values != null)
5805
- if (v.field == key && v.filter == 'agSetColumnFilter')
5806
- num_all_1 = v.filterParams.values.length;
5807
- });
5808
- console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all_1);
5809
- if (sq != "" && obj_filtro.values.length != num_all_1) {
5799
+ var num_all = -1;
5800
+ var countryFilterComponent = this.gridOptions.api.getFilterInstance(key);
5801
+ console.log('countryFilterComponent ', countryFilterComponent);
5802
+ if (countryFilterComponent != null) {
5803
+ var model = countryFilterComponent.getModel();
5804
+ console.log('model ', model);
5805
+ if (model != null)
5806
+ num_all = model.values.length;
5807
+ }
5808
+ console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all);
5809
+ if (sq != "" && obj_filtro.values.length != num_all) {
5810
5810
  b_filter = true;
5811
5811
  if (add_end)
5812
5812
  filter_v = filter_v + " and ";