From c2d1c57edff4643ce59dbfda0215afc242f907cf Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 2 May 2024 12:58:00 +0300 Subject: [PATCH] Refactor #5592 - For DataTable --- components/lib/column/Column.d.ts | 96 ++++++++----------- components/lib/datatable/BodyCell.vue | 24 ++--- components/lib/datatable/BodyRow.vue | 10 +- components/lib/datatable/ColumnFilter.vue | 67 ++++++------- components/lib/datatable/DataTable.d.ts | 28 +++--- components/lib/datatable/DataTable.vue | 24 ++--- components/lib/datatable/HeaderCell.vue | 4 +- .../lib/datatable/style/DataTableStyle.js | 61 ++++++------ 8 files changed, 139 insertions(+), 175 deletions(-) diff --git a/components/lib/column/Column.d.ts b/components/lib/column/Column.d.ts index 03c567529..fa386dc03 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -139,13 +139,13 @@ export interface ColumnPassThroughOptions { */ columnResizer?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the header content's DOM element. + * Used to pass attributes to the column header content's DOM element. */ - headerContent?: ColumnPassThroughOptionType; + columnHeaderContent?: ColumnPassThroughOptionType; /** * Used to pass attributes to the header title's DOM element. */ - headerTitle?: ColumnPassThroughOptionType; + columnTitle?: ColumnPassThroughOptionType; /** * Used to pass attributes to the sort's DOM element. */ @@ -165,23 +165,23 @@ export interface ColumnPassThroughOptions { /** * Used to pass attributes to the column filter's DOM element. */ - columnFilter?: ColumnPassThroughOptionType; + filter?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the filter input's DOM element. + * Used to pass attributes to the filter element container's DOM element. */ - filterInput?: ColumnPassThroughOptionType; + filterElementContainer?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the filter menu button's DOM element. + * Used to pass attributes to the column filter button's DOM element. */ - filterMenuButton?: ColumnPassThroughOptionType; + columnFilterButton?: ColumnPassThroughOptionType; /** * Used to pass attributes to the filter menu icon's DOM element. */ filterMenuIcon?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the header filter clear button's DOM element. + * Used to pass attributes to the column filter clear button's DOM element. */ - headerFilterClearButton?: ColumnPassThroughOptionType; + columnFilterClearButton?: ColumnPassThroughOptionType; /** * Used to pass attributes to the filter clear icon's DOM element. */ @@ -191,17 +191,17 @@ export interface ColumnPassThroughOptions { */ filterOverlay?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the filter row items' DOM element. + * Used to pass attributes to the filter constraint list's DOM element. */ - filterRowItems?: ColumnPassThroughOptionType; + filterConstraintList?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the filter row item's DOM element. + * Used to pass attributes to the filter constraint's DOM element. */ - filterRowItem?: ColumnPassThroughOptionType; + filterConstraint?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the filter separator's DOM element. + * Used to pass attributes to the filter constraint separator's DOM element. */ - filterSeparator?: ColumnPassThroughOptionType; + filterConstraintSeparator?: ColumnPassThroughOptionType; /** * Used to pass attributes to the filter operator's DOM element. */ @@ -212,18 +212,18 @@ export interface ColumnPassThroughOptions { */ filterOperatorDropdown?: SelectPassThroughOptionType; /** - * Used to pass attributes to the filter constraints' DOM element. + * Used to pass attributes to the filter rule list' DOM element. */ - filterConstraints?: ColumnPassThroughOptionType; + filterRuleList?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the filter constraint's DOM element. + * Used to pass attributes to the filter rule's DOM element. */ - filterConstraint?: ColumnPassThroughOptionType; + filterRule?: ColumnPassThroughOptionType; /** * Used to pass attributes to the Select component. * @see {@link SelectPassThroughOptionType} */ - filterMatchModeDropdown?: SelectPassThroughOptionType; + filterConstraintDropdown?: SelectPassThroughOptionType; /** * Used to pass attributes to the filter remove button container's DOM element. */ @@ -232,16 +232,16 @@ export interface ColumnPassThroughOptions { * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - filterRemoveButton?: ButtonPassThroughOptions; + filterRemoveRuleButton?: ButtonPassThroughOptions; /** - * Used to pass attributes to the filter add rule's DOM element. + * Used to pass attributes to the filter add button container's DOM element. */ - filterAddRule?: ColumnPassThroughOptionType; + filterAddButtonContainer?: ColumnPassThroughOptionType; /** * Used to pass attributes to the Button component. * @see {@link ButtonPassThroughOptions} */ - filterAddRuleButton?: ButtonPassThroughOptions; + filterAddButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the filter buttonbar's DOM element. */ @@ -256,22 +256,22 @@ export interface ColumnPassThroughOptions { * @see {@link ButtonPassThroughOptions} */ filterApplyButton?: ButtonPassThroughOptions; + /** + * Used to pass attributes to the row toggler button's DOM element. + */ + rowToggleButton?: ColumnPassThroughOptionType; + /** + * Used to pass attributes to the row toggler icon's DOM element. + */ + rowToggleIcon?: ColumnPassThroughOptionType; /** * Used to pass attributes to the body cell's DOM element. */ bodyCell?: ColumnPassThroughOptionType; /** - * Used to pass attributes to the rowgroup toggler's DOM element. + * Used to pass attributes to the reorderable row handle's DOM element. */ - rowGroupToggler?: ColumnPassThroughOptionType; - /** - * Used to pass attributes to the rowgroup toggler icon's DOM element. - */ - rowGroupTogglerIcon?: ColumnPassThroughOptionType; - /** - * Used to pass attributes to the column title's DOM element. - */ - columnTitle?: ColumnPassThroughOptionType; + reorderableRowHandle?: ColumnPassThroughOptionType; /** * Used to pass attributes to the radiobutton's DOM element. */ @@ -280,38 +280,18 @@ export interface ColumnPassThroughOptions { * Used to pass attributes to the checkbox's DOM element. */ rowCheckbox?: CheckboxPassThroughOptionType; - /** - * Used to pass attributes to the rowtoggler's DOM element. - */ - rowToggler?: ColumnPassThroughOptionType; - /** - * Used to pass attributes to the rowtoggler icon's DOM element. - */ - rowTogglerIcon?: ColumnPassThroughOptionType; /** * Used to pass attributes to the row editor init button's DOM element. */ - rowEditorInitButton?: ColumnPassThroughOptionType; - /** - * Used to pass attributes to the row editor init icon's DOM element. - */ - rowEditorInitIcon?: ColumnPassThroughOptionType; + rowEditorInit?: ColumnPassThroughOptionType; /** * Used to pass attributes to the row editor save button's DOM element. */ - rowEditorSaveButton?: ColumnPassThroughOptionType; - /** - * Used to pass attributes to the row editor save icon's DOM element. - */ - rowEditorSaveIcon?: ColumnPassThroughOptionType; + rowEditorSave?: ColumnPassThroughOptionType; /** * Used to pass attributes to the row editor cancel button's DOM element. */ - rowEditorCancelButton?: ColumnPassThroughOptionType; - /** - * Used to pass attributes to the row editor cancel icon's DOM element. - */ - rowEditorCancelIcon?: ColumnPassThroughOptionType; + rowEditorCancel?: ColumnPassThroughOptionType; /** * Used to pass attributes to the footer cell's DOM element. */ diff --git a/components/lib/datatable/BodyCell.vue b/components/lib/datatable/BodyCell.vue index b4718c323..a8d331038 100755 --- a/components/lib/datatable/BodyCell.vue +++ b/components/lib/datatable/BodyCell.vue @@ -57,9 +57,9 @@ /> diff --git a/components/lib/datatable/BodyRow.vue b/components/lib/datatable/BodyRow.vue index 88f16ea86..4b8fcbd1a 100644 --- a/components/lib/datatable/BodyRow.vue +++ b/components/lib/datatable/BodyRow.vue @@ -2,13 +2,13 @@