@majoo-ui/react 1.58.8 → 1.58.9
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 +1 -0
- package/components/editableTable/EditableTable.d.ts +5 -0
- package/components/editableTable/faker.d.ts +16 -0
- package/components/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -0
- package/index.esm.js +548 -323
- package/index.umd.js +557 -331
- package/package.json +3 -2
|
@@ -17,6 +17,7 @@ interface EditableMobileProps<Data extends object> {
|
|
|
17
17
|
onExpand?: (expanded: boolean) => void;
|
|
18
18
|
hiddenColumns?: string[];
|
|
19
19
|
customEmptyDataProps?: EmptyDataProps;
|
|
20
|
+
virtualized?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export default function EditableTableMobile(props: EditableMobileProps<any>): JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -9,6 +9,7 @@ interface CustomRows {
|
|
|
9
9
|
showInMobile?: boolean;
|
|
10
10
|
}
|
|
11
11
|
interface EditableTableProps<Data extends object> {
|
|
12
|
+
css?: CSS;
|
|
12
13
|
/**
|
|
13
14
|
* Columns of table.
|
|
14
15
|
*/
|
|
@@ -79,6 +80,10 @@ interface EditableTableProps<Data extends object> {
|
|
|
79
80
|
* Array of hidden column id
|
|
80
81
|
*/
|
|
81
82
|
hiddenColumns?: string[];
|
|
83
|
+
/**
|
|
84
|
+
* Activate table row virtualizer support
|
|
85
|
+
*/
|
|
86
|
+
virtualized?: boolean;
|
|
82
87
|
}
|
|
83
88
|
interface RemoveProps {
|
|
84
89
|
position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare type ProductType = {
|
|
2
|
+
name: string;
|
|
3
|
+
variants: ('Small' | 'Medium' | 'Large')[];
|
|
4
|
+
};
|
|
5
|
+
export interface IProduct {
|
|
6
|
+
id: number;
|
|
7
|
+
produk: ProductType;
|
|
8
|
+
terima_stok: boolean;
|
|
9
|
+
jumlah: number;
|
|
10
|
+
satuan: 'cup' | 'pcs';
|
|
11
|
+
harga_beli: number;
|
|
12
|
+
total: number;
|
|
13
|
+
note: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const makeData: (len: number) => IProduct[];
|
|
16
|
+
export {};
|