baaz-custom-components 3.3.3 → 5.0.1
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.css +4791 -103
- package/dist/index.d.mts +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +550 -2
- package/dist/index.mjs +554 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -3
package/dist/index.d.mts
CHANGED
|
@@ -57,4 +57,65 @@ type BreadcrumbProps = {
|
|
|
57
57
|
|
|
58
58
|
declare const CustomBreadcrumb: ({ layoutName, includeFrom, pathname, }: BreadcrumbProps) => react.JSX.Element;
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
type SortOrder = "asc" | "desc";
|
|
61
|
+
type GridColumn = {
|
|
62
|
+
id: string;
|
|
63
|
+
header: string;
|
|
64
|
+
sortable?: boolean;
|
|
65
|
+
flexgrow?: number;
|
|
66
|
+
resize?: boolean;
|
|
67
|
+
};
|
|
68
|
+
type Filters = {
|
|
69
|
+
columnName: string;
|
|
70
|
+
operators: {
|
|
71
|
+
label: string;
|
|
72
|
+
value: "input" | "date" | "select" | "date-range" | null;
|
|
73
|
+
options?: {
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}[];
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
type GridProps = {
|
|
80
|
+
data: Record<string, any>[];
|
|
81
|
+
columns: GridColumn[];
|
|
82
|
+
sortKey?: string | null;
|
|
83
|
+
sortOrder?: SortOrder | null;
|
|
84
|
+
onSortChange?: (key: string, order: SortOrder) => void;
|
|
85
|
+
multiselect?: boolean;
|
|
86
|
+
reorder?: boolean;
|
|
87
|
+
overlay?: React.FC | string;
|
|
88
|
+
init?: any;
|
|
89
|
+
onupdatecell?: any;
|
|
90
|
+
fonts?: boolean;
|
|
91
|
+
autoConfig?: boolean | {};
|
|
92
|
+
downloadable?: boolean;
|
|
93
|
+
fileNmae?: string;
|
|
94
|
+
search: boolean;
|
|
95
|
+
searchkey: string;
|
|
96
|
+
searchValue: string;
|
|
97
|
+
onExportPdf?: () => void;
|
|
98
|
+
onExportExcel?: () => void;
|
|
99
|
+
onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
100
|
+
filterList: Filters[];
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
declare function Grid({ data, columns, sortKey, sortOrder, onSortChange, onExportPdf, onExportExcel, downloadable, fileNmae, fonts, ...rest }: GridProps): react.JSX.Element;
|
|
104
|
+
|
|
105
|
+
type Pagination$1 = {
|
|
106
|
+
totalCount: number;
|
|
107
|
+
count?: number | null;
|
|
108
|
+
currentPage: number;
|
|
109
|
+
totalPages: number;
|
|
110
|
+
pageSize: number;
|
|
111
|
+
onPageChange?: (page: number) => void;
|
|
112
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
113
|
+
showSizeChanger?: boolean;
|
|
114
|
+
sizeChangerOptions?: number[];
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
declare function Pagination({ totalCount, count, currentPage, totalPages, pageSize, onPageChange, onPageSizeChange, showSizeChanger, sizeChangerOptions, }: Pagination$1 & {
|
|
118
|
+
sizeChangerOptions?: number[];
|
|
119
|
+
}): react.JSX.Element | null;
|
|
120
|
+
|
|
121
|
+
export { type BreadcrumbProps, CustomBreadcrumb, Grid, type GridProps, Navbar, type NavbarData, type NavbarEntry, type NavbarProps, type NotificationDataTypes, Pagination, type Pagination$1 as PaginationProps, type RouteTree, type RouterAdapter, type UserData };
|
package/dist/index.d.ts
CHANGED
|
@@ -57,4 +57,65 @@ type BreadcrumbProps = {
|
|
|
57
57
|
|
|
58
58
|
declare const CustomBreadcrumb: ({ layoutName, includeFrom, pathname, }: BreadcrumbProps) => react.JSX.Element;
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
type SortOrder = "asc" | "desc";
|
|
61
|
+
type GridColumn = {
|
|
62
|
+
id: string;
|
|
63
|
+
header: string;
|
|
64
|
+
sortable?: boolean;
|
|
65
|
+
flexgrow?: number;
|
|
66
|
+
resize?: boolean;
|
|
67
|
+
};
|
|
68
|
+
type Filters = {
|
|
69
|
+
columnName: string;
|
|
70
|
+
operators: {
|
|
71
|
+
label: string;
|
|
72
|
+
value: "input" | "date" | "select" | "date-range" | null;
|
|
73
|
+
options?: {
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}[];
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
type GridProps = {
|
|
80
|
+
data: Record<string, any>[];
|
|
81
|
+
columns: GridColumn[];
|
|
82
|
+
sortKey?: string | null;
|
|
83
|
+
sortOrder?: SortOrder | null;
|
|
84
|
+
onSortChange?: (key: string, order: SortOrder) => void;
|
|
85
|
+
multiselect?: boolean;
|
|
86
|
+
reorder?: boolean;
|
|
87
|
+
overlay?: React.FC | string;
|
|
88
|
+
init?: any;
|
|
89
|
+
onupdatecell?: any;
|
|
90
|
+
fonts?: boolean;
|
|
91
|
+
autoConfig?: boolean | {};
|
|
92
|
+
downloadable?: boolean;
|
|
93
|
+
fileNmae?: string;
|
|
94
|
+
search: boolean;
|
|
95
|
+
searchkey: string;
|
|
96
|
+
searchValue: string;
|
|
97
|
+
onExportPdf?: () => void;
|
|
98
|
+
onExportExcel?: () => void;
|
|
99
|
+
onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
100
|
+
filterList: Filters[];
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
declare function Grid({ data, columns, sortKey, sortOrder, onSortChange, onExportPdf, onExportExcel, downloadable, fileNmae, fonts, ...rest }: GridProps): react.JSX.Element;
|
|
104
|
+
|
|
105
|
+
type Pagination$1 = {
|
|
106
|
+
totalCount: number;
|
|
107
|
+
count?: number | null;
|
|
108
|
+
currentPage: number;
|
|
109
|
+
totalPages: number;
|
|
110
|
+
pageSize: number;
|
|
111
|
+
onPageChange?: (page: number) => void;
|
|
112
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
113
|
+
showSizeChanger?: boolean;
|
|
114
|
+
sizeChangerOptions?: number[];
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
declare function Pagination({ totalCount, count, currentPage, totalPages, pageSize, onPageChange, onPageSizeChange, showSizeChanger, sizeChangerOptions, }: Pagination$1 & {
|
|
118
|
+
sizeChangerOptions?: number[];
|
|
119
|
+
}): react.JSX.Element | null;
|
|
120
|
+
|
|
121
|
+
export { type BreadcrumbProps, CustomBreadcrumb, Grid, type GridProps, Navbar, type NavbarData, type NavbarEntry, type NavbarProps, type NotificationDataTypes, Pagination, type Pagination$1 as PaginationProps, type RouteTree, type RouterAdapter, type UserData };
|