react-table-edit 1.4.14 → 1.4.15

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.mjs CHANGED
@@ -42236,7 +42236,7 @@ const ToolbarBottom = ({ handleAdd, handleDuplicate, handleInsertBefore, handleI
42236
42236
  return ((item.align === 'center') ? jsx("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-center-${index}`) : '');
42237
42237
  }) }), jsxs("div", { className: "r-toolbar-right", children: [toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
42238
42238
  return ((item.align === 'right') ? jsx("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-right-${index}`) : '');
42239
- }), jsx("div", { className: classnames('r-toolbar-item me-25', { 'd-none': headerColumns.length > 1 }), "aria-disabled": "false", children: jsx(SvgSettings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }), jsx("div", { className: classnames('r-toolbar-item me-25', { 'd-none': editDisable || addDisable }), "aria-disabled": "false", children: jsxs(UncontrolledDropdown, { className: 'dropdown-user nav-item', children: [jsx(DropdownToggle$1, { tag: 'div', color: "primary", onClick: (e) => e.preventDefault(), children: jsx(SvgInfo, { className: "cursor-pointer text-primary" }) }), jsx(DropdownMenu$1, { className: 'formula-dropdown icon-dropdown', children: jsxs("ul", { className: "mb-0 pe-50", children: [jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\u00E2n b\u1EA3n" }), jsx("li", { style: { fontSize: 13 }, children: "Ch\u1ECDn \u00F4 v\u00E0 Ctrl + V \u0111\u1EC3 d\u00E1n th\u00F4ng tin t\u1EEB excel" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\u00E9p h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\u00E1n h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n Ctrl + Shift + \u2193 \u0111\u1EC3 sao ch\u00E9p d\u1EEF li\u1EC7u \u00F4 cho c\u00E1c d\u00F2ng d\u01B0\u1EDBi" })] }) })] }) })] })] }) }));
42239
+ }), jsx("div", { className: classnames('r-toolbar-item me-25', { 'd-none': headerColumns.length > 1 }), "aria-disabled": "false", children: jsx(SvgSettings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }), jsx("div", { className: classnames('r-toolbar-item me-25', { 'd-none': editDisable || addDisable }), "aria-disabled": "false", children: jsxs(UncontrolledDropdown, { className: 'dropdown-user nav-item', children: [jsx(DropdownToggle$1, { tag: 'div', color: "primary", onClick: (e) => e.preventDefault(), children: jsx(SvgInfo, { className: "cursor-pointer text-primary" }) }), jsx(DropdownMenu$1, { className: 'formula-dropdown icon-dropdown', children: jsxs("ul", { className: "mb-0 pe-50", children: [jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\u00E2n b\u1EA3n" }), jsx("li", { style: { fontSize: 13 }, children: "Ch\u1ECDn \u00F4 v\u00E0 Ctrl + V \u0111\u1EC3 d\u00E1n th\u00F4ng tin t\u1EEB excel" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\u00E9p h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\u00E1n h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n Ctrl + Shift + \u2193 \u0111\u1EC3 sao ch\u00E9p d\u1EEF li\u1EC7u \u00F4 cho c\u00E1c d\u00F2ng d\u01B0\u1EDBi" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n Ctrl + Shift + \u2191 \u0111\u1EC3 sao ch\u00E9p d\u1EEF li\u1EC7u \u00F4 cho c\u00E1c d\u00F2ng tr\u00EAn" })] }) })] }) })] })] }) }));
42240
42240
  };
42241
42241
 
42242
42242
  const handleArrowRight = (e, params) => {
@@ -43059,7 +43059,6 @@ const TableEdit = forwardRef((props, ref) => {
43059
43059
  }
43060
43060
  });
43061
43061
  const column = getColumn(indexCol, index);
43062
- console.log(column);
43063
43062
  if (column) {
43064
43063
  if ((!column.disabledCondition || !column.disabledCondition(dataSource[currenRowIndex + 0])) && column.editEnable && column.onPasteValidate) {
43065
43064
  const rs = await column.onPasteValidate(stringData.join(','), currenRowIndex + 0, dataSource[currenRowIndex + 0]);
@@ -43093,7 +43092,7 @@ const TableEdit = forwardRef((props, ref) => {
43093
43092
  dataRow[column.field] = stringData;
43094
43093
  }
43095
43094
  if (column.callback) {
43096
- column.callback(rs, currenRowIndex + indexRow);
43095
+ column.callback(rs, currenRowIndex + indexRow, dataRow);
43097
43096
  }
43098
43097
  }
43099
43098
  else {
@@ -43111,7 +43110,7 @@ const TableEdit = forwardRef((props, ref) => {
43111
43110
  dataRow[column.field] = date;
43112
43111
  }
43113
43112
  if (column.callback) {
43114
- column.callback(date, currenRowIndex + indexRow);
43113
+ column.callback(date, currenRowIndex + indexRow, dataRow);
43115
43114
  }
43116
43115
  }
43117
43116
  else {
@@ -43128,7 +43127,7 @@ const TableEdit = forwardRef((props, ref) => {
43128
43127
  dataRow[column.field] = number;
43129
43128
  }
43130
43129
  if (column.callback) {
43131
- column.callback(number, currenRowIndex + indexRow);
43130
+ column.callback(number, currenRowIndex + indexRow, dataRow);
43132
43131
  }
43133
43132
  }
43134
43133
  else {
@@ -43144,7 +43143,7 @@ const TableEdit = forwardRef((props, ref) => {
43144
43143
  dataRow[column.field] = stringData;
43145
43144
  }
43146
43145
  if (column.callback) {
43147
- column.callback(stringData, currenRowIndex + indexRow);
43146
+ column.callback(stringData, currenRowIndex + indexRow, dataRow);
43148
43147
  }
43149
43148
  }
43150
43149
  else {
@@ -43157,7 +43156,7 @@ const TableEdit = forwardRef((props, ref) => {
43157
43156
  dataRow[column.field] = stringData;
43158
43157
  }
43159
43158
  if (column.callback) {
43160
- column.callback(rs, currenRowIndex + indexRow);
43159
+ column.callback(rs, currenRowIndex + indexRow, dataRow);
43161
43160
  }
43162
43161
  }
43163
43162
  else {
@@ -43173,7 +43172,7 @@ const TableEdit = forwardRef((props, ref) => {
43173
43172
  dataRow[column.field] = stringData;
43174
43173
  }
43175
43174
  if (column.callback) {
43176
- column.callback(stringData, currenRowIndex + indexRow);
43175
+ column.callback(stringData, currenRowIndex + indexRow, dataRow);
43177
43176
  }
43178
43177
  }
43179
43178
  }