import { Component } from "react"; import { ControlType } from "constants/PropertyControlConstants"; import { InputType } from "widgets/InputWidget"; // eslint-disable-next-line @typescript-eslint/ban-types abstract class BaseControl
extends Component<
P,
S
> {
abstract getControlType(): ControlType;
}
export type ComparisonOperations =
| "EQUALS"
| "NOT_EQUALS"
| "LESSER"
| "GREATER"
| "IN"
| "NOT_IN";
export type HiddenType = boolean | Condition | ConditionObject;
export type ConditionObject = { conditionType: string; conditions: Conditions };
export type Condition = {
path: string;
comparison: ComparisonOperations;
value: any;
};
export type Conditions = Array