app directives (#439)

* pagination directive

* document list directive

* cleanup code

* cleanup code

* unified includeFields
This commit is contained in:
Denys Vuika
2018-06-20 12:13:29 +01:00
committed by GitHub
parent c77954099d
commit 9e08b8a232
21 changed files with 305 additions and 265 deletions

View File

@@ -8,16 +8,11 @@
<div class="inner-layout__content">
<div class="inner-layout__panel">
<adf-document-list #documentList
[includeFields]="['isFavorite']"
<adf-document-list acaDocumentList #documentList
currentFolderId="-mysites-"
selectionMode="none"
[navigate]="false"
[sorting]="[ 'title', 'asc' ]"
[acaSortingPreferenceKey]="sortingPreferenceKey"
(ready)="onDocumentListReady($event, documentList)"
(node-select)="onNodeSelect($event, documentList)"
(node-unselect)="onNodeUnselect($event, documentList)"
(node-dblclick)="onNodeDoubleClick($event)">
<empty-folder-content>
@@ -67,10 +62,7 @@
</data-columns>
</adf-document-list>
<adf-pagination
[supportedPageSizes]="'pagination.supportedPageSizes' | adfAppConfig"
[target]="documentList"
(changePageSize)="onChangePageSize($event)">
<adf-pagination acaPagination [target]="documentList">
</adf-pagination>
</div>
</div>

View File

@@ -25,7 +25,7 @@
import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { NodesApiService, UserPreferencesService } from '@alfresco/adf-core';
import { NodesApiService } from '@alfresco/adf-core';
import { ShareDataRow } from '@alfresco/adf-content-services';
import { PageComponent } from '../page.component';
@@ -38,11 +38,10 @@ import { AppStore } from '../../store/states/app.state';
export class LibrariesComponent extends PageComponent {
constructor(private nodesApi: NodesApiService,
route: ActivatedRoute,
private route: ActivatedRoute,
store: Store<AppStore>,
private router: Router,
preferences: UserPreferencesService) {
super(preferences, route, store);
private router: Router) {
super(store);
}
makeLibraryTooltip(library: any): string {