@majoo-ui/react 1.57.19 → 1.57.21
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/form/components/InputSelect/InputSelect.d.ts +4 -0
- package/components/table/Table.d.ts +1 -0
- package/index.esm.js +308 -263
- package/index.umd.js +307 -259
- 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
|
*/
|
|
@@ -809,6 +809,10 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
|
|
|
809
809
|
* Render custom footer inside option. If onClick not working on mobile, you can using both onClick and onTouchStart.
|
|
810
810
|
*/
|
|
811
811
|
renderFooter?: () => React.ReactNode;
|
|
812
|
+
/**
|
|
813
|
+
* Custom empty data message
|
|
814
|
+
*/
|
|
815
|
+
emptyDataMessage?: string;
|
|
812
816
|
}
|
|
813
817
|
export declare const InputSelect: React.ForwardRefExoticComponent<InputSelectProps & React.RefAttributes<HTMLInputElement>>;
|
|
814
818
|
export default InputSelect;
|
|
@@ -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;
|