react-table-edit 1.2.0 → 1.2.2
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/index.js +14 -13
- package/dist/index.mjs +14 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3945,16 +3945,11 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
3945
3945
|
padding: 0,
|
|
3946
3946
|
textAlign: col.textAlign ? col.textAlign : "left"
|
|
3947
3947
|
},
|
|
3948
|
-
onFocus: (e) => {
|
|
3949
|
-
if (!editDisable && indexRow != indexFocus) {
|
|
3950
|
-
setIndexFocus(indexRow);
|
|
3951
|
-
}
|
|
3952
|
-
e.stopPropagation();
|
|
3953
|
-
},
|
|
3954
3948
|
onClick: (e) => {
|
|
3955
3949
|
if (e.target.nodeName === "DIV" || e.target.nodeName === "TD") {
|
|
3956
3950
|
if (!editDisable && indexRow != indexFocus) {
|
|
3957
3951
|
setIndexFocus(indexRow);
|
|
3952
|
+
focusNewElement(indexCol + 1, indexRow + 1, true);
|
|
3958
3953
|
}
|
|
3959
3954
|
if (selectEnable && editDisable) {
|
|
3960
3955
|
const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
|
|
@@ -4072,13 +4067,19 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
4072
4067
|
}),
|
|
4073
4068
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0, import_classnames14.default)("r-toolbar-item me-25", { "d-none": headerColumns.length > 1 }), "aria-disabled": "false", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_becoxy_icons7.Settings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }),
|
|
4074
4069
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: (0, import_classnames14.default)("r-toolbar-item me-25", { "d-none": editDisable || addDisable }), "aria-disabled": "false", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_reactstrap11.UncontrolledDropdown, { className: "dropdown-user nav-item", children: [
|
|
4075
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_reactstrap11.DropdownToggle, {
|
|
4076
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4070
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_reactstrap11.DropdownToggle, { tag: "div", color: "primary", onClick: (e) => e.preventDefault(), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_becoxy_icons7.Info, { className: "cursor-pointer text-primary" }) }),
|
|
4071
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
4072
|
+
import_reactstrap11.DropdownMenu,
|
|
4073
|
+
{
|
|
4074
|
+
className: "formula-dropdown icon-dropdown",
|
|
4075
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("ul", { className: "mb-0 pe-50", children: [
|
|
4076
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\xE2n b\u1EA3n" }),
|
|
4077
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { style: { fontSize: 13 }, children: "Ch\u1ECDn \xF4 v\xE0 Ctrl + V \u0111\u1EC3 d\xE1n th\xF4ng tin t\u1EEB excel" }),
|
|
4078
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\xE9p h\xE0ng" }),
|
|
4079
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\xE1n h\xE0ng" })
|
|
4080
|
+
] })
|
|
4081
|
+
}
|
|
4082
|
+
)
|
|
4082
4083
|
] }) })
|
|
4083
4084
|
] })
|
|
4084
4085
|
] }) });
|
package/dist/index.mjs
CHANGED
|
@@ -3914,16 +3914,11 @@ var TableEdit = forwardRef4((props, ref) => {
|
|
|
3914
3914
|
padding: 0,
|
|
3915
3915
|
textAlign: col.textAlign ? col.textAlign : "left"
|
|
3916
3916
|
},
|
|
3917
|
-
onFocus: (e) => {
|
|
3918
|
-
if (!editDisable && indexRow != indexFocus) {
|
|
3919
|
-
setIndexFocus(indexRow);
|
|
3920
|
-
}
|
|
3921
|
-
e.stopPropagation();
|
|
3922
|
-
},
|
|
3923
3917
|
onClick: (e) => {
|
|
3924
3918
|
if (e.target.nodeName === "DIV" || e.target.nodeName === "TD") {
|
|
3925
3919
|
if (!editDisable && indexRow != indexFocus) {
|
|
3926
3920
|
setIndexFocus(indexRow);
|
|
3921
|
+
focusNewElement(indexCol + 1, indexRow + 1, true);
|
|
3927
3922
|
}
|
|
3928
3923
|
if (selectEnable && editDisable) {
|
|
3929
3924
|
const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
|
|
@@ -4041,13 +4036,19 @@ var TableEdit = forwardRef4((props, ref) => {
|
|
|
4041
4036
|
}),
|
|
4042
4037
|
/* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item me-25", { "d-none": headerColumns.length > 1 }), "aria-disabled": "false", children: /* @__PURE__ */ jsx16(Settings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }),
|
|
4043
4038
|
/* @__PURE__ */ jsx16("div", { className: classnames9("r-toolbar-item me-25", { "d-none": editDisable || addDisable }), "aria-disabled": "false", children: /* @__PURE__ */ jsxs15(UncontrolledDropdown, { className: "dropdown-user nav-item", children: [
|
|
4044
|
-
/* @__PURE__ */ jsx16(DropdownToggle4, {
|
|
4045
|
-
/* @__PURE__ */ jsx16(
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4039
|
+
/* @__PURE__ */ jsx16(DropdownToggle4, { tag: "div", color: "primary", onClick: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx16(Info2, { className: "cursor-pointer text-primary" }) }),
|
|
4040
|
+
/* @__PURE__ */ jsx16(
|
|
4041
|
+
DropdownMenu4,
|
|
4042
|
+
{
|
|
4043
|
+
className: "formula-dropdown icon-dropdown",
|
|
4044
|
+
children: /* @__PURE__ */ jsxs15("ul", { className: "mb-0 pe-50", children: [
|
|
4045
|
+
/* @__PURE__ */ jsx16("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\xE2n b\u1EA3n" }),
|
|
4046
|
+
/* @__PURE__ */ jsx16("li", { style: { fontSize: 13 }, children: "Ch\u1ECDn \xF4 v\xE0 Ctrl + V \u0111\u1EC3 d\xE1n th\xF4ng tin t\u1EEB excel" }),
|
|
4047
|
+
/* @__PURE__ */ jsx16("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\xE9p h\xE0ng" }),
|
|
4048
|
+
/* @__PURE__ */ jsx16("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\xE0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\xE0ng v\xE0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\xE1n h\xE0ng" })
|
|
4049
|
+
] })
|
|
4050
|
+
}
|
|
4051
|
+
)
|
|
4051
4052
|
] }) })
|
|
4052
4053
|
] })
|
|
4053
4054
|
] }) });
|