ACS-10083 Fixes filters behavior with queryParams (#11426)

* [ACS-10083]: aadds populateFilters value safe check

* [ACS-10083]: introduces property to postpone document-list data load

* [ACS-10083]: migrates to using category id as a key instead of column key

* [ACS-10083]: excludes excessive Search API calls

* [ACS-10083]: updates user query setting

* [ACS-10083]: sonar qube fix

* [ACS-10083]: tests refactor

* [ACS-10083]: fixes tests

* [ACS-10083]: restores isFilterServiceActive prop initializer
This commit is contained in:
Anton Ramanovich
2025-12-16 11:02:05 +01:00
committed by GitHub
parent 331b4459a8
commit 21d6818de5
19 changed files with 246 additions and 75 deletions
@@ -373,6 +373,13 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
@Input()
displayDragAndDropHint = true;
/**
* Indicates if the data is provided externally.
* If true the component won't fetch data itself
*/
@Input()
isDataProvidedExternally = false;
/** Emitted when the user clicks a list node */
@Output()
nodeClick = new EventEmitter<NodeEntityEvent>();
@@ -598,7 +605,7 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
}
if (this.currentFolderId && changes['currentFolderId']?.currentValue !== changes['currentFolderId']?.previousValue) {
this.loadFolder();
!this.isDataProvidedExternally && this.loadFolder();
}
if (this.data) {
@@ -1024,6 +1031,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) {