rez-table-listing-mui 1.3.4 → 1.3.6
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 +20 -0
- 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/forms/components/Multi-Select.tsx +1 -1
- package/src/listing/components/filter/index.tsx +234 -95
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +39 -4
- package/src/listing/types/filter.ts +26 -0
- package/src/view/ListingView.tsx +42 -93
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,21 @@ interface FilterComponentOptionsMainFilterOptions {
|
|
|
60
60
|
showSaveButton?: boolean;
|
|
61
61
|
showClearAllButton?: boolean;
|
|
62
62
|
}
|
|
63
|
+
type ButtonConfig = {
|
|
64
|
+
primary: string;
|
|
65
|
+
secondary: string;
|
|
66
|
+
};
|
|
67
|
+
type ModalConfig = {
|
|
68
|
+
title?: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
button?: ButtonConfig;
|
|
71
|
+
isInputField?: boolean;
|
|
72
|
+
};
|
|
73
|
+
type RecordFilterComponentProps = {
|
|
74
|
+
save: ModalConfig;
|
|
75
|
+
edit: ModalConfig;
|
|
76
|
+
delete: ModalConfig;
|
|
77
|
+
};
|
|
63
78
|
type FilterComponentOptions = {
|
|
64
79
|
showMainHeader?: boolean;
|
|
65
80
|
mainHeaderTitle?: string;
|
|
@@ -67,16 +82,20 @@ type FilterComponentOptions = {
|
|
|
67
82
|
showMainFilter?: boolean;
|
|
68
83
|
showSavedFilter?: boolean;
|
|
69
84
|
showAttributesFilter?: boolean;
|
|
85
|
+
isRuleEngine?: boolean;
|
|
70
86
|
tabOptions?: {
|
|
71
87
|
mainFilter?: FilterComponentOptionsMainFilterOptions;
|
|
72
88
|
};
|
|
89
|
+
recordFilterComponentProps?: RecordFilterComponentProps;
|
|
73
90
|
} | {
|
|
74
91
|
showMainHeader?: boolean;
|
|
75
92
|
mainHeaderTitle?: string;
|
|
76
93
|
showTabs?: false;
|
|
94
|
+
isRuleEngine?: boolean;
|
|
77
95
|
tabOptions?: {
|
|
78
96
|
mainFilter?: FilterComponentOptionsMainFilterOptions;
|
|
79
97
|
};
|
|
98
|
+
recordFilterComponentProps?: RecordFilterComponentProps;
|
|
80
99
|
};
|
|
81
100
|
interface FilterDrawerProps {
|
|
82
101
|
tableStates: CraftTableOptionsProps;
|
|
@@ -136,6 +155,7 @@ interface FilterStateProps {
|
|
|
136
155
|
};
|
|
137
156
|
filter_entity_type?: string;
|
|
138
157
|
filter_entity_name?: string;
|
|
158
|
+
datasource_list?: string | null;
|
|
139
159
|
}
|
|
140
160
|
interface createSavedFilterPayload {
|
|
141
161
|
name: string;
|