cilog-lib 1.3.7 → 1.4.0

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.
@@ -577,6 +577,9 @@ class CilogTableComponent {
577
577
  }
578
578
  }
579
579
  });
580
+ if (this.table.scroller) {
581
+ this.table.scroller.appendOnly = true;
582
+ }
580
583
  this.cdRef.detectChanges();
581
584
  }
582
585
  onFilterTable(event) {
@@ -783,20 +786,22 @@ class CilogTableComponent {
783
786
  this.onFilter.emit({ column: col, value: value, filteredValue: this.table.filteredValue });
784
787
  }
785
788
  filter(col, val, filter) {
786
- //// Copier - Coller de la méthode filter() de table.ts de PrimeNG sans la désynchronisation causée par filterDelay (setTimeout)
787
- //if (this.table.filterTimeout) {
788
- // clearTimeout(this.table.filterTimeout);
789
- //}
790
- //if (!this.table.isFilterBlank(val)) {
791
- // this.table.filters[col.id] = { value: val, matchMode: filter };
792
- //} else if (this.table.filters[col.id]) {
793
- // delete this.table.filters[col.id];
794
- //}
795
- //this.table._filter();
796
- //this.table.filterTimeout = null;
797
- //this.table.anchorRowIndex = null;
798
- //this.table.scroller.viewInit();
799
- //this.table.scroller.setInitialState();
789
+ // Copier - Coller de la méthode filter() de table.ts de PrimeNG sans la désynchronisation causée par filterDelay (setTimeout)
790
+ if (this.table.filterTimeout) {
791
+ clearTimeout(this.table.filterTimeout);
792
+ }
793
+ if (!this.table.isFilterBlank(val)) {
794
+ this.table.filters[col.id] = { value: val, matchMode: filter };
795
+ }
796
+ else if (this.table.filters[col.id]) {
797
+ delete this.table.filters[col.id];
798
+ }
799
+ this.table._filter();
800
+ this.table.filterTimeout = null;
801
+ this.table.anchorRowIndex = null;
802
+ if (this.table.scroller) {
803
+ this.table.scroller.viewInit();
804
+ }
800
805
  }
801
806
  isModeCheckboxSelection() {
802
807
  return this.options.selectable == true && this.options.modeSelection != null && this.options.modeSelection == ModeSelection.Checkbox;