@majoo-ui/react 1.57.19 → 1.57.20
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/components/editableTable/EditableMobile.d.ts +2 -1
- package/components/editableTable/EditableTable.d.ts +11 -2
- package/components/table/Table.d.ts +1 -0
- package/index.esm.js +283 -242
- package/index.umd.js +283 -239
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Column, UseTableHooks, Row } from 'react-table';
|
|
3
3
|
import { CSS } from '../../config/stitches.config';
|
|
4
|
+
import { EmptyDataProps } from '../table/Table';
|
|
4
5
|
interface CustomRows {
|
|
5
6
|
predicate: boolean;
|
|
6
7
|
css?: CSS;
|
|
@@ -11,11 +12,11 @@ interface EditableMobileProps<Data extends object> {
|
|
|
11
12
|
columns: ReadonlyArray<Column<Data>>;
|
|
12
13
|
data: Data[];
|
|
13
14
|
instance: UseTableHooks;
|
|
14
|
-
emptyDataMessage?: string;
|
|
15
15
|
showCheckbox?: boolean;
|
|
16
16
|
customRows?: (row: Row<object>) => CustomRows[];
|
|
17
17
|
onExpand?: (expanded: boolean) => void;
|
|
18
18
|
hiddenColumns?: string[];
|
|
19
|
+
customEmptyDataProps?: EmptyDataProps;
|
|
19
20
|
}
|
|
20
21
|
export default function EditableTableMobile(props: EditableMobileProps<any>): JSX.Element;
|
|
21
22
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Column, Row } from 'react-table';
|
|
3
3
|
import { CSS } from '../../config/stitches.config';
|
|
4
|
+
import { EmptyDataProps } from '../table/Table';
|
|
4
5
|
interface CustomRows {
|
|
5
6
|
predicate: boolean;
|
|
6
7
|
css?: CSS;
|
|
@@ -17,9 +18,17 @@ interface EditableTableProps<Data extends object> {
|
|
|
17
18
|
*/
|
|
18
19
|
data: Data[];
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Define custom empty data props.<br/>
|
|
22
|
+
* interface EmptyDataProps { <br/>
|
|
23
|
+
* (define the doodle image component)<br/>
|
|
24
|
+
* doodleImage?: React.ReactNode;<br/>
|
|
25
|
+
* (define the title)<br/>
|
|
26
|
+
* title?: string | React.ReactNode;<br/>
|
|
27
|
+
* (define the description)<br/>
|
|
28
|
+
* description?: string | React.ReactNode;<br/>
|
|
29
|
+
* }
|
|
21
30
|
*/
|
|
22
|
-
|
|
31
|
+
customEmptyDataProps?: EmptyDataProps;
|
|
23
32
|
/**
|
|
24
33
|
* Additional height of the rows.
|
|
25
34
|
*/
|
|
@@ -1082,6 +1082,7 @@ export declare const addOnCellStyle: (id: any) => {
|
|
|
1082
1082
|
style?: undefined;
|
|
1083
1083
|
};
|
|
1084
1084
|
export declare const defaultFetchDataParams: FetchDataParams;
|
|
1085
|
+
export declare const defaultEmptyDataProps: (t: any, isMobile: any) => EmptyDataProps;
|
|
1085
1086
|
interface FetchDataParams {
|
|
1086
1087
|
pageIndex?: number;
|
|
1087
1088
|
pageSize?: number;
|