rez-table-listing-mui 1.3.30 → 1.3.31
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 +39 -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 +480 -0
- package/src/listing/components/filter/components/forms/components/Date.tsx +1 -1
- package/src/listing/components/filter/components/forms/components/Dropdown.tsx +135 -2
- package/src/listing/components/filter/components/forms/components/Textfield.tsx +1 -4
- package/src/listing/components/filter/components/forms/index.tsx +60 -108
- package/src/listing/components/filter/components/forms/utils/filter-date-input-resolver.tsx +48 -24
- 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 +205 -127
- package/src/listing/components/filter/components/single-filter-rendering.tsx +3 -3
- package/src/listing/components/filter/index.tsx +107 -5
- package/src/listing/components/login/index.tsx +5 -8
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +3 -0
- package/src/listing/types/filter.ts +40 -1
- package/src/view/FIlterWrapper.tsx +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,33 @@ interface FilterOperationListProps {
|
|
|
20
20
|
code: string;
|
|
21
21
|
label: string;
|
|
22
22
|
value: string;
|
|
23
|
+
is_shared: boolean;
|
|
24
|
+
is_editable: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface FilterSharedListProps {
|
|
27
|
+
created_date: string;
|
|
28
|
+
entity_type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
status: string;
|
|
32
|
+
parent_type: string | null;
|
|
33
|
+
parent_id: string | number | null;
|
|
34
|
+
code: string;
|
|
35
|
+
created_by: string;
|
|
36
|
+
modified_by: string | null;
|
|
37
|
+
modified_date: string | null;
|
|
38
|
+
enterprise_id: number;
|
|
39
|
+
organization_id: number;
|
|
40
|
+
appcode: string | null;
|
|
41
|
+
level_id: string;
|
|
42
|
+
level_type: string;
|
|
43
|
+
mapped_entity_type: string;
|
|
44
|
+
user_id: number;
|
|
45
|
+
is_default: boolean;
|
|
46
|
+
filter_scope: string;
|
|
47
|
+
is_shared: boolean;
|
|
48
|
+
is_editable: boolean | string;
|
|
49
|
+
description: string | null;
|
|
23
50
|
}
|
|
24
51
|
type FilterInputDataTypes = "text" | "select" | "multiselect" | "date" | "year" | "number";
|
|
25
52
|
interface FilterColumnsListProps {
|
|
@@ -54,6 +81,7 @@ interface FilterColumnsDataProps {
|
|
|
54
81
|
column_list: FilterColumnsListProps[];
|
|
55
82
|
operation_list: OperationMapProps;
|
|
56
83
|
saved_filter: FilterOperationListProps[];
|
|
84
|
+
shared_filter: FilterOperationListProps[];
|
|
57
85
|
}
|
|
58
86
|
interface FilterDropdownDataProps {
|
|
59
87
|
[key: string]: FilterOperationListProps[];
|
|
@@ -212,16 +240,22 @@ interface updateSavedFilterPayload {
|
|
|
212
240
|
}
|
|
213
241
|
interface FilterFormComponentProps {
|
|
214
242
|
columnsData: FilterColumnsDataProps;
|
|
243
|
+
saved_filter?: any;
|
|
244
|
+
shared_filter?: any;
|
|
215
245
|
dropdownData: FilterDropdownDataProps;
|
|
216
246
|
tableStates: CraftTableOptionsProps;
|
|
217
247
|
editMode?: boolean;
|
|
218
248
|
setEditMode?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
219
249
|
setDeleteFilterModalOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
220
|
-
|
|
250
|
+
onSaveFilterButtonClick?: () => void;
|
|
221
251
|
tabValue?: number;
|
|
222
252
|
onChangeFunction: ({ updatedFilters, filterMaster, }: onFilterChangeFunctionProps) => void;
|
|
223
253
|
filterComponentOptions?: FilterComponentOptions;
|
|
224
254
|
}
|
|
255
|
+
interface SavedFilterSharingPreference {
|
|
256
|
+
shareWithTeam?: boolean;
|
|
257
|
+
allowTeamEdit?: boolean;
|
|
258
|
+
}
|
|
225
259
|
interface FilterMasterStateProps {
|
|
226
260
|
attributes: {
|
|
227
261
|
selected: string;
|
|
@@ -231,8 +265,11 @@ interface FilterMasterStateProps {
|
|
|
231
265
|
selectedId: string;
|
|
232
266
|
selectedName: string;
|
|
233
267
|
selectedCode?: string;
|
|
268
|
+
is_shared?: boolean;
|
|
269
|
+
is_editable?: boolean;
|
|
234
270
|
};
|
|
235
271
|
activeFilterTabIndex: number;
|
|
272
|
+
shared_filters_meta?: Record<string, SavedFilterSharingPreference>;
|
|
236
273
|
}
|
|
237
274
|
interface AttributesFilterProps {
|
|
238
275
|
columnsData: FilterColumnsDataProps;
|
|
@@ -560,4 +597,4 @@ declare const Kanban: ({ metaData, data, isLoading, KanbanCardComponent, showSet
|
|
|
560
597
|
}) => react_jsx_runtime.JSX.Element;
|
|
561
598
|
|
|
562
599
|
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 };
|
|
600
|
+
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 };
|