mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-994] Integrate SFS enhancements for Pagination component (#2119)
* Add pagination module with pagination component * Update the old pagination to have the old selector * Add licence headers to ts files * Update pagination files * Rename properties for consistency reasons and remove redundant event emitters * Add PaginationQueryParams interface to reference the query params used for paginated requests * Add documentation of pagination (work in progress) * Add i18n translations to pagination component * Rename some variables used in pagination template * Update pagination component to be backwards compatible * Update pagination component specs * Update pagination’s documentation * Remove the old pagination code * Add old alfresco-pagination tag selector * Update document list component to include the new pagination * Add adf-pagination in search component * Update link to pagination component from main readme file * Update search component specs * Add a default pagination object in case it’s not provided * Assign pagination to default one to default the missing properties (if any) * Remove unused variables * Add fail hints from expectancies of pagination tests * Add default onInit and remove the old defaults
This commit is contained in:
committed by
Mario Romano
parent
34ad695a39
commit
ca2ba3c5c7
@@ -68,6 +68,7 @@
|
||||
</content-action>
|
||||
</content-actions>
|
||||
</adf-document-list>
|
||||
|
||||
<adf-pagination
|
||||
(changePageSize)="onChangePageSize($event)"
|
||||
(nextPage)="onNextPage($event)"
|
||||
|
@@ -32,6 +32,12 @@ describe('SearchComponent', () => {
|
||||
|
||||
let result = {
|
||||
list: {
|
||||
pagination: {
|
||||
hasMoreItems: false,
|
||||
maxItems: 25,
|
||||
skipCount: 0,
|
||||
totalItems: 1
|
||||
},
|
||||
entries: [
|
||||
{
|
||||
entry: {
|
||||
@@ -55,6 +61,12 @@ describe('SearchComponent', () => {
|
||||
|
||||
let folderResult = {
|
||||
list: {
|
||||
pagination: {
|
||||
hasMoreItems: false,
|
||||
maxItems: 25,
|
||||
skipCount: 0,
|
||||
totalItems: 1
|
||||
},
|
||||
entries: [
|
||||
{
|
||||
entry: {
|
||||
@@ -76,6 +88,12 @@ describe('SearchComponent', () => {
|
||||
|
||||
let noResult = {
|
||||
list: {
|
||||
pagination: {
|
||||
hasMoreItems: false,
|
||||
maxItems: 25,
|
||||
skipCount: 0,
|
||||
totalItems: 0
|
||||
},
|
||||
entries: []
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user