@fluxhub/fluxhub-lib 10.0.138 → 10.0.140

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.
@@ -5604,7 +5604,6 @@
5604
5604
  };
5605
5605
  FHGridComponent.prototype.calcola_filtro = function (obj_filtro, filter_v, key, add_end) {
5606
5606
  if (add_end === void 0) { add_end = true; }
5607
- console.log('obj_filtro ', obj_filtro);
5608
5607
  var b_filter = false;
5609
5608
  if (obj_filtro.type != null) {
5610
5609
  if (obj_filtro.filter != null) {
@@ -5797,7 +5796,17 @@
5797
5796
  else {
5798
5797
  include_null_value = true;
5799
5798
  }
5800
- if (sq != "") {
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;
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) {
5801
5810
  b_filter = true;
5802
5811
  if (add_end)
5803
5812
  filter_v = filter_v + " and ";
@@ -6022,12 +6031,12 @@
6022
6031
  this.fix_flt_temp = "";
6023
6032
  this.gridOptions.api.setFilterModel(null);
6024
6033
  this.show_pulisci_filtri = false;
6025
- var filtrtm = {};
6026
- this.columnDefs.map(function (v) {
6027
- if (v.filter == 'agSetColumnFilter') {
6028
- filtrtm[v.field] = { type: 'set', values: [] };
6029
- }
6030
- });
6034
+ var filtrtm = {}; /*
6035
+ this.columnDefs.map((v)=>{
6036
+ if(v.filter=='agSetColumnFilter'){
6037
+ filtrtm[v.field]={type:'set',values:[]}
6038
+ }
6039
+ });*/
6031
6040
  this.gridOptions.api.setFilterModel(filtrtm);
6032
6041
  };
6033
6042
  FHGridComponent.prototype.export_excel = function (format) {