Change Et2Checkbox to behave closer to legacy et2_widget_checkbox and thereby fixing all sorts of errors with it.

Fix vfsSelectUI to be able to select files again with click on the row and only submit selected files.
Also change Et2Widget.iterateOver and legacy et2_widget.interateOver to be called with new web-component classes like Et2Checkbox. Also make Et2Widget matching all widgets by default like et2_widget.
Remove legacy et2_widget_checkbox code.
This commit is contained in:
ralf
2022-08-07 10:10:33 +02:00
parent 35cff9c978
commit ba35be1d86
7 changed files with 41 additions and 308 deletions

View File

@ -15,6 +15,7 @@
import {egw, IegwAppLocal} from "../jsapi/egw_global";
import {et2_checkType, et2_no_init, et2_validateAttrib} from "./et2_core_common";
import {et2_implements_registry} from "./et2_core_interfaces";
import {Et2Widget} from "./Et2Widget/Et2Widget";
export class ClassWithInterfaces
{
@ -49,6 +50,10 @@ export class ClassWithInterfaces
{
return this.implements(_class_or_interfacename);
}
if (_class_or_interfacename === Et2Widget)
{
return true;
}
return this instanceof _class_or_interfacename;
}
}
@ -273,5 +278,4 @@ export class ClassWithAttributes extends ClassWithInterfaces
return attributes;
}
}
}