rez-table-listing-mui 1.3.3 → 1.3.4
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/dist/index.d.ts +7 -14
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/listing/components/filter/components/attributes-filter.tsx +8 -7
- package/src/listing/components/filter/components/forms/components/Date.tsx +1 -1
- package/src/listing/components/filter/components/forms/components/Dropdown.tsx +7 -6
- package/src/listing/components/filter/components/forms/components/Filter-criteria.tsx +5 -3
- package/src/listing/components/filter/components/forms/components/Multi-Select.tsx +1 -1
- package/src/listing/components/filter/components/forms/components/Select.tsx +1 -1
- package/src/listing/components/filter/components/forms/components/Textfield.tsx +2 -2
- package/src/listing/components/filter/components/forms/index.tsx +33 -23
- package/src/listing/components/filter/index.tsx +3 -1
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +2 -5
- package/src/listing/libs/utils/apiColumn.ts +3 -1
- package/src/listing/types/filter.ts +7 -16
- package/src/view/FIlterWrapper.tsx +40 -19
- package/src/view/ListingView.tsx +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ interface FilterComponentOptionsMainFilterOptions {
|
|
|
62
62
|
}
|
|
63
63
|
type FilterComponentOptions = {
|
|
64
64
|
showMainHeader?: boolean;
|
|
65
|
+
mainHeaderTitle?: string;
|
|
65
66
|
showTabs?: true;
|
|
66
67
|
showMainFilter?: boolean;
|
|
67
68
|
showSavedFilter?: boolean;
|
|
@@ -71,6 +72,7 @@ type FilterComponentOptions = {
|
|
|
71
72
|
};
|
|
72
73
|
} | {
|
|
73
74
|
showMainHeader?: boolean;
|
|
75
|
+
mainHeaderTitle?: string;
|
|
74
76
|
showTabs?: false;
|
|
75
77
|
tabOptions?: {
|
|
76
78
|
mainFilter?: FilterComponentOptionsMainFilterOptions;
|
|
@@ -121,8 +123,8 @@ interface FilterStateProps {
|
|
|
121
123
|
filter_operator: string;
|
|
122
124
|
filter_value: string | string[];
|
|
123
125
|
id: string | number;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
filter_attribute_name: string | undefined;
|
|
127
|
+
filter_attribute_data_type: FilterInputDataTypes | undefined;
|
|
126
128
|
attribute_key?: string;
|
|
127
129
|
dropdown_list?: {
|
|
128
130
|
label?: string;
|
|
@@ -144,7 +146,7 @@ interface createSavedFilterPayload {
|
|
|
144
146
|
mapped_entity_type: string;
|
|
145
147
|
status?: string;
|
|
146
148
|
entity_type: string;
|
|
147
|
-
filterDetails:
|
|
149
|
+
filterDetails: FilterStateProps[];
|
|
148
150
|
}
|
|
149
151
|
interface deleteSavedFilterPayload {
|
|
150
152
|
name: string;
|
|
@@ -161,17 +163,7 @@ interface updateSavedFilterPayload {
|
|
|
161
163
|
status?: string;
|
|
162
164
|
entity_type: string;
|
|
163
165
|
mapped_entity_type: string;
|
|
164
|
-
filterDetails:
|
|
165
|
-
}
|
|
166
|
-
interface FilterDetail {
|
|
167
|
-
filter_attribute: string;
|
|
168
|
-
filter_operator: string;
|
|
169
|
-
filter_value: string | string[];
|
|
170
|
-
}
|
|
171
|
-
interface FilterDetail {
|
|
172
|
-
filter_attribute: string;
|
|
173
|
-
filter_operator: string;
|
|
174
|
-
filter_value: string | string[];
|
|
166
|
+
filterDetails: FilterStateProps[];
|
|
175
167
|
}
|
|
176
168
|
interface FilterFormComponentProps {
|
|
177
169
|
columnsData: FilterColumnsDataProps;
|
|
@@ -227,6 +219,7 @@ interface FilterDataMainFilterEntityWiseCriteriaProps {
|
|
|
227
219
|
name: string;
|
|
228
220
|
attribute_key: string;
|
|
229
221
|
element_type: FilterInputDataTypes;
|
|
222
|
+
datasource_list: any;
|
|
230
223
|
}
|
|
231
224
|
interface FilterDataProps {
|
|
232
225
|
mainFilter?: {
|