From 7b99f7e738ce65a65d8d03a653c00f9a4256e16b Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Wed, 19 Jun 2024 16:58:24 +0200 Subject: [PATCH 1/4] feat: related #275 - add items-per-page label, add news props to display results and items-per-page feature (label and select), fix somes translations --- .../pagination/src/pagination-large.ts | 2 ++ .../pagination/src/pagination-large.vue | 11 ++++++- .../pagination/src/pagination-medium.ts | 1 + .../pagination/src/pagination-medium.vue | 1 + .../pagination/src/pagination-small.ts | 1 + .../pagination/src/pagination-small.vue | 1 + .../components/pagination/src/pagination.ts | 2 ++ .../components/pagination/src/pagination.vue | 29 ++++++++++++------- packages/locale/lang/en.ts | 11 +++---- packages/locale/lang/fr.ts | 13 +++++---- packages/theme/src/puik-pagination.scss | 4 +++ 11 files changed, 53 insertions(+), 23 deletions(-) diff --git a/packages/components/pagination/src/pagination-large.ts b/packages/components/pagination/src/pagination-large.ts index e1cf8280..05d633a7 100644 --- a/packages/components/pagination/src/pagination-large.ts +++ b/packages/components/pagination/src/pagination-large.ts @@ -9,6 +9,8 @@ export interface PaginationLargeProps { maxPage: number label?: string dataTest?: string + displayItemsPerPage?: boolean + displayResults?: boolean } export type PaginationInstance = InstanceType; diff --git a/packages/components/pagination/src/pagination-large.vue b/packages/components/pagination/src/pagination-large.vue index 0f5cf0c6..abf28ba8 100644 --- a/packages/components/pagination/src/pagination-large.vue +++ b/packages/components/pagination/src/pagination-large.vue @@ -1,5 +1,6 @@