From 55d2c71a5537bf0a1ed6b1a5e57b14d689970476 Mon Sep 17 00:00:00 2001 From: Moritz Vetter <16950410+Isokaeder@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:27:33 +0200 Subject: [PATCH] refactor(KtTable): use Composition API in TableHeader.vue Co-Authored-By: Florian Wendelborn <1133858+FlorianWendelborn@users.noreply.github.com> --- .../kotti-ui/source/kotti-table/KtTable.vue | 2 +- .../kotti-table/components/TableHeader.vue | 263 +++++++----------- .../kotti-table/components/TableRowCell.ts | 1 + .../kotti-ui/source/kotti-table/constants.ts | 13 +- .../source/kotti-table/logic/column.ts | 119 ++++---- .../source/kotti-table/logic/select.ts | 1 + .../source/kotti-table/logic/types.ts | 13 +- packages/kotti-ui/source/kotti-table/types.ts | 10 +- 8 files changed, 191 insertions(+), 231 deletions(-) diff --git a/packages/kotti-ui/source/kotti-table/KtTable.vue b/packages/kotti-ui/source/kotti-table/KtTable.vue index 0404162888..96c4ed1229 100644 --- a/packages/kotti-ui/source/kotti-table/KtTable.vue +++ b/packages/kotti-ui/source/kotti-table/KtTable.vue @@ -53,7 +53,7 @@ export const INITIAL_TABLE_STORE_PROPS = [ 'sortable', 'sortedColumns', 'sortMultiple', -] +] as const export default { name: 'KtTable', diff --git a/packages/kotti-ui/source/kotti-table/components/TableHeader.vue b/packages/kotti-ui/source/kotti-table/components/TableHeader.vue index 737557d176..9e11220bcd 100644 --- a/packages/kotti-ui/source/kotti-table/components/TableHeader.vue +++ b/packages/kotti-ui/source/kotti-table/components/TableHeader.vue @@ -3,7 +3,7 @@