UNPKG

@velis/dynamicforms

Version:

Data entry boilerplate components and a RESTful API consumer

31 lines 792 B
/** * Operators provides us a functionality for backend to send us complex condition upon which we send * dynamic visibility prop for form input fields */ declare enum Operator { NOT = 0, OR = 1, AND = 2, XOR = 3, NAND = 4, NOR = 5, EQUALS = -1, NOT_EQUALS = -2, GT = -3, LT = -4, GE = -5, LE = -6, IN = -7, NOT_IN = -8, INCLUDES = -9, NOT_INCLUDES = -10 } export declare const defaultOperator = Operator.AND; declare namespace Operator { function fromString(operator: string): Operator; function fromAny(mode: any): Operator; function isDefined(operator: number | string): boolean; function isLogicOperator(operator: Operator): boolean; } export default Operator; //# sourceMappingURL=field-operator.d.ts.map