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.umd.js
CHANGED
@@ -6073,16 +6073,16 @@
|
|
6073
6073
|
}
|
6074
6074
|
|
6075
6075
|
function change(index, cellId, cellValue) {
|
6076
|
-
|
6077
|
-
var _Object$assign5;
|
6076
|
+
var _Object$assign5;
|
6078
6077
|
|
6079
|
-
|
6080
|
-
|
6081
|
-
}
|
6078
|
+
var next = Object.assign({}, form, (_Object$assign5 = {}, _Object$assign5[cellId] = cellValue, _Object$assign5));
|
6079
|
+
setForm(next);
|
6082
6080
|
}
|
6083
6081
|
|
6084
6082
|
function save() {
|
6085
|
-
|
6083
|
+
var next = Object.assign({}, form);
|
6084
|
+
delete next.actions;
|
6085
|
+
if (onAdd) onAdd([next]);
|
6086
6086
|
toggle();
|
6087
6087
|
}
|
6088
6088
|
|
@@ -6156,17 +6156,8 @@
|
|
6156
6156
|
setGroupBy = _useState5[1];
|
6157
6157
|
|
6158
6158
|
function change(id, value) {
|
6159
|
-
var nextData = data
|
6160
|
-
|
6161
|
-
var _Object$assign6;
|
6162
|
-
|
6163
|
-
delete row.actions;
|
6164
|
-
var clonedRow = structuredClone(row);
|
6165
|
-
return Object.assign({}, clonedRow, (_Object$assign6 = {}, _Object$assign6[id] = value, _Object$assign6));
|
6166
|
-
} else {
|
6167
|
-
return row;
|
6168
|
-
}
|
6169
|
-
});
|
6159
|
+
var nextData = structuredClone(data);
|
6160
|
+
nextData[id] = value;
|
6170
6161
|
if (onChange) onChange(field.id, nextData);
|
6171
6162
|
}
|
6172
6163
|
|