'Angular library for field dependencies

I'm searching some kind of library that will let the user to set dependencies between fields.

Example:

Thru a form the user is creating fields. Lets say field1(number), field2(number), field3(number). The second step is to let the user to add dependencies between these fields.

Lets say:

field1 to be lower then 1000 and greater then 500 -> some msg on error. field2 = 500 if field1 > 600

The user should see something like:

Fields:

field1, field2, field3

Operators:

"+" "-" < > <= >= IF etc.

Do anyone know some library for this? It should works like excel functions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source