[ACS-10835] Add new param for recent filters in custom resources services (#11428)

* [ACS-10835] Add new param for recent filters in custom resources services

* [ACS-10835] CR fixes
This commit is contained in:
Michal Kinas
2025-12-08 15:51:31 +01:00
committed by GitHub
parent 3255bf675c
commit 58591c67dc
12 changed files with 616 additions and 26 deletions
@@ -154,6 +154,12 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
@Input()
where: string;
/**
* Specifies additional filters to apply (joined with **AND**). Applied for recent files only.
*/
@Input()
filters: string[];
/**
* Define a set of CSS styles to apply depending on the permission
* of the user on that node. See the Permission Style model
@@ -789,18 +795,20 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
this.updateCustomSourceData(this.currentFolderId);
}
this.documentListService.loadFolderByNodeId(this.currentFolderId, this._pagination, this.includeFields, this.where, this.orderBy).subscribe(
(documentNode: DocumentLoaderNode) => {
if (documentNode.currentNode) {
this.folderNode = documentNode.currentNode.entry;
this.$folderNode.next(documentNode.currentNode.entry);
this.documentListService
.loadFolderByNodeId(this.currentFolderId, this._pagination, this.includeFields, this.where, this.orderBy, this.filters)
.subscribe({
next: (documentNode: DocumentLoaderNode) => {
if (documentNode.currentNode) {
this.folderNode = documentNode.currentNode.entry;
this.$folderNode.next(documentNode.currentNode.entry);
}
this.onPageLoaded(documentNode.children);
},
error: (err) => {
this.handleError(err);
}
this.onPageLoaded(documentNode.children);
},
(err) => {
this.handleError(err);
}
);
});
}
resetSelection() {