rez-table-listing-mui 1.3.8 → 1.3.9
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 +10 -1
- 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/App.tsx +12 -0
- package/src/listing/components/filter/components/saved-edit-filter.tsx +26 -22
- package/src/listing/components/filter/components/saved-filter.tsx +13 -6
- package/src/listing/components/filter/components/single-filter-rendering.tsx +74 -0
- package/src/listing/components/filter/index.tsx +59 -32
- package/src/listing/components/index.scss +3 -3
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +1 -0
- package/src/listing/libs/hooks/useEntityTableHooks.ts +1 -1
- package/src/listing/libs/utils/apiColumn.ts +1 -1
- package/src/listing/types/filter.ts +11 -0
- package/src/testing-grounds/filter-in-modal/saved-filter-modal.tsx +181 -0
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ type OperationMapProps = {
|
|
|
17
17
|
[key in FilterInputDataTypes]?: OperationProps[];
|
|
18
18
|
};
|
|
19
19
|
interface FilterOperationListProps {
|
|
20
|
+
code: string;
|
|
20
21
|
label: string;
|
|
21
22
|
value: string;
|
|
22
23
|
}
|
|
@@ -65,6 +66,10 @@ interface FilterComponentOptionsMainFilterOptions {
|
|
|
65
66
|
onClick: () => void;
|
|
66
67
|
} & Partial<ButtonProps>>;
|
|
67
68
|
}
|
|
69
|
+
interface FilterComponentOptionsSavedFilterOptions {
|
|
70
|
+
showBackButton?: boolean;
|
|
71
|
+
editMode?: boolean;
|
|
72
|
+
}
|
|
68
73
|
type ButtonConfig = {
|
|
69
74
|
primary: string;
|
|
70
75
|
secondary: string;
|
|
@@ -80,9 +85,12 @@ type RecordFilterComponentProps = {
|
|
|
80
85
|
edit: ModalConfig;
|
|
81
86
|
delete: ModalConfig;
|
|
82
87
|
};
|
|
88
|
+
type TabType = "main" | "saved" | "attributes";
|
|
83
89
|
interface FilterComponentTabOptions {
|
|
84
90
|
mainFilter?: FilterComponentOptionsMainFilterOptions;
|
|
91
|
+
savedFilter?: FilterComponentOptionsSavedFilterOptions;
|
|
85
92
|
isSingleFilter?: boolean;
|
|
93
|
+
showFilter?: TabType;
|
|
86
94
|
}
|
|
87
95
|
type FilterComponentOptions = {
|
|
88
96
|
showTabs?: true;
|
|
@@ -210,6 +218,7 @@ interface FilterMasterStateProps {
|
|
|
210
218
|
saved_filters: {
|
|
211
219
|
selectedId: string;
|
|
212
220
|
selectedName: string;
|
|
221
|
+
selectedCode?: string;
|
|
213
222
|
};
|
|
214
223
|
activeFilterTabIndex: number;
|
|
215
224
|
}
|
|
@@ -526,4 +535,4 @@ declare const Kanban: ({ metaData, data, isLoading, KanbanCardComponent, showSet
|
|
|
526
535
|
}) => react_jsx_runtime.JSX.Element;
|
|
527
536
|
|
|
528
537
|
export { TableFilter as CraftTableFilter, TableSearch as CraftTableSearch, QuickFilterSettings as CraftTableSettings, TableTabs as CraftTableTabs, Kanban as KanbanWrapper, TableWrapper, useCraftTable, useCraftTableFilterSettings };
|
|
529
|
-
export type { AttributesFilterProps, AttributesFilterSelectProps, CraftTableComponentProps, CraftTableFeatureProps, CraftTableOptionsProps, CraftTablePaginationProps, CraftTableProps, CustomRenderContext, CustomRenderFnMap, FilterColumnsDataProps, FilterColumnsListProps, FilterComponentOptions, FilterComponentOptionsMainFilterOptions, FilterCriteria, FilterDataMainFilterEntityListProps, FilterDataMainFilterEntityWiseCriteriaProps, FilterDataProps, FilterDrawerProps, FilterDropdownDataProps, FilterFormComponentProps, FilterInputDataTypes, FilterMasterStateProps, FilterOperationListProps, FilterOptionsProps, FilterStateProps, TableHeaderProps, TopbarOptionsProps, craftTableFilterSettingsOptionsProps, createSavedFilterPayload, deleteSavedFilterPayload, settingsOptionsProps, updateSavedFilterPayload, viewSettingsPayload };
|
|
538
|
+
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, TabType, TableHeaderProps, TopbarOptionsProps, craftTableFilterSettingsOptionsProps, createSavedFilterPayload, deleteSavedFilterPayload, settingsOptionsProps, updateSavedFilterPayload, viewSettingsPayload };
|