mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
[ACA-1301] Document List - page sizes (#299)
* pagination sizes * retire documentList supportedPageSizes * fix tests
This commit is contained in:
committed by
Denys Vuika
parent
10818633c5
commit
abf34a6b48
@@ -171,6 +171,7 @@
|
||||
|
||||
<ng-container *ngIf="!documentList.isEmpty()">
|
||||
<adf-pagination
|
||||
[supportedPageSizes]="'pagination.supportedPageSizes' | appConfig"
|
||||
[target]="documentList"
|
||||
(changePageSize)="onChangePageSize($event)">
|
||||
</adf-pagination>
|
||||
|
@@ -46,6 +46,7 @@ import { DocumentListService } from '@alfresco/adf-content-services';
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
import { NodeInfoDirective } from '../../common/directives/node-info.directive';
|
||||
import { NodePermissionService } from '../../common/services/node-permission.service';
|
||||
import { AppConfigPipe } from '../../common/pipes/app-config.pipe';
|
||||
|
||||
import { FavoritesComponent } from './favorites.component';
|
||||
|
||||
@@ -105,7 +106,8 @@ describe('Favorites Routed Component', () => {
|
||||
NodeFavoriteDirective,
|
||||
NodeInfoDirective,
|
||||
DocumentListComponent,
|
||||
FavoritesComponent
|
||||
FavoritesComponent,
|
||||
AppConfigPipe
|
||||
],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: {
|
||||
|
@@ -172,7 +172,7 @@
|
||||
|
||||
<ng-container *ngIf="!isEmpty">
|
||||
<adf-pagination
|
||||
[supportedPageSizes]="documentList.supportedPageSizes"
|
||||
[supportedPageSizes]="'pagination.supportedPageSizes' | appConfig"
|
||||
[pagination]="pagination"
|
||||
(change)="load(true, $event)"
|
||||
(changePageSize)="onChangePageSize($event)">
|
||||
|
@@ -47,6 +47,7 @@ import { BrowsingFilesService } from '../../common/services/browsing-files.servi
|
||||
import { NodeActionsService } from '../../common/services/node-actions.service';
|
||||
import { NodePermissionService } from '../../common/services/node-permission.service';
|
||||
import { NodeInfoDirective } from '../../common/directives/node-info.directive';
|
||||
import { AppConfigPipe } from '../../common/pipes/app-config.pipe';
|
||||
|
||||
import { FilesComponent } from './files.component';
|
||||
|
||||
@@ -84,7 +85,8 @@ describe('FilesComponent', () => {
|
||||
NodeFavoriteDirective,
|
||||
NodeInfoDirective,
|
||||
DocumentListComponent,
|
||||
FileSizePipe
|
||||
FileSizePipe,
|
||||
AppConfigPipe
|
||||
],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: {
|
||||
|
@@ -68,6 +68,7 @@
|
||||
|
||||
<ng-container *ngIf="!documentList.isEmpty()">
|
||||
<adf-pagination
|
||||
[supportedPageSizes]="'pagination.supportedPageSizes' | appConfig"
|
||||
[target]="documentList"
|
||||
(changePageSize)="onChangePageSize($event)">
|
||||
</adf-pagination>
|
||||
|
@@ -42,6 +42,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { MatMenuModule, MatSnackBarModule, MatIconModule } from '@angular/material';
|
||||
import { DocumentListService } from '@alfresco/adf-content-services';
|
||||
import { ShareDataTableAdapter } from '@alfresco/adf-content-services';
|
||||
import { AppConfigPipe } from '../../common/pipes/app-config.pipe';
|
||||
|
||||
import { LibrariesComponent } from './libraries.component';
|
||||
|
||||
@@ -87,7 +88,8 @@ describe('Libraries Routed Component', () => {
|
||||
NodeNameTooltipPipe,
|
||||
NodeFavoriteDirective,
|
||||
DocumentListComponent,
|
||||
LibrariesComponent
|
||||
LibrariesComponent,
|
||||
AppConfigPipe
|
||||
],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: {
|
||||
|
@@ -159,6 +159,7 @@
|
||||
|
||||
<ng-container *ngIf="!documentList.isEmpty()">
|
||||
<adf-pagination
|
||||
[supportedPageSizes]="'pagination.supportedPageSizes' | appConfig"
|
||||
[target]="documentList"
|
||||
(changePageSize)="onChangePageSize($event)">
|
||||
</adf-pagination>
|
||||
|
@@ -42,6 +42,7 @@ import { MatMenuModule, MatSnackBarModule, MatIconModule } from '@angular/materi
|
||||
import { DocumentListService } from '@alfresco/adf-content-services';
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
import { NodeInfoDirective } from '../../common/directives/node-info.directive';
|
||||
import { AppConfigPipe } from '../../common/pipes/app-config.pipe';
|
||||
|
||||
import { RecentFilesComponent } from './recent-files.component';
|
||||
|
||||
@@ -83,7 +84,8 @@ describe('RecentFiles Routed Component', () => {
|
||||
NodeFavoriteDirective,
|
||||
NodeInfoDirective,
|
||||
DocumentListComponent,
|
||||
RecentFilesComponent
|
||||
RecentFilesComponent,
|
||||
AppConfigPipe
|
||||
],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: {
|
||||
|
@@ -176,6 +176,7 @@
|
||||
|
||||
<ng-container *ngIf="!documentList.isEmpty()">
|
||||
<adf-pagination
|
||||
[supportedPageSizes]="'pagination.supportedPageSizes' | appConfig"
|
||||
[target]="documentList"
|
||||
(changePageSize)="onChangePageSize($event)">
|
||||
</adf-pagination>
|
||||
|
@@ -43,6 +43,7 @@ import { DocumentListService } from '@alfresco/adf-content-services';
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
import { NodeInfoDirective } from '../../common/directives/node-info.directive';
|
||||
import { NodePermissionService } from '../../common/services/node-permission.service';
|
||||
import { AppConfigPipe } from '../../common/pipes/app-config.pipe';
|
||||
|
||||
import { SharedFilesComponent } from './shared-files.component';
|
||||
|
||||
@@ -83,7 +84,8 @@ describe('SharedFilesComponent', () => {
|
||||
NodeFavoriteDirective,
|
||||
NodeInfoDirective,
|
||||
DocumentListComponent,
|
||||
SharedFilesComponent
|
||||
SharedFilesComponent,
|
||||
AppConfigPipe
|
||||
],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: {
|
||||
|
@@ -100,6 +100,7 @@
|
||||
|
||||
<ng-container *ngIf="!documentList.isEmpty()">
|
||||
<adf-pagination
|
||||
[supportedPageSizes]="'pagination.supportedPageSizes' | appConfig"
|
||||
[target]="documentList"
|
||||
(changePageSize)="onChangePageSize($event)">
|
||||
</adf-pagination>
|
||||
|
@@ -42,6 +42,7 @@ import { MatMenuModule, MatSnackBarModule, MatIconModule } from '@angular/materi
|
||||
import { DocumentListService } from '@alfresco/adf-content-services';
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
import { NodeInfoDirective } from '../../common/directives/node-info.directive';
|
||||
import { AppConfigPipe } from '../../common/pipes/app-config.pipe';
|
||||
|
||||
import { TrashcanComponent } from './trashcan.component';
|
||||
|
||||
@@ -79,7 +80,8 @@ describe('TrashcanComponent', () => {
|
||||
NodeFavoriteDirective,
|
||||
NodeInfoDirective,
|
||||
DocumentListComponent,
|
||||
TrashcanComponent
|
||||
TrashcanComponent,
|
||||
AppConfigPipe
|
||||
],
|
||||
providers: [
|
||||
{ provide: ActivatedRoute, useValue: {
|
||||
|
Reference in New Issue
Block a user