Skip to content

Commit

Permalink
Merge pull request #1039 from 3YOURMIND/add-date-tests-to-standard-table
Browse files Browse the repository at this point in the history
Add data tests to standard table
  • Loading branch information
Isokaeder authored Jan 14, 2025
2 parents c68987f + 6cee7c1 commit d609beb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/kotti-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@
"style": "./dist/style.css",
"type": "module",
"types": "./dist/index.d.ts",
"version": "8.3.1"
"version": "8.3.2"
}
1 change: 1 addition & 0 deletions packages/kotti-ui/source/kotti-table/KtStandardTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<div v-if="!hideTableActions" class="kt-standard-table__table-actions">
<TableSearch
v-if="!options?.hideControls?.search"
data-test="table-search-field"
:isLoading="isLoadingAndEmpty"
:placeholder="options?.searchPlaceholder"
:value="searchValue"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:trigger="isLoading ? 'manual' : 'click'"
>
<KtButton
data-test="table-column-edit-button"
:disabled="isLoading"
:icon="Yoco.Icon.CHEVRON_DOWN"
:isLoading="isLoading"
Expand All @@ -20,6 +21,7 @@
/>
<!-- FIXME: ideally this button shoud not be behind the fold -->
<KtButton
data-test="table-column-show-all-button"
:disabled="isShowAllDisabled"
:label="translations.showAll"
type="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:trigger="isLoading ? 'manual' : 'click'"
>
<KtButton
data-test="table-filter-edit-button"
:disabled="isLoading"
:icon="Yoco.Icon.CHEVRON_DOWN"
:isLoading="isLoading"
Expand All @@ -22,6 +23,7 @@
@input="$emit('input', $event)"
/>
<KtButton
data-test="table-filter-clear-all-button"
:disabled="isLoading"
:label="translations.clearAll"
type="text"
Expand Down Expand Up @@ -53,7 +55,6 @@ export default defineComponent({
type: Array as PropType<KottiStandardTable.FilterInternal[]>,
},
isLoading: { default: false, type: Boolean },
size: { default: 'md', type: String },
value: {
default: () => [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default defineComponent({
return {
options: computed<KottiFieldSingleSelect.Props['options']>(() =>
props.pageSizeOptions.map((value) => ({
dataTest: `table-page-size-options-${value}`,
label: String(value),
value,
})),
Expand Down

0 comments on commit d609beb

Please sign in to comment.