ywana-core8 0.0.104 → 0.0.108
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 +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +7 -3
package/dist/index.umd.js
CHANGED
@@ -4300,9 +4300,18 @@
|
|
4300
4300
|
|
4301
4301
|
|
4302
4302
|
var TableEditor = function TableEditor(props) {
|
4303
|
-
var
|
4303
|
+
var checkOne = function checkOne(id, field, value) {
|
4304
|
+
try {
|
4305
|
+
console.log("checkOne", id, field, value);
|
4306
|
+
checkAll([id], value);
|
4307
|
+
return Promise.resolve();
|
4308
|
+
} catch (e) {
|
4309
|
+
return Promise.reject(e);
|
4310
|
+
}
|
4311
|
+
};
|
4312
|
+
|
4313
|
+
var check = function check(ids, value) {
|
4304
4314
|
try {
|
4305
|
-
var ids = Array.isArray(id) ? id : [id];
|
4306
4315
|
pageContext.check(ids, value);
|
4307
4316
|
setPageContext(Object.assign({}, pageContext));
|
4308
4317
|
return Promise.resolve();
|
@@ -4408,7 +4417,7 @@
|
|
4408
4417
|
id: field.id,
|
4409
4418
|
label: field.label,
|
4410
4419
|
type: field.type,
|
4411
|
-
onChange: field.id === "checked" ?
|
4420
|
+
onChange: field.id === "checked" ? checkOne : field.editable ? change : null,
|
4412
4421
|
|
4413
4422
|
/* checked has it´s own handler */
|
4414
4423
|
options: options
|