jb-grid 0.4.1 → 0.5.0
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/README.md +138 -11
- package/package.json +5 -8
- package/react/README.md +207 -202
- package/react/dist/Content.d.ts +1 -2
- package/react/dist/Footer.d.ts +1 -2
- package/react/dist/Header.d.ts +3 -16
- package/react/dist/JBGrid.cjs.js +3631 -1
- package/react/dist/JBGrid.cjs.js.map +1 -1
- package/react/dist/JBGrid.d.ts +288 -26
- package/react/dist/JBGrid.js +3624 -1
- package/react/dist/JBGrid.js.map +1 -1
- package/react/dist/JBGrid.umd.js +3641 -1
- package/react/dist/JBGrid.umd.js.map +1 -1
- package/react/dist/JBGridData.d.ts +1 -5
- package/react/dist/JBGridViewModel.d.ts +28 -25
- package/react/dist/types.d.ts +17 -49
- package/react/lib/Components/Cell.tsx +17 -15
- package/react/lib/Components/ColumnHeader.tsx +44 -0
- package/react/lib/Components/ExpandToggle.tsx +14 -10
- package/react/lib/Components/FullscreenIcon.tsx +28 -0
- package/react/lib/Components/JBLoading.tsx +5 -4
- package/react/lib/Components/Pagination.tsx +1 -1
- package/react/lib/Components/PaginationInfo.tsx +71 -0
- package/react/lib/Components/RefreshIcon.tsx +11 -0
- package/react/lib/Components/Row.tsx +17 -15
- package/react/lib/Components/TableHeader.tsx +21 -0
- package/react/lib/Components/blob-loading.css +27 -23
- package/react/lib/Components/cell.css +7 -7
- package/react/lib/Components/content-error/ContentError.tsx +19 -16
- package/react/lib/Components/content-error/content-error.css +5 -11
- package/react/lib/Components/module-declaration.ts +61 -13
- package/react/lib/Content.tsx +23 -47
- package/react/lib/Footer.tsx +52 -79
- package/react/lib/Header.tsx +11 -24
- package/react/lib/JBGrid.tsx +129 -70
- package/react/lib/JBGridViewModel.ts +189 -452
- package/react/lib/footer.css +25 -55
- package/react/lib/header.css +20 -20
- package/react/lib/jb-grid.css +69 -55
- package/react/lib/types.ts +32 -129
- package/react/lib/variables.css +6 -0
- package/react/package.json +14 -10
- package/react/tsconfig.json +5 -4
- package/web-component/dist/index.cjs.js +559 -1
- package/web-component/dist/index.cjs.js.br +0 -0
- package/web-component/dist/index.cjs.js.gz +0 -0
- package/web-component/dist/index.cjs.js.map +1 -1
- package/web-component/dist/index.d.ts +161 -4
- package/web-component/dist/index.d.ts.map +1 -1
- package/web-component/dist/index.js +561 -1
- package/web-component/dist/index.js.br +0 -0
- package/web-component/dist/index.js.gz +0 -0
- package/web-component/dist/index.js.map +1 -1
- package/web-component/dist/index.umd.js +567 -1
- package/web-component/dist/index.umd.js.br +0 -0
- package/web-component/dist/index.umd.js.gz +0 -0
- package/web-component/dist/index.umd.js.map +1 -1
- package/web-component/dist/row/row.d.ts.map +1 -1
- package/web-component/dist/row/types.d.ts +3 -5
- package/web-component/dist/row/types.d.ts.map +1 -1
- package/web-component/dist/row/utils.d.ts +1 -2
- package/web-component/dist/row/utils.d.ts.map +1 -1
- package/web-component/dist/table-header/render.d.ts +2 -0
- package/web-component/dist/table-header/render.d.ts.map +1 -0
- package/web-component/dist/table-header/table-header.d.ts +9 -0
- package/web-component/dist/table-header/table-header.d.ts.map +1 -0
- package/web-component/dist/table-header/types.d.ts +4 -0
- package/web-component/dist/table-header/types.d.ts.map +1 -0
- package/web-component/dist/types.d.ts +6 -0
- package/web-component/dist/types.d.ts.map +1 -0
- package/web-component/dist/utils.d.ts +8 -0
- package/web-component/dist/utils.d.ts.map +1 -0
- package/web-component/lib/cell/cell.ts +10 -5
- package/web-component/lib/cell/style.css +2 -1
- package/web-component/lib/column-header/column-header.ts +117 -0
- package/web-component/lib/column-header/render.ts +14 -0
- package/web-component/lib/column-header/style.css +60 -0
- package/web-component/lib/column-header/types.ts +10 -0
- package/web-component/lib/fullscreen-icon/fullscreen-icon.ts +72 -0
- package/web-component/lib/fullscreen-icon/render.ts +23 -0
- package/web-component/lib/fullscreen-icon/style.css +44 -0
- package/web-component/lib/fullscreen-icon/types.ts +1 -0
- package/web-component/lib/i18n.ts +38 -0
- package/web-component/lib/index.ts +9 -4
- package/web-component/lib/pagination/README.md +4 -0
- package/web-component/lib/pagination/pagination.ts +25 -15
- package/web-component/lib/pagination/render.ts +13 -10
- package/web-component/lib/pagination/style.css +43 -31
- package/web-component/lib/pagination/types.ts +1 -1
- package/web-component/lib/pagination/variables.css +10 -0
- package/web-component/lib/pagination-info/pagination-info.ts +191 -0
- package/web-component/lib/pagination-info/render.ts +16 -0
- package/web-component/lib/pagination-info/style.css +47 -0
- package/web-component/lib/pagination-info/types.ts +12 -0
- package/web-component/lib/refresh-icon/refresh-icon.ts +79 -0
- package/web-component/lib/refresh-icon/render.ts +10 -0
- package/web-component/lib/refresh-icon/style.css +21 -0
- package/web-component/lib/row/render.ts +3 -3
- package/web-component/lib/row/row.ts +29 -15
- package/web-component/lib/row/style.css +30 -30
- package/web-component/lib/row/types.ts +7 -8
- package/web-component/lib/row/utils.ts +1 -40
- package/web-component/lib/row/variables.css +13 -0
- package/web-component/lib/table-header/render.ts +9 -0
- package/web-component/lib/table-header/style.css +29 -0
- package/web-component/lib/table-header/table-header.ts +50 -0
- package/web-component/lib/table-header/types.ts +4 -0
- package/web-component/lib/toggle/expand-toggle.ts +17 -13
- package/web-component/lib/toggle/render.ts +18 -13
- package/web-component/lib/toggle/style.css +18 -5
- package/web-component/lib/types.ts +6 -0
- package/web-component/lib/utils.ts +46 -0
- package/react/lib/JBGridBridgeExample.js +0 -90
- package/react/lib/JBGridData.ts +0 -51
- package/react/lib/global.d.ts +0 -15
- package/web-component/lib/global.d.ts +0 -15
- package/web-component/tsconfig.json +0 -17
package/react/dist/JBGrid.d.ts
CHANGED
|
@@ -1,26 +1,288 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import React, { DetailedHTMLProps, FormEventHandler, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import { JBCellWebComponent, JBExpandToggleWebComponent, JBPaginationWebComponent, JBRowWebComponent, RowTemplate } from "jb-grid";
|
|
3
|
+
import { JBElementStandardProps } from "jb-core/react";
|
|
4
|
+
|
|
5
|
+
//#region modules/jb-grid/react/lib/types.d.ts
|
|
6
|
+
type AnyObject = Record<string, any>;
|
|
7
|
+
type JBGridRowData<T extends AnyObject> = T;
|
|
8
|
+
type JBGridResponseData<T extends AnyObject> = {
|
|
9
|
+
pageIndex: number;
|
|
10
|
+
startItemIndex: number;
|
|
11
|
+
endItemIndex: number;
|
|
12
|
+
totalItemsCount: number;
|
|
13
|
+
totalPages: number;
|
|
14
|
+
content: JBGridRowData<T>[];
|
|
15
|
+
};
|
|
16
|
+
type JBGridPaginationMeta = {
|
|
17
|
+
startItemIndex: number;
|
|
18
|
+
endItemIndex: number;
|
|
19
|
+
totalItemsCount: number;
|
|
20
|
+
};
|
|
21
|
+
type JBGridI18nMessage = {
|
|
22
|
+
serverErrorText?: string;
|
|
23
|
+
serverErrorTitle?: string;
|
|
24
|
+
serverErrorRefreshButtonTitle?: string;
|
|
25
|
+
EnterPageNumberMessage?: string;
|
|
26
|
+
currentAvailableItem?: string;
|
|
27
|
+
pageItemCount?: string;
|
|
28
|
+
from?: string;
|
|
29
|
+
};
|
|
30
|
+
type JBGridI18nConfig = {
|
|
31
|
+
messages?: JBGridI18nMessage;
|
|
32
|
+
showPersianNumber?: boolean;
|
|
33
|
+
};
|
|
34
|
+
type JBGridRenderContext = Readonly<{
|
|
35
|
+
refreshView: () => void;
|
|
36
|
+
}>;
|
|
37
|
+
type JBGridCallbacks = {
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated use onFullscreen and onExitFullscreen instead
|
|
40
|
+
*/
|
|
41
|
+
onFullscreenChange?: (isFullscreen: boolean) => unknown;
|
|
42
|
+
onFullscreen?: () => unknown;
|
|
43
|
+
onPageIndexChange?: (newPageIndex: number) => unknown;
|
|
44
|
+
onPageSizeChange?: (newPageSize: number) => unknown;
|
|
45
|
+
onRefresh?: () => unknown | Promise<unknown>;
|
|
46
|
+
onExitFullscreen?: () => unknown;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region modules/jb-grid/react/lib/Components/types.d.ts
|
|
50
|
+
type JBPaginationDirectAttributeProps = {
|
|
51
|
+
pageIndex?: number;
|
|
52
|
+
max?: number;
|
|
53
|
+
min?: number;
|
|
54
|
+
onChange?: FormEventHandler<JBPaginationWebComponent>;
|
|
55
|
+
showPersianNumber?: boolean;
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region modules/jb-grid/react/lib/Components/module-declaration.d.ts
|
|
59
|
+
type TableHeaderTemplate$1 = Array<{
|
|
60
|
+
name: string;
|
|
61
|
+
size?: string | number;
|
|
62
|
+
}>;
|
|
63
|
+
type JBTableHeaderWebComponent$1 = HTMLElement & {
|
|
64
|
+
headerTemplate: TableHeaderTemplate$1;
|
|
65
|
+
};
|
|
66
|
+
type JBColumnHeaderSort$1 = "asc" | "desc";
|
|
67
|
+
type JBColumnHeaderWebComponent$1 = HTMLElement & {
|
|
68
|
+
name: string;
|
|
69
|
+
sortable: boolean;
|
|
70
|
+
sort: JBColumnHeaderSort$1 | null;
|
|
71
|
+
};
|
|
72
|
+
type JBPaginationInfoWebComponent$1 = HTMLElement & {
|
|
73
|
+
pageSize: number;
|
|
74
|
+
pageSizes: number[];
|
|
75
|
+
startItemIndex: number;
|
|
76
|
+
endItemIndex: number;
|
|
77
|
+
totalItemsCount: number;
|
|
78
|
+
pageItemCountTitle: string;
|
|
79
|
+
fromLabel: string;
|
|
80
|
+
currentAvailableItemTitle: string;
|
|
81
|
+
showPersianNumber: boolean;
|
|
82
|
+
};
|
|
83
|
+
type JBRefreshIconWebComponent = HTMLElement & {
|
|
84
|
+
play: () => void;
|
|
85
|
+
pause: () => void;
|
|
86
|
+
stop: () => void;
|
|
87
|
+
};
|
|
88
|
+
type JBFullscreenIconState$1 = "enter" | "exit";
|
|
89
|
+
type JBFullscreenIconWebComponent$1 = HTMLElement & {
|
|
90
|
+
state: JBFullscreenIconState$1;
|
|
91
|
+
};
|
|
92
|
+
type JBPaginationAttributes = DetailedHTMLProps<HTMLAttributes<JBPaginationWebComponent>, JBPaginationWebComponent> & JBPaginationDirectAttributeProps;
|
|
93
|
+
type JBPaginationInfoAttributes = DetailedHTMLProps<HTMLAttributes<JBPaginationInfoWebComponent$1>, JBPaginationInfoWebComponent$1>;
|
|
94
|
+
type JBRefreshIconAttributes = DetailedHTMLProps<HTMLAttributes<JBRefreshIconWebComponent>, JBRefreshIconWebComponent>;
|
|
95
|
+
type JBFullscreenIconAttributes = DetailedHTMLProps<HTMLAttributes<JBFullscreenIconWebComponent$1>, JBFullscreenIconWebComponent$1> & {
|
|
96
|
+
state?: JBFullscreenIconState$1;
|
|
97
|
+
};
|
|
98
|
+
type JBRowAttributes = DetailedHTMLProps<HTMLAttributes<JBRowWebComponent>, JBRowWebComponent>;
|
|
99
|
+
type JBTableHeaderAttributes = DetailedHTMLProps<HTMLAttributes<JBTableHeaderWebComponent$1>, JBTableHeaderWebComponent$1> & {
|
|
100
|
+
headerTemplate?: TableHeaderTemplate$1;
|
|
101
|
+
};
|
|
102
|
+
type JBColumnHeaderAttributes = DetailedHTMLProps<HTMLAttributes<JBColumnHeaderWebComponent$1>, JBColumnHeaderWebComponent$1> & {
|
|
103
|
+
name: string;
|
|
104
|
+
sortable?: boolean;
|
|
105
|
+
sort?: JBColumnHeaderSort$1;
|
|
106
|
+
};
|
|
107
|
+
type JBCellAttributes = DetailedHTMLProps<HTMLAttributes<JBCellWebComponent>, JBCellWebComponent> & {
|
|
108
|
+
ellipsis?: boolean | number;
|
|
109
|
+
};
|
|
110
|
+
type JBExpandToggleAttributes = DetailedHTMLProps<HTMLAttributes<JBExpandToggleWebComponent>, JBExpandToggleWebComponent>;
|
|
111
|
+
declare module "react" {
|
|
112
|
+
namespace JSX {
|
|
113
|
+
interface IntrinsicElements {
|
|
114
|
+
'jb-pagination': JBPaginationAttributes;
|
|
115
|
+
'jb-pagination-info': JBPaginationInfoAttributes;
|
|
116
|
+
'jb-refresh-icon': JBRefreshIconAttributes;
|
|
117
|
+
'jb-fullscreen-icon': JBFullscreenIconAttributes;
|
|
118
|
+
'jb-row': JBRowAttributes;
|
|
119
|
+
'jb-table-header': JBTableHeaderAttributes;
|
|
120
|
+
'jb-col-header': JBColumnHeaderAttributes;
|
|
121
|
+
'jb-cell': JBCellAttributes;
|
|
122
|
+
'jb-expand-toggle': JBExpandToggleAttributes;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region modules/jb-grid/react/lib/Components/Pagination.d.ts
|
|
128
|
+
declare function JBPagination(props: Props): React.JSX.Element;
|
|
129
|
+
type Props = JBElementStandardProps<JBPaginationWebComponent, keyof JBPaginationDirectAttributeProps> & JBPaginationDirectAttributeProps;
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region modules/jb-grid/react/lib/Components/PaginationInfo.d.ts
|
|
132
|
+
type JBPaginationInfoWebComponent = HTMLElement & {
|
|
133
|
+
pageSize: number;
|
|
134
|
+
pageSizes: number[];
|
|
135
|
+
startItemIndex: number;
|
|
136
|
+
endItemIndex: number;
|
|
137
|
+
totalItemsCount: number;
|
|
138
|
+
pageItemCountTitle: string;
|
|
139
|
+
fromLabel: string;
|
|
140
|
+
currentAvailableItemTitle: string;
|
|
141
|
+
showPersianNumber: boolean;
|
|
142
|
+
};
|
|
143
|
+
type JBPaginationInfoPageSizeChangeEvent = CustomEvent<{
|
|
144
|
+
pageSize: number;
|
|
145
|
+
}>;
|
|
146
|
+
type PaginationInfoProps = Omit<JBPaginationInfoAttributes, "onPageSizeChange" | "ref"> & {
|
|
147
|
+
pageSize: number;
|
|
148
|
+
pageSizes?: number[];
|
|
149
|
+
startItemIndex: number;
|
|
150
|
+
endItemIndex: number;
|
|
151
|
+
totalItemsCount: number;
|
|
152
|
+
pageItemCountTitle?: string;
|
|
153
|
+
fromLabel?: string;
|
|
154
|
+
currentAvailableItemTitle?: string;
|
|
155
|
+
showPersianNumber?: boolean;
|
|
156
|
+
onPageSizeChange?: (event: JBPaginationInfoPageSizeChangeEvent) => void;
|
|
157
|
+
};
|
|
158
|
+
declare const JBPaginationInfo: React.ForwardRefExoticComponent<Omit<JBPaginationInfoAttributes, "ref" | "onPageSizeChange"> & {
|
|
159
|
+
pageSize: number;
|
|
160
|
+
pageSizes?: number[];
|
|
161
|
+
startItemIndex: number;
|
|
162
|
+
endItemIndex: number;
|
|
163
|
+
totalItemsCount: number;
|
|
164
|
+
pageItemCountTitle?: string;
|
|
165
|
+
fromLabel?: string;
|
|
166
|
+
currentAvailableItemTitle?: string;
|
|
167
|
+
showPersianNumber?: boolean;
|
|
168
|
+
onPageSizeChange?: (event: JBPaginationInfoPageSizeChangeEvent) => void;
|
|
169
|
+
} & React.RefAttributes<JBPaginationInfoWebComponent | null>>;
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region modules/jb-grid/react/lib/Components/RefreshIcon.d.ts
|
|
172
|
+
type RefreshIconProps = Omit<JBRefreshIconAttributes, "ref">;
|
|
173
|
+
declare const JBRefreshIcon: React.ForwardRefExoticComponent<RefreshIconProps & React.RefAttributes<JBRefreshIconWebComponent | null>>;
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region modules/jb-grid/react/lib/Components/FullscreenIcon.d.ts
|
|
176
|
+
type JBFullscreenIconState = "enter" | "exit";
|
|
177
|
+
type JBFullscreenIconWebComponent = HTMLElement & {
|
|
178
|
+
state: JBFullscreenIconState;
|
|
179
|
+
};
|
|
180
|
+
type FullscreenIconProps = Omit<JBFullscreenIconAttributes, "ref" | "state"> & {
|
|
181
|
+
state?: JBFullscreenIconState;
|
|
182
|
+
};
|
|
183
|
+
declare const JBFullscreenIcon: React.ForwardRefExoticComponent<Omit<JBFullscreenIconAttributes, "ref" | "state"> & {
|
|
184
|
+
state?: JBFullscreenIconState;
|
|
185
|
+
} & React.RefAttributes<JBFullscreenIconWebComponent | null>>;
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region modules/jb-grid/react/lib/Components/Row.d.ts
|
|
188
|
+
type RowProps = Omit<JBRowAttributes, "ref" | "rowTemplate" | "isOpen"> & {
|
|
189
|
+
rowTemplate?: RowTemplate;
|
|
190
|
+
isOpen?: boolean;
|
|
191
|
+
};
|
|
192
|
+
declare const JBRow: React.ForwardRefExoticComponent<Omit<JBRowAttributes, "ref" | "rowTemplate" | "isOpen"> & {
|
|
193
|
+
rowTemplate?: RowTemplate;
|
|
194
|
+
isOpen?: boolean;
|
|
195
|
+
} & React.RefAttributes<JBRowWebComponent | null>>;
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region modules/jb-grid/react/lib/Components/TableHeader.d.ts
|
|
198
|
+
type TableHeaderTemplate = Array<{
|
|
199
|
+
name: string;
|
|
200
|
+
size?: string | number;
|
|
201
|
+
}>;
|
|
202
|
+
type JBTableHeaderWebComponent = HTMLElement & {
|
|
203
|
+
headerTemplate: TableHeaderTemplate;
|
|
204
|
+
};
|
|
205
|
+
type TableHeaderProps = Omit<JBTableHeaderAttributes, "headerTemplate" | "ref"> & {
|
|
206
|
+
headerTemplate?: TableHeaderTemplate;
|
|
207
|
+
};
|
|
208
|
+
declare const JBTableHeader: React.ForwardRefExoticComponent<Omit<JBTableHeaderAttributes, "ref" | "headerTemplate"> & {
|
|
209
|
+
headerTemplate?: TableHeaderTemplate;
|
|
210
|
+
} & React.RefAttributes<JBTableHeaderWebComponent | null>>;
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region modules/jb-grid/react/lib/Components/ColumnHeader.d.ts
|
|
213
|
+
type JBColumnHeaderSort = "asc" | "desc";
|
|
214
|
+
type JBColumnHeaderWebComponent = HTMLElement & {
|
|
215
|
+
name: string;
|
|
216
|
+
sortable: boolean;
|
|
217
|
+
sort: JBColumnHeaderSort | null;
|
|
218
|
+
};
|
|
219
|
+
type JBColumnHeaderSortEvent = CustomEvent<{
|
|
220
|
+
name: string;
|
|
221
|
+
sort: JBColumnHeaderSort;
|
|
222
|
+
}>;
|
|
223
|
+
type ColumnHeaderProps = Omit<JBColumnHeaderAttributes, "name" | "onSort" | "ref" | "sort" | "sortable"> & {
|
|
224
|
+
name: string;
|
|
225
|
+
sortable?: boolean;
|
|
226
|
+
sort?: JBColumnHeaderSort;
|
|
227
|
+
onSort?: (event: JBColumnHeaderSortEvent) => void;
|
|
228
|
+
};
|
|
229
|
+
declare const JBColumnHeader: React.ForwardRefExoticComponent<Omit<JBColumnHeaderAttributes, "ref" | "name" | "onSort" | "sort" | "sortable"> & {
|
|
230
|
+
name: string;
|
|
231
|
+
sortable?: boolean;
|
|
232
|
+
sort?: JBColumnHeaderSort;
|
|
233
|
+
onSort?: (event: JBColumnHeaderSortEvent) => void;
|
|
234
|
+
} & React.RefAttributes<JBColumnHeaderWebComponent | null>>;
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region modules/jb-grid/react/lib/Components/Cell.d.ts
|
|
237
|
+
type CellProps = Omit<JBCellAttributes, "ref" | "name"> & {
|
|
238
|
+
name: string;
|
|
239
|
+
label?: string;
|
|
240
|
+
};
|
|
241
|
+
declare const JBCell: React.ForwardRefExoticComponent<Omit<JBCellAttributes, "ref" | "name"> & {
|
|
242
|
+
name: string;
|
|
243
|
+
label?: string;
|
|
244
|
+
} & React.RefAttributes<JBCellWebComponent | null>>;
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region modules/jb-grid/react/lib/Components/ExpandRow.d.ts
|
|
247
|
+
declare function ExpandRow(props: ExpandRowProps): React.JSX.Element;
|
|
248
|
+
type ExpandRowProps = PropsWithChildren<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region modules/jb-grid/react/lib/Components/ExpandToggle.d.ts
|
|
251
|
+
type ToggleProps = Omit<JBExpandToggleAttributes, "ref">;
|
|
252
|
+
declare const JBExpandToggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<JBExpandToggleWebComponent | null>>;
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region modules/jb-grid/react/lib/JBGrid.d.ts
|
|
255
|
+
type Props$1<T extends AnyObject> = {
|
|
256
|
+
searchbarComponent?: ReactNode;
|
|
257
|
+
tableHeader?: ReactNode;
|
|
258
|
+
data: JBGridRowData<T>[];
|
|
259
|
+
pageIndex: number;
|
|
260
|
+
pageSize: number;
|
|
261
|
+
totalItemsCount: number;
|
|
262
|
+
totalPages?: number;
|
|
263
|
+
startItemIndex?: number;
|
|
264
|
+
endItemIndex?: number;
|
|
265
|
+
isLoading?: boolean;
|
|
266
|
+
isErrorOccurred?: boolean;
|
|
267
|
+
isFullscreen?: boolean;
|
|
268
|
+
className?: string;
|
|
269
|
+
style?: React.CSSProperties;
|
|
270
|
+
onFullscreen?: JBGridCallbacks["onFullscreen"];
|
|
271
|
+
onPageIndexChange?: JBGridCallbacks["onPageIndexChange"];
|
|
272
|
+
onPageSizeChange?: JBGridCallbacks["onPageSizeChange"];
|
|
273
|
+
onRefresh?: JBGridCallbacks["onRefresh"];
|
|
274
|
+
onExitFullscreen?: JBGridCallbacks["onExitFullscreen"];
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated use onFullscreen and onExitFullscreen instead
|
|
277
|
+
*/
|
|
278
|
+
onFullscreenChange?: JBGridCallbacks["onFullscreenChange"];
|
|
279
|
+
title: string;
|
|
280
|
+
i18n?: JBGridI18nConfig | null | undefined;
|
|
281
|
+
contentError?: ReactNode;
|
|
282
|
+
headerEndComponents?: ReactNode[] | ReactNode;
|
|
283
|
+
children?: React.ReactNode | React.ReactNode[] | ((data: JBGridRowData<T>[], context: JBGridRenderContext) => React.ReactNode | React.ReactNode[]);
|
|
284
|
+
};
|
|
285
|
+
declare function JBGridComponent<T extends AnyObject>(props: Props$1<T>): React.JSX.Element;
|
|
286
|
+
declare const JBGrid: typeof JBGridComponent;
|
|
287
|
+
//#endregion
|
|
288
|
+
export { AnyObject, CellProps, ColumnHeaderProps, ExpandRow, ExpandRowProps, FullscreenIconProps, JBCell, JBColumnHeader, JBExpandToggle, JBFullscreenIcon, JBGrid, JBGridCallbacks, JBGridI18nConfig, JBGridI18nMessage, JBGridPaginationMeta, JBGridRenderContext, JBGridResponseData, JBGridRowData, JBPagination, JBPaginationInfo, JBRefreshIcon, JBRow, JBTableHeader, PaginationInfoProps, type Props as PaginationProps, Props$1 as Props, RefreshIconProps, RowProps, TableHeaderProps, ToggleProps };
|