rez-table-listing-mui 1.3.39 → 1.3.40
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 +45 -2
- 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/common/saved-filter-modal/index.tsx +517 -0
- package/src/listing/components/filter/components/forms/components/Filter-criteria.tsx +4 -1
- package/src/listing/components/filter/components/forms/components/filter-criteria-list.tsx +1 -0
- package/src/listing/components/filter/components/forms/index.tsx +23 -14
- package/src/listing/components/filter/components/main-filter.tsx +6 -6
- package/src/listing/components/filter/components/saved-edit-filter.tsx +5 -3
- package/src/listing/components/filter/components/saved-filter.tsx +300 -124
- package/src/listing/components/filter/components/search/index.tsx +1 -0
- package/src/listing/components/filter/components/single-filter-rendering.tsx +3 -3
- package/src/listing/components/filter/index.tsx +130 -5
- package/src/listing/components/login/index.tsx +3 -6
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +3 -0
- package/src/listing/libs/utils/common.ts +1 -0
- package/src/listing/types/filter.ts +48 -1
- package/src/view/FIlterWrapper.tsx +15 -0
- package/src/view/ListingView.tsx +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,36 @@ 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;
|
|
23
53
|
}
|
|
24
54
|
type FilterInputDataTypes = "text" | "select" | "multiselect" | "date" | "year" | "number";
|
|
25
55
|
interface FilterColumnsListProps {
|
|
@@ -54,6 +84,7 @@ interface FilterColumnsDataProps {
|
|
|
54
84
|
column_list: FilterColumnsListProps[];
|
|
55
85
|
operation_list: OperationMapProps;
|
|
56
86
|
saved_filter: FilterOperationListProps[];
|
|
87
|
+
shared_filter: FilterOperationListProps[];
|
|
57
88
|
}
|
|
58
89
|
interface FilterDropdownDataProps {
|
|
59
90
|
[key: string]: FilterOperationListProps[];
|
|
@@ -188,6 +219,7 @@ interface createSavedFilterPayload {
|
|
|
188
219
|
enterprise_id?: number;
|
|
189
220
|
user_id?: number;
|
|
190
221
|
is_default: boolean;
|
|
222
|
+
description: string | null;
|
|
191
223
|
mapped_entity_type: string;
|
|
192
224
|
status?: string;
|
|
193
225
|
entity_type: string;
|
|
@@ -212,16 +244,22 @@ interface updateSavedFilterPayload {
|
|
|
212
244
|
}
|
|
213
245
|
interface FilterFormComponentProps {
|
|
214
246
|
columnsData: FilterColumnsDataProps;
|
|
247
|
+
saved_filter?: any;
|
|
248
|
+
shared_filter?: any;
|
|
215
249
|
dropdownData: FilterDropdownDataProps;
|
|
216
250
|
tableStates: CraftTableOptionsProps;
|
|
217
251
|
editMode?: boolean;
|
|
218
252
|
setEditMode?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
219
253
|
setDeleteFilterModalOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
220
|
-
|
|
254
|
+
onSaveFilterButtonClick?: () => void;
|
|
221
255
|
tabValue?: number;
|
|
222
256
|
onChangeFunction: ({ updatedFilters, filterMaster, }: onFilterChangeFunctionProps) => void;
|
|
223
257
|
filterComponentOptions?: FilterComponentOptions;
|
|
224
258
|
}
|
|
259
|
+
interface SavedFilterSharingPreference {
|
|
260
|
+
shareWithTeam?: boolean;
|
|
261
|
+
allowTeamEdit?: boolean;
|
|
262
|
+
}
|
|
225
263
|
interface FilterMasterStateProps {
|
|
226
264
|
attributes: {
|
|
227
265
|
selected: string;
|
|
@@ -231,8 +269,13 @@ interface FilterMasterStateProps {
|
|
|
231
269
|
selectedId: string;
|
|
232
270
|
selectedName: string;
|
|
233
271
|
selectedCode?: string;
|
|
272
|
+
description?: string;
|
|
273
|
+
is_shared?: boolean;
|
|
274
|
+
is_editable?: boolean;
|
|
275
|
+
is_owner?: boolean;
|
|
234
276
|
};
|
|
235
277
|
activeFilterTabIndex: number;
|
|
278
|
+
shared_filters_meta?: Record<string, SavedFilterSharingPreference>;
|
|
236
279
|
}
|
|
237
280
|
interface AttributesFilterProps {
|
|
238
281
|
columnsData: FilterColumnsDataProps;
|
|
@@ -560,4 +603,4 @@ declare const Kanban: ({ metaData, data, isLoading, KanbanCardComponent, showSet
|
|
|
560
603
|
}) => react_jsx_runtime.JSX.Element;
|
|
561
604
|
|
|
562
605
|
export { TableFilter as CraftTableFilter, TableSearch as CraftTableSearch, QuickFilterSettings as CraftTableSettings, TableTabs as CraftTableTabs, Kanban as KanbanWrapper, TableWrapper, useCraftTable, useCraftTableFilterSettings };
|
|
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 };
|
|
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, FilterSharedListProps, FilterStateProps, OperationList, OperationOption, SavedFilterSharingPreference, TableHeaderProps, TopbarOptionsProps, craftTableFilterSettingsOptionsProps, createSavedFilterPayload, deleteSavedFilterPayload, settingsOptionsProps, updateSavedFilterPayload, viewSettingsPayload };
|