ywana-core8 0.0.818 → 0.0.820
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.cjs +8 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +8 -17
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -17
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +7 -14
package/dist/index.modern.js
CHANGED
@@ -6071,16 +6071,16 @@ var CollectionAdder = function CollectionAdder(_ref12) {
|
|
6071
6071
|
}
|
6072
6072
|
|
6073
6073
|
function change(index, cellId, cellValue) {
|
6074
|
-
|
6075
|
-
var _Object$assign5;
|
6074
|
+
var _Object$assign5;
|
6076
6075
|
|
6077
|
-
|
6078
|
-
|
6079
|
-
}
|
6076
|
+
var next = Object.assign({}, form, (_Object$assign5 = {}, _Object$assign5[cellId] = cellValue, _Object$assign5));
|
6077
|
+
setForm(next);
|
6080
6078
|
}
|
6081
6079
|
|
6082
6080
|
function save() {
|
6083
|
-
|
6081
|
+
var next = Object.assign({}, form);
|
6082
|
+
delete next.actions;
|
6083
|
+
if (onAdd) onAdd([next]);
|
6084
6084
|
toggle();
|
6085
6085
|
}
|
6086
6086
|
|
@@ -6154,17 +6154,8 @@ var TableEditor$3 = function TableEditor(props) {
|
|
6154
6154
|
setGroupBy = _useState5[1];
|
6155
6155
|
|
6156
6156
|
function change(id, value) {
|
6157
|
-
var nextData = data
|
6158
|
-
|
6159
|
-
var _Object$assign6;
|
6160
|
-
|
6161
|
-
delete row.actions;
|
6162
|
-
var clonedRow = structuredClone(row);
|
6163
|
-
return Object.assign({}, clonedRow, (_Object$assign6 = {}, _Object$assign6[id] = value, _Object$assign6));
|
6164
|
-
} else {
|
6165
|
-
return row;
|
6166
|
-
}
|
6167
|
-
});
|
6157
|
+
var nextData = structuredClone(data);
|
6158
|
+
nextData[id] = value;
|
6168
6159
|
if (onChange) onChange(field.id, nextData);
|
6169
6160
|
}
|
6170
6161
|
|