@majoo-ui/react 1.46.6 → 1.46.8-rc.2
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/form/components/InputSelect/InputSelect.d.ts +701 -0
- package/components/form/components/InputSelect/index.d.ts +2 -0
- package/components/table/MobileTable.d.ts +1 -0
- package/components/table/Table.d.ts +10 -2
- package/hooks/useListOption/useListOption.d.ts +1 -2
- package/hooks/useToggle/useToggle.d.ts +1 -2
- package/index.esm.js +1332 -802
- package/index.umd.js +1416 -832
- package/package.json +1 -1
- package/utils/request.d.ts +4 -1
- package/components/form/components/InputSelect/InputSelect.migration.d.ts +0 -18
|
@@ -910,7 +910,7 @@ export interface TableProps {
|
|
|
910
910
|
*/
|
|
911
911
|
totalData?: number;
|
|
912
912
|
/**
|
|
913
|
-
* Function executed when pagination or sorter is changed
|
|
913
|
+
* Function executed when pagination or sorter is changed.<br/>
|
|
914
914
|
* interface FetchDataParams { <br/>
|
|
915
915
|
* pageIndex?: number;<br/>
|
|
916
916
|
* pageSize?: number;<br/>
|
|
@@ -980,8 +980,16 @@ export interface TableProps {
|
|
|
980
980
|
* }
|
|
981
981
|
*/
|
|
982
982
|
rowGroup?: RowGroup;
|
|
983
|
+
/**
|
|
984
|
+
* Array of hidden column id
|
|
985
|
+
*/
|
|
986
|
+
hiddenColumns?: string[];
|
|
987
|
+
/**
|
|
988
|
+
* The order of column id
|
|
989
|
+
*/
|
|
990
|
+
columnOrder?: string[];
|
|
983
991
|
}
|
|
984
|
-
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, }: TableProps): JSX.Element;
|
|
992
|
+
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, }: TableProps): JSX.Element;
|
|
985
993
|
export interface TableColumnProps {
|
|
986
994
|
/**
|
|
987
995
|
* Required if accessor is a function<br/>
|
|
@@ -5,5 +5,4 @@ export interface ITransform<T> {
|
|
|
5
5
|
key: any;
|
|
6
6
|
isDisabled: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare function useListOption<T>(list: T[], nameKey?: string | string[], valueKey?: string | string[], disableList?: string[], separator?: string | ((values: string | string[], item: any, index: any) => string)): ITransform<T>[];
|
|
9
|
-
export default useListOption;
|
|
8
|
+
export declare function useListOption<T>(list: T[], nameKey?: string | string[], valueKey?: string | string[], disableList?: string[], separator?: string | ((values: string | string[], item: any, index: any) => string)): ITransform<T>[];
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const useToggle: (initialValue: boolean) => [boolean, (nextValue?: any) => void];
|
|
2
|
-
export default useToggle;
|
|
1
|
+
export declare const useToggle: (initialValue: boolean) => [boolean, (nextValue?: any) => void];
|