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.cjs
CHANGED
@@ -4303,10 +4303,18 @@ var TableFilters = function TableFilters(props) {
|
|
4303
4303
|
|
4304
4304
|
|
4305
4305
|
var TableEditor = function TableEditor(props) {
|
4306
|
-
var
|
4306
|
+
var checkOne = function checkOne(id, field, value) {
|
4307
|
+
try {
|
4308
|
+
console.log("checkOne", id, field, value);
|
4309
|
+
checkAll([id], value);
|
4310
|
+
return Promise.resolve();
|
4311
|
+
} catch (e) {
|
4312
|
+
return Promise.reject(e);
|
4313
|
+
}
|
4314
|
+
};
|
4315
|
+
|
4316
|
+
var check = function check(ids, value) {
|
4307
4317
|
try {
|
4308
|
-
console.log('check() ', id, value, t);
|
4309
|
-
var ids = Array.isArray(id) ? id : [id];
|
4310
4318
|
pageContext.check(ids, value);
|
4311
4319
|
setPageContext(Object.assign({}, pageContext));
|
4312
4320
|
return Promise.resolve();
|
@@ -4412,7 +4420,7 @@ var TableEditor = function TableEditor(props) {
|
|
4412
4420
|
id: field.id,
|
4413
4421
|
label: field.label,
|
4414
4422
|
type: field.type,
|
4415
|
-
onChange: field.id === "checked" ?
|
4423
|
+
onChange: field.id === "checked" ? checkOne : field.editable ? change : null,
|
4416
4424
|
|
4417
4425
|
/* checked has it´s own handler */
|
4418
4426
|
options: options
|