rez-table-listing-mui 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -54,15 +54,14 @@ const FilterCriteria = ({
54
54
  const handleAddFilter = (
55
55
  attribute: FilterDataMainFilterEntityWiseCriteriaProps
56
56
  ) => {
57
- const dropdownOptions =
58
- columnsData?.operation_list[attribute?.element_type];
57
+ const dropdownOptions = columnsData?.operation_list[attribute?.data_type];
59
58
 
60
- const defaultValue = attribute.element_type === "multiselect" ? [] : "";
59
+ const defaultValue = attribute.data_type === "multiselect" ? [] : "";
61
60
 
62
61
  const defaultOperator = dropdownOptions?.[0]?.value || "";
63
62
 
64
63
  const matchingDropdownList =
65
- columnsData?.operation_list[attribute.element_type] || [];
64
+ columnsData?.operation_list[attribute.data_type] || [];
66
65
 
67
66
  const newFilter = {
68
67
  filter_attribute: attribute.attribute_key,
@@ -75,7 +74,8 @@ const FilterCriteria = ({
75
74
  ...newFilter,
76
75
  id: attribute?.id,
77
76
  filter_attribute_name: attribute?.name,
78
- filter_attribute_data_type: attribute?.element_type,
77
+ filter_attribute_data_type:
78
+ attribute?.data_type || attribute?.element_type,
79
79
  datasource_list: attribute?.datasource_list,
80
80
  dropdown_list: matchingDropdownList,
81
81
  filter_entity_name: selectedFilterEntity?.label,
@@ -274,6 +274,7 @@ export interface FilterDataMainFilterEntityWiseCriteriaProps {
274
274
  attribute_key: string;
275
275
  element_type: FilterInputDataTypes;
276
276
  datasource_list: any;
277
+ data_type: FilterInputDataTypes;
277
278
  }
278
279
 
279
280
  export interface FilterDataProps {