ACS-7461 Remove ADF_DOCUMENT_PARENT_COMPONENT token (#11372)

This commit is contained in:
Denys Vuika
2025-12-15 13:42:21 +00:00
committed by GitHub
parent 8da24884ec
commit 062b8060bc
7 changed files with 98 additions and 94 deletions
@@ -77,7 +77,6 @@ import { PermissionStyleModel } from '../models/permissions-style.model';
import { presetsDefaultModel } from '../models/preset.model';
import { DocumentListService } from '../services/document-list.service';
import { LockService } from '../services/lock.service';
import { ADF_DOCUMENT_PARENT_COMPONENT } from './document-list.token';
import { FileAutoDownloadComponent } from './file-auto-download/file-auto-download.component';
import { NodeEntityEvent, NodeEntryEvent } from './node.event';
import { CommonModule } from '@angular/common';
@@ -108,13 +107,7 @@ const BYTES_TO_MB_CONVERSION_VALUE = 1048576;
],
templateUrl: './document-list.component.html',
styleUrls: ['./document-list.component.scss'],
providers: [
{
provide: ADF_DOCUMENT_PARENT_COMPONENT,
useExisting: DocumentListComponent
},
DataTableService
],
providers: [DataTableService],
encapsulation: ViewEncapsulation.None,
host: { class: 'adf-document-list' }
})
@@ -1048,6 +1041,16 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
this.filterSelection.emit(activeFilters);
}
onFilterSearchResultsReady(nodePaging: NodePaging) {
this.node = nodePaging;
this.reload();
}
onFiltersCleared() {
this.node = null;
this.reload();
}
resetNewFolderPagination() {
this._pagination.skipCount = 0;
this._pagination.maxItems = this.maxItems;