[AAE-10769] remove alfresco deps from datatable (#8045)

* remove alfresco dep

* [ci:force] move data-column in datatable

* new datatable service

* doc

* required changes

* fix

* fix
This commit is contained in:
Eugenio Romano
2023-01-04 09:08:03 +01:00
committed by GitHub
parent 85429b4cf1
commit 4da74f1c07
30 changed files with 361 additions and 135 deletions

View File

@@ -46,7 +46,9 @@ import {
AlfrescoApiService,
UserPreferenceValues,
LockService,
DataRow
DataRow,
DataTableService,
NodesApiService
} from '@alfresco/adf-core';
import { Node, NodeEntry, NodePaging, NodesApi, Pagination } from '@alfresco/js-api';
@@ -72,7 +74,7 @@ import { ADF_DOCUMENT_PARENT_COMPONENT } from './document-list.token';
providers:[{
provide: ADF_DOCUMENT_PARENT_COMPONENT,
useExisting: DocumentListComponent
}],
}, DataTableService],
encapsulation: ViewEncapsulation.None,
host: { class: 'adf-document-list' }
})
@@ -363,7 +365,14 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
private contentService: ContentService,
private thumbnailService: ThumbnailService,
private alfrescoApiService: AlfrescoApiService,
private nodeService: NodesApiService,
private dataTableService: DataTableService,
private lockService: LockService) {
this.nodeService.nodeUpdated.subscribe((node) => {
this.dataTableService.rowUpdate.next({id: node.id, obj: {entry: node}});
});
this.userPreferencesService
.select(UserPreferenceValues.PaginationSize)
.pipe(takeUntil(this.onDestroy$))