From f52d1d91ea0da78c28d4a2e9f1a90a5c2acd39d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 5 Jun 2023 16:26:08 +0300 Subject: [PATCH] Refactor #4024 - DataTable & TreeTable --- components/lib/column/Column.d.ts | 17 +++++--- components/lib/datatable/DataTable.d.ts | 4 -- components/lib/treetable/BodyCell.vue | 2 +- components/lib/treetable/TreeTable.d.ts | 56 ++++++------------------- components/lib/treetable/TreeTable.vue | 6 +-- 5 files changed, 28 insertions(+), 57 deletions(-) diff --git a/components/lib/column/Column.d.ts b/components/lib/column/Column.d.ts index 5d11ee453..dbd5883c3 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -274,13 +274,13 @@ export interface ColumnPassThroughOptions { */ rowEditorInitIcon?: ColumnPassThroughOptionType; /** - * Uses to pass attributes to the row editor edit button's DOM element. + * Uses to pass attributes to the row editor save button's DOM element. */ - rowEditorEditButton?: ColumnPassThroughOptionType; + rowEditorSaveButton?: ColumnPassThroughOptionType; /** - * Uses to pass attributes to the row editor edit icon's DOM element. + * Uses to pass attributes to the row editor save icon's DOM element. */ - rowEditorEditIcon?: ColumnPassThroughOptionType; + rowEditorSaveIcon?: ColumnPassThroughOptionType; /** * Uses to pass attributes to the row editor cancel button's DOM element. */ @@ -289,7 +289,14 @@ export interface ColumnPassThroughOptions { * Uses to pass attributes to the row editor cancel icon's DOM element. */ rowEditorCancelIcon?: ColumnPassThroughOptionType; - + /** + * Uses to pass attributes to the footer cell's DOM element. + */ + footerCell?: ColumnPassThroughOptionType; + /** + * Uses to pass attributes to the body cell content's DOM element. + */ + bodyCellContent?: ColumnPassThroughOptionType; /** * Uses to pass attributes to the hidden input wrapper's DOM element. */ diff --git a/components/lib/datatable/DataTable.d.ts b/components/lib/datatable/DataTable.d.ts index 34b22a3f2..6dadf7fe2 100755 --- a/components/lib/datatable/DataTable.d.ts +++ b/components/lib/datatable/DataTable.d.ts @@ -622,10 +622,6 @@ export interface DataTablePassThroughOptions { * Uses to pass attributes to the footerr ow's DOM element. */ footerRow?: DataTablePassThroughOptionType; - /** - * Uses to pass attributes to the footer cell's DOM element. - */ - footerCell?: DataTablePassThroughOptionType; /** * Uses to pass attributes to the resize helper's DOM element. */ diff --git a/components/lib/treetable/BodyCell.vue b/components/lib/treetable/BodyCell.vue index a2b9166e5..a8ef88bed 100644 --- a/components/lib/treetable/BodyCell.vue +++ b/components/lib/treetable/BodyCell.vue @@ -16,7 +16,7 @@ diff --git a/components/lib/treetable/TreeTable.d.ts b/components/lib/treetable/TreeTable.d.ts index 3b3906813..2d2f0701b 100755 --- a/components/lib/treetable/TreeTable.d.ts +++ b/components/lib/treetable/TreeTable.d.ts @@ -212,21 +212,29 @@ export interface TreeTablePassThroughOptions { */ headerRow?: TreeTablePassThroughOptionType; /** - * Uses to pass attributes to the header cell's DOM element. + * Uses to pass attributes to the header filter row's DOM element. */ - headerCell?: TreeTablePassThroughOptionType; + headerFilterRow?: TreeTablePassThroughOptionType; + /** + * Uses to pass attributes to the header filter cell's DOM element. + */ + headerFilterCell?: TreeTablePassThroughOptionType; /** * Uses to pass attributes to the tbody's DOM element. */ tbody?: TreeTablePassThroughOptionType; + /** + * Uses to pass attributes to the row's DOM element. + */ + row?: TreeTablePassThroughOptionType; /** * Uses to pass attributes to the empty message's DOM element. */ emptyMessage?: TreeTablePassThroughOptionType; /** - * Uses to pass attributes to the body cell's DOM element. + * Uses to pass attributes to the empty message cell's DOM element. */ - bodyCell?: TreeTablePassThroughOptionType; + emptyMessageCell?: TreeTablePassThroughOptionType; /** * Uses to pass attributes to the tfoot's DOM element. */ @@ -243,46 +251,6 @@ export interface TreeTablePassThroughOptions { * Uses to pass attributes to the resize helper's DOM element. */ resizeHelper?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the row toggler's DOM element. - */ - rowToggler?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the row toggler icon's DOM element. - */ - rowTogglerIcon?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the column resizer's DOM element. - */ - columnResizer?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the sort badge's DOM element. - */ - sortBadge?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the header title's DOM element. - */ - headerTitle?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the checkbox wrapper's DOM element. - */ - checkboxWrapper?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to checkbox's DOM element. - */ - checkbox?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the checkbox icon's DOM element. - */ - checkboxIcon?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the hidden input wrapper's DOM element. - */ - hiddenInputWrapper?: TreeTablePassThroughOptionType; - /** - * Uses to pass attributes to the hidden input's DOM element. - */ - hiddenInput?: TreeTablePassThroughOptionType; /** * Uses to pass attributes to the Column helper components. */ diff --git a/components/lib/treetable/TreeTable.vue b/components/lib/treetable/TreeTable.vue index 98c86a785..f34324820 100755 --- a/components/lib/treetable/TreeTable.vue +++ b/components/lib/treetable/TreeTable.vue @@ -65,9 +65,9 @@ > - + @@ -96,7 +96,7 @@ > - +