Skip to content

Commit

Permalink
Fix #6233: FilterMatchMode typescript updates
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Mar 26, 2024
1 parent 54df499 commit af45c04
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions components/lib/column/column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ interface ColumnFilterMatchModeChangeEvent {
/**
* Type of filter match.
*/
matchMode: FilterMatchMode;
matchMode: FilterMatchMode | string;
}

/**
Expand Down Expand Up @@ -964,7 +964,7 @@ export interface ColumnProps {
/**
* Defines filterMatchMode; "startsWith", "contains", "endsWith", "equals", "notEquals", "in", "lt", "lte", "gt", "gte" and "custom".
*/
filterMatchMode?: FilterMatchMode | undefined;
filterMatchMode?: FilterMatchMode | string | undefined;
/**
* An array of label-value pairs to override the global match mode options.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dropdown/dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export interface DropdownProps extends Omit<React.DetailedHTMLProps<React.InputH
*/
filterLocale?: string | undefined;
/**
* Defines how the items are filtered.
* Defines how the items are filtered, valid values are "contains", (default) "startsWith", "endsWith", "equals" and "notEquals".
* @defaultValue contains
*/
filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | 'equals' | 'notEquals' | undefined;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/listbox/listbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ export interface ListBoxProps extends Omit<React.DetailedHTMLProps<React.InputHT
*/
filterLocale?: string | undefined;
/**
* Defines how the items are filtered, valid values are "contains" (default), "startsWith", "endsWith", "equals" and "notEquals".
* Defines how the items are filtered, valid values are "contains", (default) "startsWith", "endsWith", "equals" and "notEquals".
* @defaultValue contains
*/
filterMatchMode?: string | undefined;
filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | 'equals' | 'notEquals' | undefined;
/**
* Placeholder text to show when filter input is empty.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/multiselect/multiselect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export interface MultiSelectProps extends Omit<React.DetailedHTMLProps<React.Inp
* Defines how the items are filtered, valid values are "contains", (default) "startsWith", "endsWith", "equals" and "notEquals".
* @defaultValue contains
*/
filterMatchMode?: string | undefined;
filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | 'equals' | 'notEquals' | undefined;
/**
* Placeholder text to show when filter input is empty.
*/
Expand Down
4 changes: 2 additions & 2 deletions components/lib/orderlist/orderlist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ export interface OrderListProps extends Omit<React.DetailedHTMLProps<React.HTMLA
*/
filterBy?: string | undefined;
/**
* Defines how the items are filtered, valid values are "contains" (default), "startsWith", "endsWith", "equals" and "notEquals".
* Defines how the items are filtered, valid values are "contains", (default) "startsWith", "endsWith", "equals" and "notEquals".
* @defaultValue contains
*/
filterMatchMode?: string | undefined;
filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | 'equals' | 'notEquals' | undefined;
/**
* Placeholder text to show when filter input is empty.
*/
Expand Down
4 changes: 2 additions & 2 deletions components/lib/picklist/picklist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ export interface PickListProps {
*/
filterBy?: string | undefined;
/**
* Defines how the items are filtered, valid values are "contains" (default) "startsWith", "endsWith", "equals", "notEquals", "in", "notIn", "lt", "lte", "gt" and "gte".
* Defines how the items are filtered, valid values are "contains", (default) "startsWith", "endsWith", "equals" and "notEquals".
* @defaultValue contains
*/
filterMatchMode?: string | undefined;
filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | 'equals' | 'notEquals' | undefined;
/**
* Locale to use in filtering. The default locale is the host environment's current locale.
* @defaultValue undefined
Expand Down

0 comments on commit af45c04

Please sign in to comment.