@charlesgomes/leafcode-shared-lib-react 1.0.51 → 1.0.53
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.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +611 -633
- package/dist/index.mjs +608 -630
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -53,7 +53,8 @@ type IDataTableProps<T extends object> = {
|
|
|
53
53
|
sortOrderInitial?: 1 | -1;
|
|
54
54
|
isMultiSelectionMode?: boolean;
|
|
55
55
|
isLanguagePtBr?: boolean;
|
|
56
|
-
|
|
56
|
+
state?: TableState;
|
|
57
|
+
onStateChange?: (state: TableState) => void;
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
interface PaginatedResponse<T> {
|
|
@@ -86,7 +87,15 @@ interface ColumnCustom<T> {
|
|
|
86
87
|
alignFrozen?: "left" | "right";
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
type TableState = {
|
|
91
|
+
page: number;
|
|
92
|
+
rows: number;
|
|
93
|
+
sortField?: string;
|
|
94
|
+
sortOrder?: 1 | -1;
|
|
95
|
+
filter?: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare function DataTableAdvancedFilter<T extends object>({ queryKey, mutationFn, columns, initFilters, onNew, onEdit, onDelete, customActions, customActionsColums, disablePagination, sortFieldInitial, sortOrderInitial, isMultiSelectionMode, isLanguagePtBr, }: IDataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
90
99
|
|
|
91
100
|
interface IItemProps {
|
|
92
101
|
value: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,8 @@ type IDataTableProps<T extends object> = {
|
|
|
53
53
|
sortOrderInitial?: 1 | -1;
|
|
54
54
|
isMultiSelectionMode?: boolean;
|
|
55
55
|
isLanguagePtBr?: boolean;
|
|
56
|
-
|
|
56
|
+
state?: TableState;
|
|
57
|
+
onStateChange?: (state: TableState) => void;
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
interface PaginatedResponse<T> {
|
|
@@ -86,7 +87,15 @@ interface ColumnCustom<T> {
|
|
|
86
87
|
alignFrozen?: "left" | "right";
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
type TableState = {
|
|
91
|
+
page: number;
|
|
92
|
+
rows: number;
|
|
93
|
+
sortField?: string;
|
|
94
|
+
sortOrder?: 1 | -1;
|
|
95
|
+
filter?: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare function DataTableAdvancedFilter<T extends object>({ queryKey, mutationFn, columns, initFilters, onNew, onEdit, onDelete, customActions, customActionsColums, disablePagination, sortFieldInitial, sortOrderInitial, isMultiSelectionMode, isLanguagePtBr, }: IDataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
90
99
|
|
|
91
100
|
interface IItemProps {
|
|
92
101
|
value: string;
|