beca-ui 2.1.0-beta.1 → 2.1.0-beta.11
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/dist/assets/locales/en.json.d.ts +2 -1
- package/dist/assets/locales/vi.json.d.ts +2 -1
- package/dist/beca-ui.js +26130 -26081
- package/dist/components/MainLayout/AppMenu/AppMenu.d.ts +1 -0
- package/dist/components/MainLayout/Header/Header.types.d.ts +0 -2
- package/dist/components/MainLayout/MainLayout.types.d.ts +1 -0
- package/dist/components/MainLayout/SideBarMenu/SideBarMenu.types.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +3 -2
- package/dist/components/Table/Table.types.d.ts +4 -3
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -17,8 +17,6 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
17
17
|
avatarUrl?: string;
|
|
18
18
|
avatarThumbnailUrl?: string;
|
|
19
19
|
isMobile: boolean;
|
|
20
|
-
isShowCollapseButton?: boolean;
|
|
21
|
-
headerTitle?: string;
|
|
22
20
|
profileMenuItems?: MenuItemType[];
|
|
23
21
|
homePageUrl: string;
|
|
24
22
|
customHeader?: React.ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableProps, TableRef } from ".";
|
|
3
|
+
export declare const Table: React.ForwardRefExoticComponent<TableProps<unknown> & React.RefAttributes<TableRef>>;
|
|
2
4
|
export declare const TableSummary: typeof import("rc-table/lib/Footer/Summary").default;
|
|
3
|
-
export default AntTable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableProps as AntTableProps } from "antd";
|
|
2
|
-
import {
|
|
3
|
-
export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelection"> {
|
|
2
|
+
import { ColumnType as AntColumnType, TableRowSelection as AntTableRowSelection, ColumnTitle as AntColumnTitle, FilterDropdownProps, ColumnsType as AntColumnsType } from "antd/lib/table/interface";
|
|
3
|
+
export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelection" | "columns"> {
|
|
4
4
|
transparent?: boolean;
|
|
5
5
|
rowSelection?: TableRowSelection<any>;
|
|
6
6
|
onRowSelect?: (record: any) => void;
|
|
@@ -9,6 +9,7 @@ export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelectio
|
|
|
9
9
|
isResizable?: boolean;
|
|
10
10
|
isBodyCard?: boolean;
|
|
11
11
|
onResizeColumns?: (columns: ColumnsType) => void;
|
|
12
|
+
columns?: ColumnsType;
|
|
12
13
|
responsive?: {
|
|
13
14
|
breakpoint?: number;
|
|
14
15
|
dataLabel?: (column: any, record: any, rowIndex: number) => React.ReactNode | string;
|
|
@@ -24,7 +25,7 @@ export interface TableRef {
|
|
|
24
25
|
export interface TableRowSelection<T> extends Omit<AntTableRowSelection<T>, "onSelectAll"> {
|
|
25
26
|
onSelectAll?: (isSelectedAll: boolean, selectedRowKeys: any[], selectedRows?: any[]) => void;
|
|
26
27
|
}
|
|
27
|
-
export type ColumnsType<
|
|
28
|
+
export type ColumnsType<T = any> = AntColumnsType<T>;
|
|
28
29
|
export type ColumnType<RecordType = any> = AntColumnType<RecordType> & {
|
|
29
30
|
editable?: boolean;
|
|
30
31
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableProps, ColumnsType, TableRef, TableRowSelection, ColumnType, ColumnTitle } from "./Table.types";
|
|
2
|
-
export {
|
|
2
|
+
export { Table, TableSummary } from "./Table";
|
|
3
3
|
export type { TableProps, ColumnsType, TableRef, TableRowSelection, ColumnType, ColumnTitle, };
|