When true, data type check conditions are auto generated if not supplied in the ValueHost's list of validators. Defaults to true.
Sets up a function to lazy load the configuration when any of the other functions are called. This function can be set after some initial registration. It will be discarded immediately after its used.
Provides access to services.
Works together with IDataTypeCheckGenerator to attempt to supply one or more Conditions suitable for the given data type lookup key that is used as a Data Type Check against the native value.
By default, automatic generation uses the DataTypeCheckCondition. If you implement an IDataTypeCheckGenerator class, you may return multiple conditions. In that case, return a DataTypeCheckCondition too if it is needed.
That condition determines an error when InputValueHost.getValue() returns undefined, which is a result of a conversion of InputValue fails.
There are other ways to check a data type. Strings with a well defined pattern will often be the same as they were between Input Value and Native Value, aside from trimming spaces. So the NativeValue is a string that will need to be checked against a regular expression or some other rule that confirms the string matches requirements.
Thats when you create a IDataTypeCheckGenerator class and register it with autoGenerateDataTypeCheckService.
The list of Conditions generated by a matching IDataTypeCheckGenerator, or a DataTypeCheckCondition if no IDataTypeCheckGenerator was found. If DataTypeCheckGenerator returns an empty array, it means do not generate the DataTypeCheckCondition and this function returns the empty array itself.
Finds the first IDataTypeCheckGenerator that supports the value, or null if none are found.
Registers an instance of the interface supported by this service. It may replace an existing one, as determined by the subclass. Replace supported on: IDataTypeIdentifier
Returns the full collection.
If the user needs to abandon this instance, they should use this to clean up active resources (like timers) and to release memory that would stall the garbage collector from disposing this object. It should assign any object reference to undefined as a strong indicator that the object has been disposed.
Generated using TypeDoc v0.25.12
Service that supports automatic generation of Conditions for the Data Type Check using IDataTypeCheckGenerator instances. This feature is specific to InputValueHosts as it utilizes both the Input Value and Native Value.