mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Add missing validator variables
This commit is contained in:
parent
68849a2b79
commit
2b848622fb
@ -3,7 +3,7 @@ import {Et2Widget} from "../Et2Widget/Et2Widget";
|
||||
import {css, dedupeMixin, LitElement, PropertyValues} from "@lion/core";
|
||||
import {Required} from "../Validators/Required";
|
||||
import {ManualMessage} from "../Validators/ManualMessage";
|
||||
import {LionValidationFeedback} from "@lion/form-core";
|
||||
import {LionValidationFeedback, Validator} from "@lion/form-core";
|
||||
|
||||
/**
|
||||
* This mixin will allow any LitElement to become an Et2InputWidget
|
||||
@ -48,6 +48,11 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
|
||||
protected _oldValue : string | number | Object;
|
||||
protected node : HTMLElement;
|
||||
|
||||
// Validators assigned to one specific instance of a widget
|
||||
protected validators : Validator[];
|
||||
// Validators for every instance of a type of widget
|
||||
protected defaultValidators : Validator[];
|
||||
|
||||
/** WebComponent **/
|
||||
static get styles()
|
||||
{
|
||||
@ -129,6 +134,9 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
|
||||
constructor(...args : any[])
|
||||
{
|
||||
super(...args);
|
||||
|
||||
this.validators = [];
|
||||
this.defaultValidators = [];
|
||||
}
|
||||
|
||||
connectedCallback()
|
||||
|
Loading…
Reference in New Issue
Block a user