diff --git a/package-lock.json b/package-lock.json index 53350e626..d6b3d8021 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ebury/chameleon-components", - "version": "2.2.55", + "version": "2.2.56", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@ebury/chameleon-components", - "version": "2.2.55", + "version": "2.2.56", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 732a3e570..fb1a506f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ebury/chameleon-components", - "version": "2.2.55", + "version": "2.2.56", "main": "src/main.js", "sideEffects": false, "author": "Ebury Team (http://labs.ebury.rocks/)", diff --git a/src/components/ec-smart-table/__snapshots__/ec-smart-table.spec.js.snap b/src/components/ec-smart-table/__snapshots__/ec-smart-table.spec.js.snap index 40d927fa3..03b44ee2e 100644 --- a/src/components/ec-smart-table/__snapshots__/ec-smart-table.spec.js.snap +++ b/src/components/ec-smart-table/__snapshots__/ec-smart-table.spec.js.snap @@ -693,7 +693,7 @@ exports[`EcSmartTable filtering should reset the page after changes in filters a data-test="ec-smart-table-pagination ec-table-pagination" >
-

With always shown custom row

+

With always shown custom row and hidden pagination size and custom info

({ isFilteringEnabled: null, prefilter: null, isCustomRowShown: true, + isPageSizeHidden: true, + isTotalHidden: true, }" v-on="{ fetch: onFetch, diff --git a/src/components/ec-smart-table/ec-smart-table.vue b/src/components/ec-smart-table/ec-smart-table.vue index 5c527dc19..7d3063d03 100644 --- a/src/components/ec-smart-table/ec-smart-table.vue +++ b/src/components/ec-smart-table/ec-smart-table.vue @@ -82,6 +82,9 @@ total: totalRecords, numberOfItems, itemsPerPageText, + isPageSizeHidden, + isTotalHidden, + isResponsive: isPaginationResponsive, }" data-test="ec-smart-table-pagination" @change="paginate" @@ -173,6 +176,18 @@ const props = defineProps({ type: Boolean, default: false, }, + isPageSizeHidden: { + type: Boolean, + default: false, + }, + isTotalHidden: { + type: Boolean, + default: false, + }, + isPaginationResponsive: { + type: Boolean, + default: true, + }, }); // sorting diff --git a/src/components/ec-table-pagination/__snapshots__/ec-table-pagination.spec.js.snap b/src/components/ec-table-pagination/__snapshots__/ec-table-pagination.spec.js.snap index 9fca47bb6..485a020ce 100644 --- a/src/components/ec-table-pagination/__snapshots__/ec-table-pagination.spec.js.snap +++ b/src/components/ec-table-pagination/__snapshots__/ec-table-pagination.spec.js.snap @@ -15,7 +15,7 @@ exports[`EcTablePagination #slots should use given pages slot 1`] = ` exports[`EcTablePagination #slots should use given total slot 1`] = `
@@ -60,7 +60,7 @@ exports[`EcTablePagination should display last page information by calculating t exports[`EcTablePagination should display next and prev buttons disabled if pagination has only one page 1`] = `