ywana-core8 0.0.105 → 0.0.109
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.modern.js
CHANGED
@@ -4296,9 +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
|
+
check([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
|
-
var ids = Array.isArray(id) ? id : [id];
|
4302
4311
|
pageContext.check(ids, value);
|
4303
4312
|
setPageContext(Object.assign({}, pageContext));
|
4304
4313
|
return Promise.resolve();
|
@@ -4404,7 +4413,7 @@ var TableEditor = function TableEditor(props) {
|
|
4404
4413
|
id: field.id,
|
4405
4414
|
label: field.label,
|
4406
4415
|
type: field.type,
|
4407
|
-
onChange: field.id === "checked" ?
|
4416
|
+
onChange: field.id === "checked" ? checkOne : field.editable ? change : null,
|
4408
4417
|
|
4409
4418
|
/* checked has it´s own handler */
|
4410
4419
|
options: options
|