@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.
@@ -5797,24 +5797,28 @@
5797
5797
  include_null_value = true;
5798
5798
  }
5799
5799
  var num_all = -1;
5800
- var countryFilterComponent = this.gridOptions.api.getFilterInstance(key);
5800
+ var countryFilterComponent = this.gridOptions.api.getColumnDef(key);
5801
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
- }
5802
+ if (countryFilterComponent != null)
5803
+ if (countryFilterComponent.filterParams != null)
5804
+ if (countryFilterComponent.filterParams.values != null) {
5805
+ var model = countryFilterComponent.filterParams.values;
5806
+ console.log('model ', model);
5807
+ if (model != null)
5808
+ num_all = model.values.length;
5809
+ }
5808
5810
  console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all);
5809
- if (sq != "" && obj_filtro.values.length != num_all) {
5810
- b_filter = true;
5811
- if (add_end)
5812
- filter_v = filter_v + " and ";
5813
- if (!include_null_value)
5814
- filter_v = filter_v + key + " in (" + sq + ")";
5815
- else
5816
- filter_v =
5817
- filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
5811
+ if (sq != "") {
5812
+ if (obj_filtro.values.length != num_all) {
5813
+ b_filter = true;
5814
+ if (add_end)
5815
+ filter_v = filter_v + " and ";
5816
+ if (!include_null_value)
5817
+ filter_v = filter_v + key + " in (" + sq + ")";
5818
+ else
5819
+ filter_v =
5820
+ filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
5821
+ }
5818
5822
  }
5819
5823
  else {
5820
5824
  b_filter = true;