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.cjs
CHANGED
@@ -6079,16 +6079,16 @@ var CollectionAdder = function CollectionAdder(_ref12) {
|
|
6079
6079
|
}
|
6080
6080
|
|
6081
6081
|
function change(index, cellId, cellValue) {
|
6082
|
-
|
6083
|
-
var _Object$assign5;
|
6082
|
+
var _Object$assign5;
|
6084
6083
|
|
6085
|
-
|
6086
|
-
|
6087
|
-
}
|
6084
|
+
var next = Object.assign({}, form, (_Object$assign5 = {}, _Object$assign5[cellId] = cellValue, _Object$assign5));
|
6085
|
+
setForm(next);
|
6088
6086
|
}
|
6089
6087
|
|
6090
6088
|
function save() {
|
6091
|
-
|
6089
|
+
var next = Object.assign({}, form);
|
6090
|
+
delete next.actions;
|
6091
|
+
if (onAdd) onAdd([next]);
|
6092
6092
|
toggle();
|
6093
6093
|
}
|
6094
6094
|
|
@@ -6162,17 +6162,8 @@ var TableEditor$3 = function TableEditor(props) {
|
|
6162
6162
|
setGroupBy = _useState5[1];
|
6163
6163
|
|
6164
6164
|
function change(id, value) {
|
6165
|
-
var nextData = data
|
6166
|
-
|
6167
|
-
var _Object$assign6;
|
6168
|
-
|
6169
|
-
delete row.actions;
|
6170
|
-
var clonedRow = structuredClone(row);
|
6171
|
-
return Object.assign({}, clonedRow, (_Object$assign6 = {}, _Object$assign6[id] = value, _Object$assign6));
|
6172
|
-
} else {
|
6173
|
-
return row;
|
6174
|
-
}
|
6175
|
-
});
|
6165
|
+
var nextData = structuredClone(data);
|
6166
|
+
nextData[id] = value;
|
6176
6167
|
if (onChange) onChange(field.id, nextData);
|
6177
6168
|
}
|
6178
6169
|
|