@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.
- package/dist/{article-cell-editor-JDI676YI-Jf8uGND6.js → article-cell-editor-JDI676YI-CCRqt_2A.js} +2 -2
- package/dist/{article-cell-editor-JDI676YI-Jf8uGND6.js.map → article-cell-editor-JDI676YI-CCRqt_2A.js.map} +1 -1
- package/dist/{article-cell-editor-JDI676YI-CfFINRRA.esm.js → article-cell-editor-JDI676YI-D1C2oF1f.esm.js} +2 -2
- package/dist/{article-cell-editor-JDI676YI-CfFINRRA.esm.js.map → article-cell-editor-JDI676YI-D1C2oF1f.esm.js.map} +1 -1
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{uom-field-wrapper-DYhFquqb.js → uom-field-wrapper-CFgiU89g.js} +4 -4
- package/dist/{uom-field-wrapper-DYhFquqb.js.map → uom-field-wrapper-CFgiU89g.js.map} +1 -1
- package/dist/{uom-field-wrapper-CRF6RiBd.esm.js → uom-field-wrapper-RQOElitw.esm.js} +10 -4
- package/dist/{uom-field-wrapper-CRF6RiBd.esm.js.map → uom-field-wrapper-RQOElitw.esm.js.map} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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
|
-
|
|
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(
|
|
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-
|
|
45728
|
+
//# sourceMappingURL=uom-field-wrapper-RQOElitw.esm.js.map
|