es-grid-template 1.9.60 → 1.9.61
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/group-component/body/EditableCell.d.ts +3 -0
- package/es/group-component/body/EditableCell.js +402 -196
- package/es/group-component/hook/utils.d.ts +3 -3
- package/es/table-component/body/EditableCell.js +1 -1
- package/lib/group-component/body/EditableCell.d.ts +3 -0
- package/lib/group-component/body/EditableCell.js +399 -194
- package/lib/table-component/body/EditableCell.js +1 -1
- package/package.json +1 -1
|
@@ -196,10 +196,10 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
|
|
|
196
196
|
value: any;
|
|
197
197
|
rowData: RecordType;
|
|
198
198
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNode);
|
|
199
|
-
onCellStyles?: Omit<CSSProperties, "width" | "
|
|
200
|
-
onCellHeaderStyles?: Omit<CSSProperties, "width" | "
|
|
199
|
+
onCellStyles?: Omit<CSSProperties, "width" | "left" | "right" | "display" | "minWidth" | "position"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "width" | "left" | "right" | "display" | "minWidth" | "position">);
|
|
200
|
+
onCellHeaderStyles?: Omit<CSSProperties, "width" | "left" | "right" | "display" | "minWidth" | "position"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "width" | "left" | "right" | "display" | "minWidth" | "position">);
|
|
201
201
|
onCell?: (rowData: RecordType, index: number) => import("react").TdHTMLAttributes<HTMLTableCellElement>;
|
|
202
|
-
onCellFooterStyles?: Omit<CSSProperties, "width" | "
|
|
202
|
+
onCellFooterStyles?: Omit<CSSProperties, "width" | "left" | "right" | "display" | "minWidth" | "position"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "width" | "left" | "right" | "display" | "minWidth" | "position">);
|
|
203
203
|
getValue?: (row: any, rowIndex: number) => any;
|
|
204
204
|
getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
|
|
205
205
|
headerCellProps?: import("./../../grid-component/type").CellProps;
|
|
@@ -1119,7 +1119,7 @@ const EditableCell = props => {
|
|
|
1119
1119
|
// let floatValue = value
|
|
1120
1120
|
|
|
1121
1121
|
const numericFormatProps = {
|
|
1122
|
-
value,
|
|
1122
|
+
value: value || '',
|
|
1123
1123
|
thousandSeparator: checkThousandSeparator(thousandSeparator, decimalSeparator),
|
|
1124
1124
|
decimalSeparator: checkDecimalSeparator(thousandSeparator, decimalSeparator),
|
|
1125
1125
|
decimalScale: cellFormat?.decimalScale ?? undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ColumnTable, EditType, IFormat } from "../../grid-component/type";
|
|
3
|
+
import type { Column } from "@tanstack/react-table";
|
|
3
4
|
interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement> {
|
|
4
5
|
t?: any;
|
|
5
6
|
dataIndex: string;
|
|
@@ -10,6 +11,8 @@ interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement>
|
|
|
10
11
|
indexRow: number;
|
|
11
12
|
indexCol: number;
|
|
12
13
|
cellEditing?: any;
|
|
14
|
+
visibleColumns?: Column<DataType>[];
|
|
15
|
+
handleNextCell?: () => void;
|
|
13
16
|
}
|
|
14
17
|
declare const EditableCell: <T>(props: EditableCellProps<T>) => JSX.Element;
|
|
15
18
|
export default EditableCell;
|