react-table-edit 1.5.17 → 1.5.19
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/component/input/input-date-gange/index.d.ts +21 -0
- package/dist/component/sidebar-setting-column/index.d.ts +0 -2
- package/dist/component/table/cell.d.ts +2 -2
- package/dist/component/table/toolbar-bottom.d.ts +2 -1
- package/dist/component/table-view/header.d.ts +1 -1
- package/dist/component/tree-table/key-handlers.d.ts +8 -8
- package/dist/index.js +186 -145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +186 -145
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +0 -1
- package/dist/styles/index.css.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ClipboardEvent } from 'react';
|
|
2
|
+
import 'react-day-picker/dist/style.css';
|
|
3
|
+
interface IFDateRange {
|
|
4
|
+
id?: string;
|
|
5
|
+
dateFormat?: 'dd/MM/yyyy' | 'dd/MM/yyyy HH:mm' | 'MM/yyyy';
|
|
6
|
+
className?: string;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
value?: {
|
|
9
|
+
from?: Date;
|
|
10
|
+
to?: Date;
|
|
11
|
+
};
|
|
12
|
+
container?: any;
|
|
13
|
+
onChange: (value: {
|
|
14
|
+
from?: Date | string;
|
|
15
|
+
to?: Date | string;
|
|
16
|
+
}) => void;
|
|
17
|
+
onKeyDown?: (e: React.KeyboardEvent<any>) => void | any;
|
|
18
|
+
onPaste?: (e: ClipboardEvent<HTMLElement>) => void;
|
|
19
|
+
}
|
|
20
|
+
declare const DateRangePicker: React.ForwardRefExoticComponent<IFDateRange & React.RefAttributes<unknown>>;
|
|
21
|
+
export default DateRangePicker;
|
|
@@ -4,8 +4,6 @@ export interface IFPropsDetail {
|
|
|
4
4
|
setColumn: any;
|
|
5
5
|
openSidebar: boolean;
|
|
6
6
|
handleSidebar: any;
|
|
7
|
-
resetDefaultColumns?: () => void;
|
|
8
|
-
formatSetting?: any;
|
|
9
7
|
}
|
|
10
8
|
declare const SidebarSetColumn: (props: IFPropsDetail) => import("react/jsx-runtime").JSX.Element;
|
|
11
9
|
export default SidebarSetColumn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { Dispatch, KeyboardEvent, MutableRefObject, SetStateAction } from
|
|
2
|
-
import { ICellInfo, IColumnTable, IFTableEditButton, IFTableEditToolbar } from
|
|
1
|
+
import React, { Dispatch, KeyboardEvent, MutableRefObject, SetStateAction } from 'react';
|
|
2
|
+
import { ICellInfo, IColumnTable, IFTableEditButton, IFTableEditToolbar } from '../type';
|
|
3
3
|
interface CellComponentProps {
|
|
4
4
|
col: IColumnTable;
|
|
5
5
|
row: any;
|
|
@@ -14,9 +14,10 @@ interface ToolbarBottomProps {
|
|
|
14
14
|
focusRow: number | null;
|
|
15
15
|
editDisable?: boolean;
|
|
16
16
|
addDisable?: boolean;
|
|
17
|
+
disableAddMulti?: boolean;
|
|
17
18
|
buttonSetting?: IFTableEditButton;
|
|
18
19
|
toolbarSetting?: IFTableEditToolbar;
|
|
19
20
|
headerColumns: any[][];
|
|
20
21
|
}
|
|
21
|
-
declare const ToolbarBottom: ({ handleAdd, handleDuplicate, handleInsertBefore, handleInsertAfter, handleDeleteAll, setOpenPopupSetupColumn, focusRow, editDisable, addDisable, buttonSetting, toolbarSetting, headerColumns }: ToolbarBottomProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const ToolbarBottom: ({ handleAdd, handleDuplicate, handleInsertBefore, handleInsertAfter, handleDeleteAll, setOpenPopupSetupColumn, focusRow, editDisable, addDisable, disableAddMulti, buttonSetting, toolbarSetting, headerColumns }: ToolbarBottomProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export default ToolbarBottom;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import 'react-resizable/css/styles.css';
|
|
3
|
-
import { IColumnTable, IFFilterTable, IFOrderTable, IFTableEditFormat } from
|
|
3
|
+
import { IColumnTable, IFFilterTable, IFOrderTable, IFTableEditFormat } from '../type';
|
|
4
4
|
type IFDataProps = {
|
|
5
5
|
idTable: string;
|
|
6
6
|
selectEnable: boolean;
|
|
@@ -12,7 +12,7 @@ export interface KeyHandlerParams {
|
|
|
12
12
|
pagingClient?: boolean;
|
|
13
13
|
totalCount: number;
|
|
14
14
|
columnLastEdit: number;
|
|
15
|
-
|
|
15
|
+
addMoveNewCell: () => void;
|
|
16
16
|
editDisable?: boolean;
|
|
17
17
|
addDisable?: boolean;
|
|
18
18
|
handleDuplicate: () => void;
|
|
@@ -22,10 +22,10 @@ export interface KeyHandlerParams {
|
|
|
22
22
|
getNewParents: (parent: string, index: number) => string;
|
|
23
23
|
fieldChildren?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const handleArrowRight: (e: KeyboardEvent<any>, params: KeyHandlerParams) =>
|
|
26
|
-
export declare const handleArrowLeft: (e: KeyboardEvent<any>, params: KeyHandlerParams) =>
|
|
27
|
-
export declare const handleArrowUp: (e: KeyboardEvent<any>, params: KeyHandlerParams) =>
|
|
28
|
-
export declare const handleArrowDown: (e: KeyboardEvent<any>, params: KeyHandlerParams) =>
|
|
29
|
-
export declare const handleTab: (e: KeyboardEvent<any>, params: KeyHandlerParams) =>
|
|
30
|
-
export declare const handleEnter: (e: KeyboardEvent<any>, params: KeyHandlerParams) =>
|
|
31
|
-
export declare const handleCtrlD: (e: KeyboardEvent<any>, params: KeyHandlerParams) =>
|
|
25
|
+
export declare const handleArrowRight: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
|
|
26
|
+
export declare const handleArrowLeft: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
|
|
27
|
+
export declare const handleArrowUp: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
|
|
28
|
+
export declare const handleArrowDown: (e: KeyboardEvent<any>, params: KeyHandlerParams) => "" | undefined;
|
|
29
|
+
export declare const handleTab: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
|
|
30
|
+
export declare const handleEnter: (e: KeyboardEvent<any>, params: KeyHandlerParams) => "" | undefined;
|
|
31
|
+
export declare const handleCtrlD: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
|