@erpsquad/common 1.9.4 → 1.9.5

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.
@@ -34794,7 +34794,7 @@ var renderer5 = {
34794
34794
  })
34795
34795
  };
34796
34796
  var dropdown_cell_default = renderer5;
34797
- var ArticleCellEditor = React.lazy(async () => await import("./article-cell-editor-JDI676YI-CfFINRRA.esm.js"));
34797
+ var ArticleCellEditor = React.lazy(async () => await import("./article-cell-editor-JDI676YI-D1C2oF1f.esm.js"));
34798
34798
  var renderer6 = {
34799
34799
  kind: GridCellKind.Custom,
34800
34800
  isMatch: (c2) => c2.data.kind === "article-cell",
@@ -36714,6 +36714,7 @@ const MaterialEditableTable = React__default.memo(({
36714
36714
  handleSaveRow(editingRow, values, table2);
36715
36715
  if (!isValid) return;
36716
36716
  if (isValid) {
36717
+ setDisableNextEdit(false);
36717
36718
  clearRow(editingRow.id);
36718
36719
  setTimeout(() => table2.setCreatingRow(true), 200);
36719
36720
  }
@@ -36731,7 +36732,8 @@ const MaterialEditableTable = React__default.memo(({
36731
36732
  (_b = (_a = table2.options).onCreatingRowSave) == null ? void 0 : _b.call(_a, { row: creatingRow, values, table: table2 });
36732
36733
  if (!isValid) return;
36733
36734
  if (isValid) {
36734
- clearRow(creatingRow.id);
36735
+ setDisableNextEdit(false);
36736
+ clearRow("mrt-row-create");
36735
36737
  setTimeout(() => table2.setCreatingRow(true), 200);
36736
36738
  }
36737
36739
  },
@@ -37127,6 +37129,10 @@ const MaterialEditableTable = React__default.memo(({
37127
37129
  },
37128
37130
  onClick: (e3) => {
37129
37131
  var _a, _b, _c, _d;
37132
+ const target = e3.target;
37133
+ const tableCell = target.closest(".MuiTableCell-body");
37134
+ const isInsideTable = tableCell && !tableCell.querySelector(".delete-row");
37135
+ if (!isInsideTable) return;
37130
37136
  const columnDef = column.columnDef;
37131
37137
  const isOnClickEditable = columnDef.isOnClickEditable !== false;
37132
37138
  if (!isOnClickEditable) {
@@ -37152,7 +37158,7 @@ const MaterialEditableTable = React__default.memo(({
37152
37158
  const creatingRowId = ((_a = table2.getState().creatingRow) == null ? void 0 : _a.id) ?? null;
37153
37159
  if (e3.key === "Escape") {
37154
37160
  if (creatingRowId === row2.id) {
37155
- clearRow(row2.id);
37161
+ clearRow("mrt-row-create");
37156
37162
  table2.setCreatingRow(null);
37157
37163
  } else {
37158
37164
  const editingRow = table2.getState().editingRow;
@@ -45719,4 +45725,4 @@ export {
45719
45725
  AreaLineChart as y,
45720
45726
  ChartLegends as z
45721
45727
  };
45722
- //# sourceMappingURL=uom-field-wrapper-CRF6RiBd.esm.js.map
45728
+ //# sourceMappingURL=uom-field-wrapper-RQOElitw.esm.js.map