kelt-ui-kit-react 1.8.3 → 1.8.4
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/badge/Badge.d.ts +1 -3
- package/dist/button/button.interface.d.ts +1 -1
- package/dist/dataTable/DataTable.d.ts +3 -17
- package/dist/dataTable/dataTable.interface.d.ts +3 -21
- package/dist/dataTable/dataTableActions/DataTableAction.d.ts +2 -2
- package/dist/dataTable/dataTableColumn/DataTableColumn.d.ts +7 -13
- package/dist/dataTable/dataTableLoading/DataTableLoading.d.ts +3 -1
- package/dist/dataTable/dataTableRow/DataTableRow.d.ts +3 -5
- package/dist/expands/expand/expand.d.ts +1 -1
- package/dist/form/form.enum.d.ts +0 -1
- package/dist/form/input/Input.d.ts +0 -3
- package/dist/form/inputNumber/InputNumber.d.ts +2 -0
- package/dist/icon/Icon.d.ts +1 -1
- package/dist/icon/icon.interface.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2836 -3652
- package/dist/overlayPanel/OverlayPanel.d.ts +1 -3
- package/dist/select/Select.d.ts +1 -4
- package/dist/select/selectOption.interface.d.ts +0 -1
- package/dist/style.css +1 -1
- package/dist/tabs/Tabs.d.ts +1 -2
- package/package.json +1 -1
- package/src/badge/Badge.tsx +1 -9
- package/src/badge/badge.css +0 -4
- package/src/button/Button.tsx +1 -1
- package/src/button/button.interface.tsx +1 -1
- package/src/card/card.css +3 -23
- package/src/card/cardAction/CardAction.tsx +4 -4
- package/src/damier/damier.css +3 -2
- package/src/dataTable/DataTable.tsx +45 -670
- package/src/dataTable/DataTable.view.tsx +14 -47
- package/src/dataTable/dataTable.css +5 -153
- package/src/dataTable/dataTable.interface.ts +3 -21
- package/src/dataTable/dataTableActions/DataTableAction.tsx +2 -2
- package/src/dataTable/dataTableColumn/DataTableColumn.tsx +14 -64
- package/src/dataTable/dataTableLoading/DataTableLoading.tsx +15 -4
- package/src/dataTable/dataTableRow/DataTableRow.tsx +33 -60
- package/src/expands/Expands.tsx +16 -2
- package/src/expands/expand/expand.tsx +18 -6
- package/src/form/Form.tsx +12 -13
- package/src/form/form.css +2 -13
- package/src/form/form.enum.ts +0 -1
- package/src/form/input/Input.tsx +7 -61
- package/src/form/input/input.css +1 -23
- package/src/form/inputNumber/InputNumber.tsx +11 -6
- package/src/form/inputPrice/InputPrice.tsx +4 -2
- package/src/icon/Icon.tsx +2 -6
- package/src/icon/icon.interface.tsx +0 -1
- package/src/index.ts +0 -2
- package/src/overlayPanel/OverlayPanel.tsx +10 -23
- package/src/overlayPanel/overlay.context.tsx +4 -6
- package/src/overlayPanel/overlayPanel.css +1 -10
- package/src/select/Select.tsx +38 -134
- package/src/select/select.css +14 -65
- package/src/select/selectOption.interface.ts +0 -1
- package/src/sidebar/Sidebar.tsx +80 -9
- package/src/sidebar/sidebar.css +18 -1
- package/src/tabs/Tabs.tsx +1 -19
- package/dist/_core/type/generiqueType.d.ts +0 -4
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/DataTableColumnFilter.d.ts +0 -10
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDate/DataTableColumnFilterDate.d.ts +0 -9
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDateRange/dataTableColumnFilterDateRange.d.ts +0 -9
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterEnum/DataTableColumnFilterEnum.d.ts +0 -13
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterString/DataTableColumnFilterString.d.ts +0 -9
- package/dist/dataTable/dataTableColumn/dataTableColumnSort/DataTableColumnSort.d.ts +0 -11
- package/dist/dataTable/dataTableFilters/DataTableFilters.d.ts +0 -7
- package/dist/dataTable/dataTableRow/dataTableRowOverlay/DataTableRowOverlay.d.ts +0 -12
- package/dist/dataTable/dataTableRow/dataTableRowValue/DataTableRowValue.d.ts +0 -11
- package/kelt-ui-kit-react-1.6.9.tgz +0 -0
- package/package/README.md +0 -46
- package/package/index.html +0 -20
- package/package/package.json +0 -56
- package/package/public/favicon.ico +0 -0
- package/package/public/index.html +0 -18
- package/package/public/logo192.png +0 -0
- package/package/public/logo512.png +0 -0
- package/package/public/manifest.json +0 -25
- package/package/public/robots.txt +0 -3
- package/package/src/App.css +0 -11
- package/package/src/App.menu.tsx +0 -249
- package/package/src/App.routes.tsx +0 -16
- package/package/src/App.tsx +0 -30
- package/package/src/_core/hooks/HistoryProvider.tsx +0 -25
- package/package/src/_core/hooks/ImageChecker.tsx +0 -26
- package/package/src/_core/hooks/imageExist.tsx +0 -9
- package/package/src/_core/hooks/isEAN13.tsx +0 -16
- package/package/src/_core/hooks/objectToQueryParams.tsx +0 -32
- package/package/src/_core/hooks/useCurrency.tsx +0 -18
- package/package/src/_core/hooks/useDateutils.ts +0 -64
- package/package/src/_core/hooks/useIsMobile.ts +0 -18
- package/package/src/_core/hooks/useToken.tsx +0 -19
- package/package/src/_core/hooks/useValidate.tsx +0 -18
- package/package/src/_core/hooks/widgetSupport.tsx +0 -39
- package/package/src/action/Action.view.tsx +0 -21
- package/package/src/action/ButtonAction.tsx +0 -32
- package/package/src/action/action.css +0 -20
- package/package/src/badge/Badge.tsx +0 -34
- package/package/src/badge/Badge.view.tsx +0 -15
- package/package/src/badge/badge.css +0 -55
- package/package/src/button/Button.tsx +0 -46
- package/package/src/button/Button.view.tsx +0 -85
- package/package/src/button/button.css +0 -53
- package/package/src/button/button.interface.tsx +0 -21
- package/package/src/button/buttonActions/ButtonActions.tsx +0 -104
- package/package/src/button/buttonFile/ButtonFile.tsx +0 -59
- package/package/src/button/buttonFile/ButtonFile.view.tsx +0 -70
- package/package/src/button/buttonFilters/ButtonFilters.tsx +0 -102
- package/package/src/button/buttonFilters/buttonFilters.css +0 -22
- package/package/src/card/Card.tsx +0 -125
- package/package/src/card/Card.view.tsx +0 -73
- package/package/src/card/card.css +0 -145
- package/package/src/card/card.interface.tsx +0 -9
- package/package/src/card/cardAction/CardAction.tsx +0 -135
- package/package/src/card/cardAction/cardAction.css +0 -10
- package/package/src/card/cardAction.interface.tsx +0 -10
- package/package/src/card/hook/useCardInteractions.tsx +0 -30
- package/package/src/carousel/Carousel.css +0 -44
- package/package/src/carousel/Carousel.tsx +0 -115
- package/package/src/carousel/Carousel.view.tsx +0 -13
- package/package/src/damier/Damier.tsx +0 -64
- package/package/src/damier/Damier.view.tsx +0 -31
- package/package/src/damier/damier.css +0 -50
- package/package/src/damier/damierCell/DamierCell.tsx +0 -18
- package/package/src/damier/damierCell/damierCell.interface.tsx +0 -5
- package/package/src/dataTable/DataTable.tsx +0 -259
- package/package/src/dataTable/DataTable.view.tsx +0 -62
- package/package/src/dataTable/dataTable.css +0 -30
- package/package/src/dataTable/dataTable.interface.ts +0 -30
- package/package/src/dataTable/dataTableActions/DataTableAction.tsx +0 -44
- package/package/src/dataTable/dataTableColumn/DataTableColumn.tsx +0 -27
- package/package/src/dataTable/dataTableLoading/DataTableLoading.tsx +0 -21
- package/package/src/dataTable/dataTableRow/DataTableRow.tsx +0 -54
- package/package/src/datePicker/DatePicker.tsx +0 -110
- package/package/src/datePicker/DatePicker.view.tsx +0 -9
- package/package/src/datePicker/datePicker.css +0 -77
- package/package/src/expands/Expands.tsx +0 -42
- package/package/src/expands/Expands.view.tsx +0 -90
- package/package/src/expands/expand/expand.interface.tsx +0 -8
- package/package/src/expands/expand/expand.tsx +0 -75
- package/package/src/expands/expands.css +0 -97
- package/package/src/filAriane/FilAriane.tsx +0 -57
- package/package/src/filAriane/FilAriane.view.tsx +0 -28
- package/package/src/filAriane/filAriane.css +0 -23
- package/package/src/filAriane/filAriane.interface.tsx +0 -6
- package/package/src/form/Form.tsx +0 -279
- package/package/src/form/Form.view.tsx +0 -59
- package/package/src/form/form.css +0 -62
- package/package/src/form/form.enum.ts +0 -13
- package/package/src/form/form.interface.tsx +0 -37
- package/package/src/form/input/Input.tsx +0 -106
- package/package/src/form/input/input.css +0 -26
- package/package/src/form/inputNumber/InputNumber.tsx +0 -132
- package/package/src/form/inputNumber/InputNumber.view.tsx +0 -15
- package/package/src/form/inputPrice/InputPrice.tsx +0 -42
- package/package/src/form/inputPrice/InputPrice.view.tsx +0 -15
- package/package/src/form/textArea/TextArea.tsx +0 -59
- package/package/src/form/textArea/TextArea.view.tsx +0 -34
- package/package/src/form/textArea/textArea.css +0 -9
- package/package/src/grid/Grid.tsx +0 -21
- package/package/src/grid/Grid.view.tsx +0 -24
- package/package/src/grid/col/Col.tsx +0 -15
- package/package/src/grid/col/colStyled/ColStyled.tsx +0 -41
- package/package/src/grid/container/Container.tsx +0 -8
- package/package/src/grid/container/container.css +0 -5
- package/package/src/grid/grid.interface.tsx +0 -7
- package/package/src/grid/row/Row.tsx +0 -12
- package/package/src/grid/row/row.css +0 -18
- package/package/src/header/Header.tsx +0 -62
- package/package/src/header/Header.view.tsx +0 -5
- package/package/src/header/header.css +0 -26
- package/package/src/header/header.interface.tsx +0 -10
- package/package/src/home/Home.tsx +0 -3
- package/package/src/icon/Icon.tsx +0 -6
- package/package/src/icon/Icons.view.tsx +0 -29
- package/package/src/icon/icon.css +0 -20
- package/package/src/icon/icon.interface.tsx +0 -6
- package/package/src/icon/iconSize.enum.ts +0 -7
- package/package/src/index.css +0 -502
- package/package/src/index.ts +0 -58
- package/package/src/loader/Loader.tsx +0 -37
- package/package/src/loader/Loader.view.tsx +0 -20
- package/package/src/loader/loader.css +0 -30
- package/package/src/logo.svg +0 -1
- package/package/src/main.tsx +0 -10
- package/package/src/menus/Menus.tsx +0 -42
- package/package/src/menus/Menus.view.tsx +0 -39
- package/package/src/menus/menu/Menu.tsx +0 -17
- package/package/src/menus/menu/menu.interface.tsx +0 -9
- package/package/src/menus/menus.css +0 -47
- package/package/src/message/Message.tsx +0 -30
- package/package/src/message/Message.view.tsx +0 -22
- package/package/src/message/message.css +0 -29
- package/package/src/modal/Modal.tsx +0 -59
- package/package/src/modal/Modal.view.tsx +0 -26
- package/package/src/modal/modal.css +0 -71
- package/package/src/notFound/NotFound.tsx +0 -3
- package/package/src/overlayPanel/OverlayPanel.tsx +0 -195
- package/package/src/overlayPanel/OverlayPanel.view.tsx +0 -25
- package/package/src/overlayPanel/overlay.context.tsx +0 -28
- package/package/src/overlayPanel/overlayPanel.css +0 -35
- package/package/src/overlayPanel/overlayPanelStyled/OverlayPanelStyled.tsx +0 -18
- package/package/src/pdfViewer/PdfViewer.tsx +0 -73
- package/package/src/pdfViewer/PdfViewer.view.tsx +0 -5
- package/package/src/quantity/Quantity.tsx +0 -103
- package/package/src/quantity/Quantity.view.tsx +0 -0
- package/package/src/quantity/quantity.css +0 -26
- package/package/src/search/Search.tsx +0 -161
- package/package/src/search/Search.view.tsx +0 -14
- package/package/src/search/search.css +0 -59
- package/package/src/select/Select.tsx +0 -103
- package/package/src/select/Select.view.tsx +0 -71
- package/package/src/select/select.css +0 -69
- package/package/src/select/selectOption.interface.ts +0 -4
- package/package/src/sidebar/Sidebar.tsx +0 -208
- package/package/src/sidebar/Sidebar.view.tsx +0 -17
- package/package/src/sidebar/sidebar.css +0 -104
- package/package/src/sidebarData/SidebarData.tsx +0 -19
- package/package/src/sidebarData/SidebarData.view.tsx +0 -19
- package/package/src/sidebarData/sidebarData.css +0 -27
- package/package/src/tabs/Tabs.tsx +0 -90
- package/package/src/tabs/Tabs.view.tsx +0 -20
- package/package/src/tabs/tabs.css +0 -24
- package/package/src/toaster/Toaster.tsx +0 -55
- package/package/src/toaster/Toaster.view.tsx +0 -24
- package/package/src/toaster/store/useToasterStore.tsx +0 -41
- package/package/src/toaster/toaster.css +0 -87
- package/package/tsconfig.json +0 -28
- package/package/vite.config.ts +0 -20
- package/package/vite.config.ts.timestamp-1733262892554-a13dfef6e8a29.mjs +0 -24
- package/package/vite.config.ts.timestamp-1757847121745-e5a5bf54b81b.mjs +0 -28
- package/package/vite.config.ts.timestamp-1759742478362-4ac5c5a7db34b.mjs +0 -28
- package/src/_core/type/generiqueType.tsx +0 -4
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/DataTableColumnFilter.tsx +0 -36
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilter.css +0 -0
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDate/DataTableColumnFilterDate.tsx +0 -39
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDateRange/dataTableColumnFilterDateRange.tsx +0 -80
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterEnum/DataTableColumnFilterEnum.tsx +0 -89
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterString/DataTableColumnFilterString.tsx +0 -37
- package/src/dataTable/dataTableColumn/dataTableColumnSort/DataTableColumnSort.tsx +0 -42
- package/src/dataTable/dataTableFilters/DataTableFilters.tsx +0 -91
- package/src/dataTable/dataTableFilters/dataTableFilters.css +0 -16
- package/src/dataTable/dataTableRow/dataTableRowOverlay/DataTableRowOverlay.tsx +0 -80
- package/src/dataTable/dataTableRow/dataTableRowValue/DataTableRowValue.tsx +0 -123
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { useRef, useState } from "react";
|
|
2
|
-
import { Button } from "../../../button/Button";
|
|
3
|
-
import { OverlayPanel } from "../../../overlayPanel/OverlayPanel";
|
|
4
|
-
import { DataTableColumnsInterface } from "../../dataTable.interface";
|
|
5
|
-
import { DataTableRowValue } from "../dataTableRowValue/DataTableRowValue";
|
|
6
|
-
|
|
7
|
-
type DataTableRowOverlayProps = {
|
|
8
|
-
row: any;
|
|
9
|
-
column: DataTableColumnsInterface<any>;
|
|
10
|
-
value: string;
|
|
11
|
-
refRow: React.RefObject<HTMLTableCellElement>;
|
|
12
|
-
onClose?: (close: boolean) => void;
|
|
13
|
-
onEditColumnByOverlay?: (newRow: any) => void;
|
|
14
|
-
};
|
|
15
|
-
export const DataTableRowOverlay = ({
|
|
16
|
-
row,
|
|
17
|
-
refRow,
|
|
18
|
-
value,
|
|
19
|
-
onClose,
|
|
20
|
-
column,
|
|
21
|
-
onEditColumnByOverlay,
|
|
22
|
-
}: DataTableRowOverlayProps) => {
|
|
23
|
-
const [inputValue, setInputValue] = useState(value);
|
|
24
|
-
const formRef = useRef<HTMLFormElement>(null);
|
|
25
|
-
|
|
26
|
-
const onChange = (newValue: any) => {
|
|
27
|
-
setInputValue(newValue);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const onSubmit = (e: React.FormEvent<HTMLFormElement>) => {
|
|
31
|
-
e.preventDefault();
|
|
32
|
-
if (onEditColumnByOverlay) {
|
|
33
|
-
const newRow = { ...row, [column.id]: inputValue };
|
|
34
|
-
onEditColumnByOverlay(newRow);
|
|
35
|
-
}
|
|
36
|
-
if (onClose) {
|
|
37
|
-
onClose(true);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const handleButtonClick = (
|
|
42
|
-
e: React.MouseEvent<HTMLButtonElement, MouseEvent>,
|
|
43
|
-
) => {
|
|
44
|
-
e.preventDefault();
|
|
45
|
-
formRef.current?.requestSubmit();
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const handleClose = () => {
|
|
49
|
-
if (onClose) {
|
|
50
|
-
onClose(true);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<OverlayPanel
|
|
56
|
-
show={true}
|
|
57
|
-
position="bottomLeft"
|
|
58
|
-
closeOverlay={handleClose}
|
|
59
|
-
referenceElement={refRow?.current ?? undefined}
|
|
60
|
-
children={
|
|
61
|
-
<div className="d-flex flex-column pt-3">
|
|
62
|
-
<form onSubmit={onSubmit} ref={formRef}>
|
|
63
|
-
<DataTableRowValue
|
|
64
|
-
editable={true}
|
|
65
|
-
column={column}
|
|
66
|
-
value={inputValue}
|
|
67
|
-
row={row}
|
|
68
|
-
onChange={onChange}
|
|
69
|
-
/>
|
|
70
|
-
{onEditColumnByOverlay && (
|
|
71
|
-
<div className="d-flex justify-content-end mt-2">
|
|
72
|
-
<Button title="Valider" onClick={handleButtonClick} />
|
|
73
|
-
</div>
|
|
74
|
-
)}
|
|
75
|
-
</form>
|
|
76
|
-
</div>
|
|
77
|
-
}
|
|
78
|
-
/>
|
|
79
|
-
);
|
|
80
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from "react";
|
|
2
|
-
import { Select } from "../../../select/Select";
|
|
3
|
-
import { DataTableColumnsInterface } from "../../dataTable.interface";
|
|
4
|
-
|
|
5
|
-
type DataTableRowValueProps = {
|
|
6
|
-
column: DataTableColumnsInterface<any>;
|
|
7
|
-
value: any;
|
|
8
|
-
row: any;
|
|
9
|
-
editable?: boolean;
|
|
10
|
-
onChange?: (value: any) => void;
|
|
11
|
-
};
|
|
12
|
-
export const DataTableRowValue = ({
|
|
13
|
-
column,
|
|
14
|
-
row,
|
|
15
|
-
value,
|
|
16
|
-
editable,
|
|
17
|
-
onChange,
|
|
18
|
-
}: DataTableRowValueProps) => {
|
|
19
|
-
const [draftValue, setDraftValue] = useState(value ?? "");
|
|
20
|
-
const editOnEnter = column.onEditTrigger === "enter";
|
|
21
|
-
const skipNextBlurCommit = useRef(false);
|
|
22
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
23
|
-
const wasEditableRef = useRef(false);
|
|
24
|
-
|
|
25
|
-
const selectInputText = () => {
|
|
26
|
-
try {
|
|
27
|
-
inputRef.current?.select();
|
|
28
|
-
} catch {
|
|
29
|
-
// Some input types (e.g. date) may not support text selection.
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const commitValue = (nextValue: any) => {
|
|
34
|
-
if (column.onEdit) {
|
|
35
|
-
column.onEdit(nextValue, row);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
setDraftValue(value ?? "");
|
|
41
|
-
}, [value]);
|
|
42
|
-
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
if (editable && !wasEditableRef.current) {
|
|
45
|
-
inputRef.current?.focus();
|
|
46
|
-
selectInputText();
|
|
47
|
-
}
|
|
48
|
-
wasEditableRef.current = !!editable;
|
|
49
|
-
}, [editable]);
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<>
|
|
53
|
-
{editable ? (
|
|
54
|
-
column.type === "select" ? (
|
|
55
|
-
<Select
|
|
56
|
-
options={column.options ?? []}
|
|
57
|
-
value={value}
|
|
58
|
-
onChange={(e) => {
|
|
59
|
-
if (onChange) {
|
|
60
|
-
onChange(e);
|
|
61
|
-
}
|
|
62
|
-
if (column.onChange) {
|
|
63
|
-
column.onChange(e, row);
|
|
64
|
-
}
|
|
65
|
-
if (column.onEdit) {
|
|
66
|
-
column.onEdit(e, row);
|
|
67
|
-
}
|
|
68
|
-
}}
|
|
69
|
-
/>
|
|
70
|
-
) : (
|
|
71
|
-
<input
|
|
72
|
-
ref={inputRef}
|
|
73
|
-
type={column.type}
|
|
74
|
-
value={editOnEnter ? draftValue : value}
|
|
75
|
-
step="0.01"
|
|
76
|
-
style={{
|
|
77
|
-
textAlign: column.alignText
|
|
78
|
-
? column.alignText
|
|
79
|
-
: column.align || "left",
|
|
80
|
-
}}
|
|
81
|
-
onFocus={selectInputText}
|
|
82
|
-
onChange={(e) => {
|
|
83
|
-
const nextValue = e.target.value;
|
|
84
|
-
if (onChange) {
|
|
85
|
-
onChange(nextValue);
|
|
86
|
-
}
|
|
87
|
-
if (column.onChange) {
|
|
88
|
-
column.onChange(nextValue, row);
|
|
89
|
-
}
|
|
90
|
-
if (editOnEnter) {
|
|
91
|
-
setDraftValue(nextValue);
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
commitValue(nextValue);
|
|
95
|
-
}}
|
|
96
|
-
onKeyDown={(e) => {
|
|
97
|
-
if (editOnEnter && e.key === "Enter") {
|
|
98
|
-
skipNextBlurCommit.current = true;
|
|
99
|
-
commitValue(draftValue);
|
|
100
|
-
}
|
|
101
|
-
}}
|
|
102
|
-
onBlur={() => {
|
|
103
|
-
if (!editOnEnter) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
if (skipNextBlurCommit.current) {
|
|
107
|
-
skipNextBlurCommit.current = false;
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (draftValue !== value) {
|
|
111
|
-
commitValue(draftValue);
|
|
112
|
-
}
|
|
113
|
-
}}
|
|
114
|
-
/>
|
|
115
|
-
)
|
|
116
|
-
) : column.format ? (
|
|
117
|
-
column.format(value)
|
|
118
|
-
) : (
|
|
119
|
-
value
|
|
120
|
-
)}
|
|
121
|
-
</>
|
|
122
|
-
);
|
|
123
|
-
};
|