[ACS-10083] Filter not behaving correctly in file and site (#11237)

* [ACS-10083]: fixes setValue flow; handles initial stream values properly

* [ACS-10083]: migrates to category.id instead of column key for filter key

* [ACS-10083]: refactoring to prevent setting nullish query

* [ACS-10083]: unit tests

* [ACS-10083]: adds method for getting operator by category id

* [ACS-10083]: removes API call trigger from component on initial value set

* [ACS-10083]: adds data for building initial query after page reload

* [ACS-10083]: removes nodes API call if has filter in query

* [ACS-10083]: no need to call submit inside of the comp on initial value

* [ACS-10083]: updated unit tests

* [ACS-10083]: minor fixes and refactorings

* [ACS-10083]: removes redundant types
This commit is contained in:
rmnvch
2025-10-27 10:24:58 +01:00
committed by GitHub
parent 6ab54be7d0
commit 5016eff847
12 changed files with 180 additions and 47 deletions
@@ -599,7 +599,7 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
}
if (this.currentFolderId && changes['currentFolderId']?.currentValue !== changes['currentFolderId']?.previousValue) {
this.loadFolder();
!this.filterValue && this.loadFolder();
}
if (this.data) {
@@ -816,7 +816,6 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
this.preserveExistingSelection();
}
this.onPreselectNodes();
this.setLoadingState(false);
this.onDataReady(nodePaging);
}
}
@@ -1023,6 +1022,7 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
private onDataReady(nodePaging: NodePaging) {
this.ready.emit(nodePaging);
this.pagination.next(nodePaging.list.pagination);
this.setLoadingState(false);
}
updatePagination(requestPaginationModel: RequestPaginationModel) {