es-grid-template 1.8.64 → 1.8.65
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/es/grid-component/ColumnsGroup/ColumnsGroup.js +4 -1
- package/es/grid-component/TempTable.js +2 -2
- package/es/grid-component/hooks/utils.d.ts +2 -8
- package/es/grid-component/hooks/utils.js +175 -144
- package/es/grid-component/index.d.ts +1 -1
- package/es/grid-component/index.js +0 -4
- package/es/grid-component/type.d.ts +7 -0
- package/es/table-component/type.d.ts +8 -0
- package/es/table-virtuoso/ColumnsGroup/ColumnsGroup.d.ts +12 -0
- package/es/table-virtuoso/ColumnsGroup/ColumnsGroup.js +232 -0
- package/es/table-virtuoso/ColumnsGroup/index.d.ts +1 -0
- package/es/table-virtuoso/ColumnsGroup/index.js +1 -0
- package/es/{grid-component → table-virtuoso}/InternalTable.d.ts +2 -3
- package/es/table-virtuoso/InternalTable.js +413 -0
- package/es/table-virtuoso/body/TableBody.d.ts +14 -0
- package/es/table-virtuoso/body/TableBody.js +84 -0
- package/es/table-virtuoso/body/TableBodyCell.d.ts +14 -0
- package/es/table-virtuoso/body/TableBodyCell.js +466 -0
- package/es/table-virtuoso/body/TableBodyRow.d.ts +13 -0
- package/es/table-virtuoso/body/TableBodyRow.js +116 -0
- package/es/table-virtuoso/footer/TableFooterCell.d.ts +7 -0
- package/es/table-virtuoso/footer/TableFooterCell.js +54 -0
- package/es/table-virtuoso/header/TableHeadCell.d.ts +14 -0
- package/es/table-virtuoso/header/TableHeadCell.js +265 -0
- package/es/table-virtuoso/header/renderFilter.d.ts +20 -0
- package/es/table-virtuoso/header/renderFilter.js +289 -0
- package/es/table-virtuoso/hook/constant.d.ts +73 -0
- package/es/table-virtuoso/hook/constant.js +240 -0
- package/es/table-virtuoso/hook/convert.d.ts +1 -0
- package/es/table-virtuoso/hook/convert.js +28 -0
- package/es/table-virtuoso/hook/useColumns.d.ts +28 -0
- package/es/table-virtuoso/hook/useColumns.js +302 -0
- package/es/table-virtuoso/hook/useFilterOperator.d.ts +7 -0
- package/es/table-virtuoso/hook/useFilterOperator.js +33 -0
- package/es/table-virtuoso/hook/utils.d.ts +159 -0
- package/es/table-virtuoso/hook/utils.js +2263 -0
- package/es/table-virtuoso/index.d.ts +2 -0
- package/es/table-virtuoso/index.js +2 -0
- package/es/table-virtuoso/style.d.ts +22 -0
- package/es/table-virtuoso/style.js +11 -0
- package/es/table-virtuoso/style.scss +1440 -0
- package/es/table-virtuoso/table/Grid.d.ts +37 -0
- package/es/table-virtuoso/table/Grid.js +302 -0
- package/es/table-virtuoso/table/TableContainer.d.ts +49 -0
- package/es/table-virtuoso/table/TableContainer.js +305 -0
- package/es/table-virtuoso/table/TableWrapper.d.ts +20 -0
- package/es/table-virtuoso/table/TableWrapper.js +158 -0
- package/es/table-virtuoso/type.d.ts +0 -0
- package/es/table-virtuoso/type.js +785 -0
- package/es/table-virtuoso/useContext.d.ts +97 -0
- package/es/table-virtuoso/useContext.js +21 -0
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.js +4 -1
- package/lib/grid-component/TempTable.js +2 -2
- package/lib/grid-component/hooks/utils.d.ts +2 -8
- package/lib/grid-component/hooks/utils.js +176 -152
- package/lib/grid-component/index.d.ts +1 -1
- package/lib/grid-component/index.js +0 -3
- package/lib/grid-component/type.d.ts +7 -0
- package/lib/table-component/type.d.ts +8 -0
- package/lib/table-virtuoso/ColumnsGroup/ColumnsGroup.d.ts +12 -0
- package/lib/table-virtuoso/ColumnsGroup/ColumnsGroup.js +243 -0
- package/lib/table-virtuoso/ColumnsGroup/index.d.ts +1 -0
- package/lib/table-virtuoso/ColumnsGroup/index.js +16 -0
- package/lib/{grid-component → table-virtuoso}/InternalTable.d.ts +2 -3
- package/lib/table-virtuoso/InternalTable.js +422 -0
- package/lib/table-virtuoso/body/TableBody.d.ts +14 -0
- package/lib/table-virtuoso/body/TableBody.js +95 -0
- package/lib/table-virtuoso/body/TableBodyCell.d.ts +14 -0
- package/lib/table-virtuoso/body/TableBodyCell.js +473 -0
- package/lib/table-virtuoso/body/TableBodyRow.d.ts +13 -0
- package/lib/table-virtuoso/body/TableBodyRow.js +124 -0
- package/lib/table-virtuoso/footer/TableFooterCell.d.ts +7 -0
- package/lib/table-virtuoso/footer/TableFooterCell.js +63 -0
- package/lib/table-virtuoso/header/TableHeadCell.d.ts +14 -0
- package/lib/table-virtuoso/header/TableHeadCell.js +274 -0
- package/lib/table-virtuoso/header/renderFilter.d.ts +20 -0
- package/lib/table-virtuoso/header/renderFilter.js +299 -0
- package/lib/table-virtuoso/hook/constant.d.ts +73 -0
- package/lib/table-virtuoso/hook/constant.js +247 -0
- package/lib/table-virtuoso/hook/convert.d.ts +1 -0
- package/lib/table-virtuoso/hook/convert.js +34 -0
- package/lib/table-virtuoso/hook/useColumns.d.ts +28 -0
- package/lib/table-virtuoso/hook/useColumns.js +315 -0
- package/lib/table-virtuoso/hook/useFilterOperator.d.ts +7 -0
- package/lib/table-virtuoso/hook/useFilterOperator.js +40 -0
- package/lib/table-virtuoso/hook/utils.d.ts +159 -0
- package/lib/table-virtuoso/hook/utils.js +2389 -0
- package/lib/table-virtuoso/index.d.ts +2 -0
- package/lib/table-virtuoso/index.js +9 -0
- package/lib/table-virtuoso/style.d.ts +22 -0
- package/lib/table-virtuoso/style.js +18 -0
- package/lib/table-virtuoso/style.scss +1440 -0
- package/lib/table-virtuoso/table/Grid.d.ts +37 -0
- package/lib/table-virtuoso/table/Grid.js +311 -0
- package/lib/table-virtuoso/table/TableContainer.d.ts +49 -0
- package/lib/table-virtuoso/table/TableContainer.js +313 -0
- package/lib/table-virtuoso/table/TableWrapper.d.ts +20 -0
- package/lib/table-virtuoso/table/TableWrapper.js +164 -0
- package/lib/table-virtuoso/type.d.ts +0 -0
- package/lib/table-virtuoso/type.js +786 -0
- package/lib/table-virtuoso/useContext.d.ts +97 -0
- package/lib/table-virtuoso/useContext.js +27 -0
- package/package.json +2 -1
- package/es/grid-component/ConvertColumnTable.d.ts +0 -7
- package/es/grid-component/ConvertColumnTable.js +0 -144
- package/es/grid-component/InternalTable.js +0 -1170
- package/es/grid-component/table/Grid.d.ts +0 -23
- package/es/grid-component/table/Grid.js +0 -49
- package/es/grid-component/table/GridEdit.d.ts +0 -23
- package/es/grid-component/table/GridEdit.js +0 -2726
- package/es/grid-component/table/Group.d.ts +0 -21
- package/es/grid-component/table/Group.js +0 -195
- package/es/grid-component/table/InfiniteTable.d.ts +0 -23
- package/es/grid-component/table/InfiniteTable.js +0 -101
- package/lib/grid-component/ConvertColumnTable.d.ts +0 -7
- package/lib/grid-component/ConvertColumnTable.js +0 -153
- package/lib/grid-component/InternalTable.js +0 -1178
- package/lib/grid-component/table/Grid.d.ts +0 -23
- package/lib/grid-component/table/Grid.js +0 -58
- package/lib/grid-component/table/GridEdit.d.ts +0 -23
- package/lib/grid-component/table/GridEdit.js +0 -2723
- package/lib/grid-component/table/Group.d.ts +0 -21
- package/lib/grid-component/table/Group.js +0 -204
- package/lib/grid-component/table/InfiniteTable.d.ts +0 -23
- package/lib/grid-component/table/InfiniteTable.js +0 -109
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ColumnsTable, GridTableProps } from "../type";
|
|
3
|
-
import type { GetRowKey } from "../type";
|
|
4
|
-
type Props<T> = GridTableProps<T> & {
|
|
5
|
-
scrollHeight?: number;
|
|
6
|
-
tableRef: any;
|
|
7
|
-
triggerFilter?: (queries: any) => void;
|
|
8
|
-
triggerChangeColumns?: (columns: ColumnsTable<T>, type: string) => void;
|
|
9
|
-
triggerChangeData?: (newData: T[], type: string) => void;
|
|
10
|
-
getRowKey: GetRowKey<T>;
|
|
11
|
-
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
12
|
-
setTooltipContent?: any;
|
|
13
|
-
triggerPaste?: (pastedRows: T[], pastedColumnsArray: string[], newData: T[], copyRows: T[]) => void;
|
|
14
|
-
isFilter?: boolean;
|
|
15
|
-
setIsFilter?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
|
-
originData: T[];
|
|
17
|
-
mergedFilterKeys?: any;
|
|
18
|
-
setMergedFilterKeys?: any;
|
|
19
|
-
handleFullScreen?: any;
|
|
20
|
-
isFullScreen?: boolean;
|
|
21
|
-
};
|
|
22
|
-
declare const Grid: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
|
|
23
|
-
export default Grid;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import React, { Fragment } from 'react';
|
|
3
|
-
import { GridStyle } from "../GridStyle";
|
|
4
|
-
import TableGrid from "../TableGrid";
|
|
5
|
-
// import type {ColumnsTable} from "../type";
|
|
6
|
-
|
|
7
|
-
import { ConfigProvider } from "rc-master-ui";
|
|
8
|
-
// import {ConfigProvider} from "antd";
|
|
9
|
-
|
|
10
|
-
const Grid = props => {
|
|
11
|
-
const {
|
|
12
|
-
id,
|
|
13
|
-
height,
|
|
14
|
-
scrollHeight,
|
|
15
|
-
rowHoverable,
|
|
16
|
-
isFullScreen,
|
|
17
|
-
...rest
|
|
18
|
-
} = props;
|
|
19
|
-
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(GridStyle, {
|
|
20
|
-
$heightTable: height,
|
|
21
|
-
$heightScroll: scrollHeight,
|
|
22
|
-
$isFullScreen: isFullScreen,
|
|
23
|
-
style: {
|
|
24
|
-
position: 'relative'
|
|
25
|
-
},
|
|
26
|
-
id: id
|
|
27
|
-
}, /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
28
|
-
theme: {
|
|
29
|
-
components: {
|
|
30
|
-
Table: {
|
|
31
|
-
rowHoverBg: '#eb461912',
|
|
32
|
-
rowSelectedBg: '#eb4619',
|
|
33
|
-
rowSelectedHoverBg: '#eb4619',
|
|
34
|
-
cellFontSize: 12,
|
|
35
|
-
cellFontSizeSM: 13,
|
|
36
|
-
headerBg: '#ffffff',
|
|
37
|
-
cellPaddingBlockSM: 7
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}, /*#__PURE__*/React.createElement(TableGrid, _extends({}, rest, {
|
|
42
|
-
isFullScreen: isFullScreen,
|
|
43
|
-
id: id
|
|
44
|
-
// style={{...style, minHeight: height}}
|
|
45
|
-
,
|
|
46
|
-
rowHoverable: rowHoverable ?? true
|
|
47
|
-
})))));
|
|
48
|
-
};
|
|
49
|
-
export default Grid;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'dayjs/locale/es';
|
|
3
|
-
import 'dayjs/locale/vi';
|
|
4
|
-
import type { AnyObject, TableProps } from "../type";
|
|
5
|
-
import type { ColumnsTable } from "../type";
|
|
6
|
-
import type { GetRowKey } from "../type";
|
|
7
|
-
type Props<RecordType> = TableProps<RecordType> & {
|
|
8
|
-
tableRef: any;
|
|
9
|
-
triggerChangeColumns?: (columns: ColumnsTable<RecordType>, type: string) => void;
|
|
10
|
-
triggerChangeData?: (newData: RecordType[], type: string) => void;
|
|
11
|
-
triggerPaste?: (pastedRows: RecordType[], pastedColumnsArray: string[], newData: RecordType[], copyRows: RecordType[]) => void;
|
|
12
|
-
getRowKey: GetRowKey<RecordType>;
|
|
13
|
-
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
14
|
-
setTooltipContent?: any;
|
|
15
|
-
scrollHeight?: number;
|
|
16
|
-
originData: RecordType[];
|
|
17
|
-
mergedFilterKeys?: any;
|
|
18
|
-
setMergedFilterKeys?: any;
|
|
19
|
-
handleFullScreen?: any;
|
|
20
|
-
isFullScreen?: boolean;
|
|
21
|
-
};
|
|
22
|
-
declare const GridEdit: <RecordType extends AnyObject = AnyObject>(props: Props<RecordType>) => React.JSX.Element;
|
|
23
|
-
export default GridEdit;
|