ywana-core8 0.0.107 → 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 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +7 -4
package/dist/index.umd.js
CHANGED
@@ -4300,10 +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
|
-
console.log('check() ', id, value, t);
|
4306
|
-
var ids = Array.isArray(id) ? id : [id];
|
4307
4315
|
pageContext.check(ids, value);
|
4308
4316
|
setPageContext(Object.assign({}, pageContext));
|
4309
4317
|
return Promise.resolve();
|
@@ -4409,7 +4417,7 @@
|
|
4409
4417
|
id: field.id,
|
4410
4418
|
label: field.label,
|
4411
4419
|
type: field.type,
|
4412
|
-
onChange: field.id === "checked" ?
|
4420
|
+
onChange: field.id === "checked" ? checkOne : field.editable ? change : null,
|
4413
4421
|
|
4414
4422
|
/* checked has it´s own handler */
|
4415
4423
|
options: options
|