rez-table-listing-mui 1.0.33 → 1.0.34
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 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/App.tsx +31 -29
- package/src/components/filter/components/attributes-filter.tsx +186 -13
- package/src/components/filter/components/forms/components/Date.tsx +3 -0
- package/src/components/filter/components/forms/components/Dropdown.tsx +12 -7
- package/src/components/filter/components/forms/components/Filter-criteria.tsx +38 -44
- package/src/components/filter/components/forms/components/Multi-Select.tsx +6 -1
- package/src/components/filter/components/forms/components/Select.tsx +9 -0
- package/src/components/filter/components/forms/components/Textfield.tsx +6 -0
- package/src/components/filter/components/forms/index.tsx +135 -228
- package/src/components/filter/components/main-filter.tsx +2 -7
- package/src/components/filter/components/saved-edit-filter.tsx +15 -17
- package/src/components/filter/components/saved-filter.tsx +2 -1
- package/src/components/filter/components/search/index.tsx +0 -1
- package/src/components/filter/components/tabs/custom-tab-panel.tsx +7 -3
- package/src/components/filter/components/tabs/index.tsx +8 -8
- package/src/components/filter/index.tsx +187 -172
- package/src/components/filter/style.ts +106 -0
- package/src/components/index-table.tsx +87 -63
- package/src/components/index.scss +33 -0
- package/src/components/topbar/index.tsx +7 -33
- package/src/index.ts +2 -0
- package/src/libs/utils/common.ts +1 -1
- package/src/types/table.ts +7 -2
- package/src/components/filter/components/forms/components/Attributes-select.tsx +0 -192
package/dist/index.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ interface TopbarOptionsProps {
|
|
|
154
154
|
showFilterToggle?: boolean;
|
|
155
155
|
searchValue?: string;
|
|
156
156
|
onSearchChange?: (val: string) => void;
|
|
157
|
-
|
|
157
|
+
onFilterButtonClick?: () => void;
|
|
158
158
|
}
|
|
159
159
|
interface CustomRenderContext<T> {
|
|
160
160
|
value: unknown;
|
|
@@ -175,6 +175,10 @@ type CustomColumnDef<T> = ColumnDef<T> & {
|
|
|
175
175
|
interface CraftTableStyleProps {
|
|
176
176
|
wrapperStyle?: React.CSSProperties;
|
|
177
177
|
}
|
|
178
|
+
interface FilterOptionsProps {
|
|
179
|
+
show?: boolean;
|
|
180
|
+
component: React.ReactNode;
|
|
181
|
+
}
|
|
178
182
|
interface CraftTableProps<T> {
|
|
179
183
|
data: T[];
|
|
180
184
|
columns: CustomColumnDef<T>[];
|
|
@@ -190,6 +194,7 @@ interface CraftTableProps<T> {
|
|
|
190
194
|
shouldHideColumn?: (accessorKey?: string) => boolean;
|
|
191
195
|
styleOptions?: CraftTableStyleProps;
|
|
192
196
|
emptyListComponent?: React.ReactNode;
|
|
197
|
+
filterOptions?: FilterOptionsProps;
|
|
193
198
|
}
|
|
194
199
|
interface CraftTableComponentProps<T> {
|
|
195
200
|
table: Table<T>;
|
|
@@ -208,7 +213,7 @@ interface TableHeaderProps<T> {
|
|
|
208
213
|
tableStates: CraftTableOptionsProps;
|
|
209
214
|
}
|
|
210
215
|
|
|
211
|
-
declare function TableWrapper<T>({ data, columns, tableStates, paginationOptions, featureOptions, topbarOptions, nestedComponent, loadingOptions, customRenderFn, shouldHideColumn, emptyListComponent, }: CraftTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
216
|
+
declare function TableWrapper<T>({ data, columns, tableStates, paginationOptions, featureOptions, topbarOptions, nestedComponent, loadingOptions, customRenderFn, shouldHideColumn, emptyListComponent, filterOptions, }: CraftTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
212
217
|
|
|
213
218
|
declare function useCraftTable(paginationPageSize?: number): CraftTableOptionsProps;
|
|
214
219
|
|
|
@@ -225,5 +230,7 @@ interface TableTabsProps {
|
|
|
225
230
|
}
|
|
226
231
|
declare function TableTabs({ loading, tabsData, activeTab, onClick, tableStates, }: TableTabsProps): react_jsx_runtime.JSX.Element;
|
|
227
232
|
|
|
228
|
-
|
|
233
|
+
declare function TableFilter({ onClose, columnsData, tableStates, onDeleteFilter, onSaveFilter, onUpdateFilter, dropdownData, }: FilterDrawerProps): react_jsx_runtime.JSX.Element;
|
|
234
|
+
|
|
235
|
+
export { TableFilter as CraftTableFilter, TableTabs as CraftTableTabs, TableWrapper, useCraftTable };
|
|
229
236
|
export type { CraftTableComponentProps, CraftTableFeatureProps, CraftTableOptionsProps, CraftTablePaginationProps, CraftTableProps, CustomRenderContext, CustomRenderFnMap, TableHeaderProps, TopbarOptionsProps };
|