rez-table-listing-mui 1.3.42 → 1.3.43
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 +5 -48
- 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 +2 -2
- package/src/listing/components/filter/components/forms/components/Dropdown.tsx +2 -2
- package/src/listing/components/filter/components/forms/components/Filter-criteria.tsx +7 -9
- package/src/listing/components/filter/components/forms/components/Textfield.tsx +4 -2
- package/src/listing/components/filter/components/forms/components/filter-criteria-list.tsx +0 -1
- package/src/listing/components/filter/components/forms/index.tsx +14 -23
- package/src/listing/components/filter/components/forms/utils/filter-date-input-resolver.tsx +3 -3
- package/src/listing/components/filter/components/main-filter.tsx +6 -6
- package/src/listing/components/filter/components/saved-edit-filter.tsx +3 -5
- package/src/listing/components/filter/components/saved-filter.tsx +124 -300
- package/src/listing/components/filter/components/search/index.tsx +0 -1
- package/src/listing/components/filter/components/single-filter-rendering.tsx +3 -3
- package/src/listing/components/filter/index.tsx +5 -130
- package/src/listing/components/login/index.tsx +6 -3
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +5 -8
- package/src/listing/libs/utils/apiColumn.ts +3 -3
- package/src/listing/libs/utils/common.ts +0 -1
- package/src/listing/libs/utils/hydrate-saved-filters.ts +2 -2
- package/src/listing/types/filter.ts +4 -51
- package/src/view/FIlterWrapper.tsx +0 -15
- package/src/view/ListingView.tsx +2 -2
- package/src/listing/components/common/saved-filter-modal/index.tsx +0 -517
package/dist/index.d.ts
CHANGED
|
@@ -20,36 +20,6 @@ interface FilterOperationListProps {
|
|
|
20
20
|
code: string;
|
|
21
21
|
label: string;
|
|
22
22
|
value: string;
|
|
23
|
-
is_shared: boolean;
|
|
24
|
-
is_editable: boolean;
|
|
25
|
-
is_owner: boolean;
|
|
26
|
-
created_by: string;
|
|
27
|
-
description: string | null;
|
|
28
|
-
}
|
|
29
|
-
interface FilterSharedListProps {
|
|
30
|
-
created_date: string;
|
|
31
|
-
entity_type: string;
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
status: string;
|
|
35
|
-
parent_type: string | null;
|
|
36
|
-
parent_id: string | number | null;
|
|
37
|
-
code: string;
|
|
38
|
-
created_by: string;
|
|
39
|
-
modified_by: string | null;
|
|
40
|
-
modified_date: string | null;
|
|
41
|
-
enterprise_id: number;
|
|
42
|
-
organization_id: number;
|
|
43
|
-
appcode: string | null;
|
|
44
|
-
level_id: string;
|
|
45
|
-
level_type: string;
|
|
46
|
-
mapped_entity_type: string;
|
|
47
|
-
user_id: number;
|
|
48
|
-
is_default: boolean;
|
|
49
|
-
filter_scope: string;
|
|
50
|
-
is_shared: boolean;
|
|
51
|
-
is_editable: boolean | string;
|
|
52
|
-
description: string | null;
|
|
53
23
|
}
|
|
54
24
|
type FilterInputDataTypes = "text" | "select" | "multiselect" | "date" | "year" | "number";
|
|
55
25
|
interface FilterColumnsListProps {
|
|
@@ -75,7 +45,7 @@ interface FilterColumnsListProps {
|
|
|
75
45
|
searchable: string | null;
|
|
76
46
|
attribute_key: string;
|
|
77
47
|
sort_type: string | null;
|
|
78
|
-
|
|
48
|
+
element_type: FilterInputDataTypes;
|
|
79
49
|
data_source_type: string | null;
|
|
80
50
|
datasource_list: any | null;
|
|
81
51
|
visible: string;
|
|
@@ -84,7 +54,6 @@ interface FilterColumnsDataProps {
|
|
|
84
54
|
column_list: FilterColumnsListProps[];
|
|
85
55
|
operation_list: OperationMapProps;
|
|
86
56
|
saved_filter: FilterOperationListProps[];
|
|
87
|
-
shared_filter: FilterOperationListProps[];
|
|
88
57
|
}
|
|
89
58
|
interface FilterDropdownDataProps {
|
|
90
59
|
[key: string]: FilterOperationListProps[];
|
|
@@ -187,7 +156,7 @@ interface FilterStateProps {
|
|
|
187
156
|
filter_operator: string;
|
|
188
157
|
filter_value: string | string[];
|
|
189
158
|
filter_attribute_name: string | undefined;
|
|
190
|
-
|
|
159
|
+
filter_attribute_element_type: FilterInputDataTypes | undefined;
|
|
191
160
|
attribute_key?: string;
|
|
192
161
|
dropdown_list?: {
|
|
193
162
|
label?: string;
|
|
@@ -219,7 +188,6 @@ interface createSavedFilterPayload {
|
|
|
219
188
|
enterprise_id?: number;
|
|
220
189
|
user_id?: number;
|
|
221
190
|
is_default: boolean;
|
|
222
|
-
description: string | null;
|
|
223
191
|
mapped_entity_type: string;
|
|
224
192
|
status?: string;
|
|
225
193
|
entity_type: string;
|
|
@@ -244,22 +212,16 @@ interface updateSavedFilterPayload {
|
|
|
244
212
|
}
|
|
245
213
|
interface FilterFormComponentProps {
|
|
246
214
|
columnsData: FilterColumnsDataProps;
|
|
247
|
-
saved_filter?: any;
|
|
248
|
-
shared_filter?: any;
|
|
249
215
|
dropdownData: FilterDropdownDataProps;
|
|
250
216
|
tableStates: CraftTableOptionsProps;
|
|
251
217
|
editMode?: boolean;
|
|
252
218
|
setEditMode?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
253
219
|
setDeleteFilterModalOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
254
|
-
|
|
220
|
+
setSavedFilterModalOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
255
221
|
tabValue?: number;
|
|
256
222
|
onChangeFunction: ({ updatedFilters, filterMaster, }: onFilterChangeFunctionProps) => void;
|
|
257
223
|
filterComponentOptions?: FilterComponentOptions;
|
|
258
224
|
}
|
|
259
|
-
interface SavedFilterSharingPreference {
|
|
260
|
-
shareWithTeam?: boolean;
|
|
261
|
-
allowTeamEdit?: boolean;
|
|
262
|
-
}
|
|
263
225
|
interface FilterMasterStateProps {
|
|
264
226
|
attributes: {
|
|
265
227
|
selected: string;
|
|
@@ -269,13 +231,8 @@ interface FilterMasterStateProps {
|
|
|
269
231
|
selectedId: string;
|
|
270
232
|
selectedName: string;
|
|
271
233
|
selectedCode?: string;
|
|
272
|
-
description?: string;
|
|
273
|
-
is_shared?: boolean;
|
|
274
|
-
is_editable?: boolean;
|
|
275
|
-
is_owner?: boolean;
|
|
276
234
|
};
|
|
277
235
|
activeFilterTabIndex: number;
|
|
278
|
-
shared_filters_meta?: Record<string, SavedFilterSharingPreference>;
|
|
279
236
|
}
|
|
280
237
|
interface AttributesFilterProps {
|
|
281
238
|
columnsData: FilterColumnsDataProps;
|
|
@@ -309,7 +266,7 @@ interface FilterDataMainFilterEntityWiseCriteriaProps {
|
|
|
309
266
|
attribute_key: string;
|
|
310
267
|
element_type: FilterInputDataTypes;
|
|
311
268
|
datasource_list: any;
|
|
312
|
-
|
|
269
|
+
element_type: FilterInputDataTypes;
|
|
313
270
|
}
|
|
314
271
|
interface FilterDataProps {
|
|
315
272
|
mainFilter?: {
|
|
@@ -603,4 +560,4 @@ declare const Kanban: ({ metaData, data, isLoading, KanbanCardComponent, showSet
|
|
|
603
560
|
}) => react_jsx_runtime.JSX.Element;
|
|
604
561
|
|
|
605
562
|
export { TableFilter as CraftTableFilter, TableSearch as CraftTableSearch, QuickFilterSettings as CraftTableSettings, TableTabs as CraftTableTabs, Kanban as KanbanWrapper, TableWrapper, useCraftTable, useCraftTableFilterSettings };
|
|
606
|
-
export type { AttributesFilterProps, AttributesFilterSelectProps, CraftTableComponentProps, CraftTableFeatureProps, CraftTableOptionsProps, CraftTablePaginationProps, CraftTableProps, CustomRenderContext, CustomRenderFnMap, FilterColumnsDataProps, FilterColumnsListProps, FilterComponentOptions, FilterComponentOptionsMainFilterOptions, FilterComponentOptionsSavedFilterOptions, FilterCriteria, FilterDataMainFilterEntityListProps, FilterDataMainFilterEntityWiseCriteriaProps, FilterDataProps, FilterDrawerProps, FilterDropdownDataProps, FilterFormComponentProps, FilterInputDataTypes, FilterMasterStateProps, FilterOperationListProps, FilterOptionsProps,
|
|
563
|
+
export type { AttributesFilterProps, AttributesFilterSelectProps, CraftTableComponentProps, CraftTableFeatureProps, CraftTableOptionsProps, CraftTablePaginationProps, CraftTableProps, CustomRenderContext, CustomRenderFnMap, FilterColumnsDataProps, FilterColumnsListProps, FilterComponentOptions, FilterComponentOptionsMainFilterOptions, FilterComponentOptionsSavedFilterOptions, FilterCriteria, FilterDataMainFilterEntityListProps, FilterDataMainFilterEntityWiseCriteriaProps, FilterDataProps, FilterDrawerProps, FilterDropdownDataProps, FilterFormComponentProps, FilterInputDataTypes, FilterMasterStateProps, FilterOperationListProps, FilterOptionsProps, FilterStateProps, OperationList, OperationOption, TableHeaderProps, TopbarOptionsProps, craftTableFilterSettingsOptionsProps, createSavedFilterPayload, deleteSavedFilterPayload, settingsOptionsProps, updateSavedFilterPayload, viewSettingsPayload };
|