-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(layout): move all pagination controls together, use common inter…
…face
- Loading branch information
Showing
31 changed files
with
539 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.stories.ts
This file was deleted.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
libs/ui/elements/src/lib/pagination/pagination.component.spec.ts
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
libs/ui/elements/src/lib/pagination/pagination.component.stories.ts
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
libs/ui/elements/src/lib/pagination/pagination.component.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.stories.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* This interface is used for components that want to offer pagination | ||
* Note: pages indexes are 1-based!! so `isLastPage` means `currentPage === pagesCount` | ||
* and `isFirstPage` means `currentPage === 1` | ||
*/ | ||
export interface Paginable { | ||
isFirstPage: boolean | ||
isLastPage: boolean | ||
pagesCount: number | ||
currentPage: number | ||
goToPage(index: number): void | ||
goToNextPage(): void | ||
goToPrevPage(): void | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.