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.modern.js
CHANGED
@@ -4296,10 +4296,18 @@ var TableFilters = function TableFilters(props) {
|
|
4296
4296
|
|
4297
4297
|
|
4298
4298
|
var TableEditor = function TableEditor(props) {
|
4299
|
-
var
|
4299
|
+
var checkOne = function checkOne(id, field, value) {
|
4300
|
+
try {
|
4301
|
+
console.log("checkOne", id, field, value);
|
4302
|
+
checkAll([id], value);
|
4303
|
+
return Promise.resolve();
|
4304
|
+
} catch (e) {
|
4305
|
+
return Promise.reject(e);
|
4306
|
+
}
|
4307
|
+
};
|
4308
|
+
|
4309
|
+
var check = function check(ids, value) {
|
4300
4310
|
try {
|
4301
|
-
console.log('check() ', id, value, t);
|
4302
|
-
var ids = Array.isArray(id) ? id : [id];
|
4303
4311
|
pageContext.check(ids, value);
|
4304
4312
|
setPageContext(Object.assign({}, pageContext));
|
4305
4313
|
return Promise.resolve();
|
@@ -4405,7 +4413,7 @@ var TableEditor = function TableEditor(props) {
|
|
4405
4413
|
id: field.id,
|
4406
4414
|
label: field.label,
|
4407
4415
|
type: field.type,
|
4408
|
-
onChange: field.id === "checked" ?
|
4416
|
+
onChange: field.id === "checked" ? checkOne : field.editable ? change : null,
|
4409
4417
|
|
4410
4418
|
/* checked has it´s own handler */
|
4411
4419
|
options: options
|