From ed8d395eee17854278435fa8ab14ca99ea95ddd4 Mon Sep 17 00:00:00 2001 From: Moritz Vetter <16950410+Isokaeder@users.noreply.github.com> Date: Tue, 14 Jan 2025 01:49:24 +0100 Subject: [PATCH 1/2] fix(KtStandardTable): add data-test attributes to buttons in kt-standard-table --- packages/kotti-ui/source/kotti-table/KtStandardTable.vue | 1 + .../source/kotti-table/standard-table/components/Columns.vue | 2 ++ .../source/kotti-table/standard-table/components/Filters.vue | 4 +++- .../source/kotti-table/standard-table/components/PageSize.vue | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/kotti-ui/source/kotti-table/KtStandardTable.vue b/packages/kotti-ui/source/kotti-table/KtStandardTable.vue index 00c410e8d..64824992f 100644 --- a/packages/kotti-ui/source/kotti-table/KtStandardTable.vue +++ b/packages/kotti-ui/source/kotti-table/KtStandardTable.vue @@ -20,6 +20,7 @@
, }, isLoading: { default: false, type: Boolean }, - size: { default: 'md', type: String }, + tableId: { required: true, type: String }, value: { default: () => [], type: Array as PropType, diff --git a/packages/kotti-ui/source/kotti-table/standard-table/components/PageSize.vue b/packages/kotti-ui/source/kotti-table/standard-table/components/PageSize.vue index c24292bf8..8d4893fd2 100644 --- a/packages/kotti-ui/source/kotti-table/standard-table/components/PageSize.vue +++ b/packages/kotti-ui/source/kotti-table/standard-table/components/PageSize.vue @@ -32,6 +32,7 @@ export default defineComponent({ return { options: computed(() => props.pageSizeOptions.map((value) => ({ + dataTest: `table-page-size-options-${value}`, label: String(value), value, })), From 6cee7c1890fc52156035cf40c0ad10ca146ca2e5 Mon Sep 17 00:00:00 2001 From: Moritz Vetter <16950410+Isokaeder@users.noreply.github.com> Date: Tue, 14 Jan 2025 01:53:51 +0100 Subject: [PATCH 2/2] version(kotti-ui@8.3.2): add data-test to buttons in standard table --- packages/kotti-ui/package.json | 2 +- .../source/kotti-table/standard-table/components/Filters.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/kotti-ui/package.json b/packages/kotti-ui/package.json index 040cb5d9a..06181fd3d 100644 --- a/packages/kotti-ui/package.json +++ b/packages/kotti-ui/package.json @@ -98,5 +98,5 @@ "style": "./dist/style.css", "type": "module", "types": "./dist/index.d.ts", - "version": "8.3.1" + "version": "8.3.2" } diff --git a/packages/kotti-ui/source/kotti-table/standard-table/components/Filters.vue b/packages/kotti-ui/source/kotti-table/standard-table/components/Filters.vue index 7d89b300c..fcb3f81a0 100644 --- a/packages/kotti-ui/source/kotti-table/standard-table/components/Filters.vue +++ b/packages/kotti-ui/source/kotti-table/standard-table/components/Filters.vue @@ -56,7 +56,6 @@ export default defineComponent({ }, isLoading: { default: false, type: Boolean }, size: { default: 'md', type: String }, - tableId: { required: true, type: String }, value: { default: () => [], type: Array as PropType,