@overmap-ai/forms 1.0.30 → 1.0.32-condition-manager.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ImageViewer/context.d.ts +2 -2
- package/dist/ImageViewer/typings.d.ts +1 -1
- package/dist/Scanner/Scanner.d.ts +7 -0
- package/dist/Scanner/ScannerProvider.d.ts +2 -0
- package/dist/Scanner/constants.d.ts +3 -0
- package/dist/Scanner/context.d.ts +3 -0
- package/dist/Scanner/hooks.d.ts +1 -0
- package/dist/Scanner/index.d.ts +4 -0
- package/dist/Scanner/typings.d.ts +5 -0
- package/dist/form/Observable/Observable.d.ts +5 -0
- package/dist/form/Observable/index.d.ts +1 -0
- package/dist/form/UUIDFile/UUIDFile.d.ts +5 -0
- package/dist/form/UUIDFile/index.d.ts +1 -0
- package/dist/form/UUIDPromise/UUIDPromise.d.ts +10 -0
- package/dist/form/UUIDPromise/index.d.ts +2 -0
- package/dist/form/UUIDPromise/utils.d.ts +4 -0
- package/dist/form/builder/Root.d.ts +15 -0
- package/dist/form/builder/components/FieldBuilder.d.ts +8 -0
- package/dist/form/builder/components/FieldDropdownMenu.d.ts +9 -0
- package/dist/form/builder/components/FieldSectionDropdownMenu.d.ts +9 -0
- package/dist/form/builder/{FieldWithActions.d.ts → components/FieldWithActions.d.ts} +4 -3
- package/dist/form/builder/components/index.d.ts +5 -0
- package/dist/form/builder/constants.d.ts +2 -19
- package/dist/form/builder/context.d.ts +3 -1
- package/dist/form/builder/flow/FieldSectionConditionEdge.d.ts +3 -0
- package/dist/form/builder/flow/FieldSectionNode.d.ts +3 -0
- package/dist/form/builder/flow/FlowBuilder.d.ts +1 -0
- package/dist/form/builder/flow/constants.d.ts +3 -0
- package/dist/form/builder/flow/index.d.ts +2 -0
- package/dist/form/builder/flow/layout.d.ts +2 -0
- package/dist/form/builder/flow/typings.d.ts +15 -0
- package/dist/form/builder/hooks.d.ts +4 -4
- package/dist/form/builder/index.d.ts +8 -1
- package/dist/form/builder/list/FieldSectionBuilder.d.ts +5 -0
- package/dist/form/builder/list/FieldSectionConditionalItem.d.ts +7 -0
- package/dist/form/builder/list/FieldSectionWithActions.d.ts +6 -0
- package/dist/form/builder/list/ListBuilder.d.ts +1 -0
- package/dist/form/builder/list/index.d.ts +1 -0
- package/dist/form/builder/preview/Preview.d.ts +4 -0
- package/dist/form/builder/preview/index.d.ts +1 -0
- package/dist/form/builder/utils.d.ts +5 -24
- package/dist/form/components/DisplayFile.d.ts +9 -0
- package/dist/form/components/index.d.ts +1 -0
- package/dist/form/conditions/BaseCondition/BaseCondition.d.ts +30 -0
- package/dist/form/conditions/BaseCondition/index.d.ts +2 -0
- package/dist/form/conditions/BaseCondition/typings.d.ts +18 -0
- package/dist/form/conditions/BooleanFieldCondition/BooleanFieldCondition.d.ts +17 -0
- package/dist/form/conditions/BooleanFieldCondition/BooleanFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/BooleanFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/BooleanFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/CheckboxListFieldCondition/CheckboxListFieldCondition.d.ts +20 -0
- package/dist/form/conditions/CheckboxListFieldCondition/CheckboxListFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/CheckboxListFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/CheckboxListFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/ConditionManager/ConditionManager.d.ts +15 -0
- package/dist/form/conditions/ConditionManager/hooks.d.ts +4 -0
- package/dist/form/conditions/ConditionManager/index.d.ts +3 -0
- package/dist/form/conditions/ConditionManager/typings.d.ts +2 -0
- package/dist/form/conditions/DateFieldCondition/DateFieldCondition.d.ts +22 -0
- package/dist/form/conditions/DateFieldCondition/DateFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/DateFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/DateFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/MultiSelectFieldCondition/MultiSelectFieldCondition.d.ts +28 -0
- package/dist/form/conditions/MultiSelectFieldCondition/MultiSelectFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/MultiSelectFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/MultiSelectFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/MultiStringFieldCondition/MultiStringFieldCondition.d.ts +20 -0
- package/dist/form/conditions/MultiStringFieldCondition/MultiStringFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/MultiStringFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/MultiStringFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/NumberFieldCondition/NumberFieldCondition.d.ts +34 -0
- package/dist/form/conditions/NumberFieldCondition/NumberFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/NumberFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/NumberFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/OTPFieldCondition/OTPFieldCondition.d.ts +19 -0
- package/dist/form/conditions/OTPFieldCondition/OTPFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/OTPFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/OTPFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/PassFailFieldCondition/PassFailFieldCondition.d.ts +20 -0
- package/dist/form/conditions/PassFailFieldCondition/PassFailFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/PassFailFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/PassFailFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/RadioFieldCondition/RadioFieldCondition.d.ts +19 -0
- package/dist/form/conditions/RadioFieldCondition/RadioFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/RadioFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/RadioFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/ScanFieldCondition/ScanFieldCondition.d.ts +19 -0
- package/dist/form/conditions/ScanFieldCondition/ScanFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/ScanFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/ScanFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/SelectFieldCondition/SelectFieldCondition.d.ts +19 -0
- package/dist/form/conditions/SelectFieldCondition/SelectFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/SelectFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/SelectFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/StringFieldCondition/StringFieldCondition.d.ts +19 -0
- package/dist/form/conditions/StringFieldCondition/StringFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/StringFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/StringFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/TextFieldCondition/TextFieldCondition.d.ts +20 -0
- package/dist/form/conditions/TextFieldCondition/TextFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/TextFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/TextFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/UploadFieldCondition/UploadFieldCondition.d.ts +19 -0
- package/dist/form/conditions/UploadFieldCondition/UploadFieldConditionCell.d.ts +6 -0
- package/dist/form/conditions/UploadFieldCondition/index.d.ts +3 -0
- package/dist/form/conditions/UploadFieldCondition/typings.d.ts +4 -0
- package/dist/form/conditions/components/ConditionModifierDropdown.d.ts +9 -0
- package/dist/form/conditions/components/DayPickerPopover.d.ts +4 -0
- package/dist/form/conditions/components/MultiStringPopover.d.ts +9 -0
- package/dist/form/conditions/components/NumberInputPopover.d.ts +9 -0
- package/dist/form/conditions/components/RemoveConditionButton.d.ts +11 -0
- package/dist/form/conditions/components/SelectFieldOptionMultiSelectGroup.d.ts +6 -0
- package/dist/form/conditions/components/SelectFieldOptionSelectGroup.d.ts +6 -0
- package/dist/form/conditions/components/TextInputPopover.d.ts +9 -0
- package/dist/form/conditions/components/constants.d.ts +4 -0
- package/dist/form/conditions/components/index.d.ts +9 -0
- package/dist/form/conditions/index.d.ts +18 -0
- package/dist/form/conditions/typings.d.ts +28 -0
- package/dist/form/conditions/utils.d.ts +6 -0
- package/dist/form/fields/BaseField/BaseField.d.ts +20 -41
- package/dist/form/fields/BaseField/index.d.ts +0 -1
- package/dist/form/fields/BaseField/typings.d.ts +13 -9
- package/dist/form/fields/BaseFormElement/BaseFormElement.d.ts +13 -0
- package/dist/form/fields/BaseFormElement/index.d.ts +2 -0
- package/dist/form/fields/BaseFormElement/typings.d.ts +15 -0
- package/dist/form/fields/BaseOptionsField/BaseOptionsField.d.ts +14 -0
- package/dist/form/fields/BaseOptionsField/index.d.ts +2 -0
- package/dist/form/fields/BaseOptionsField/typings.d.ts +9 -0
- package/dist/form/fields/BaseStringField/BaseStringField.d.ts +28 -0
- package/dist/form/fields/BaseStringField/index.d.ts +2 -0
- package/dist/form/fields/{StringOrTextField → BaseStringField}/typings.d.ts +1 -1
- package/dist/form/fields/BooleanField/BooleanField.d.ts +19 -16
- package/dist/form/fields/BooleanField/BooleanInput.d.ts +6 -2
- package/dist/form/fields/BooleanField/typings.d.ts +1 -2
- package/dist/form/fields/CheckboxListField/CheckboxListField.d.ts +16 -23
- package/dist/form/fields/CheckboxListField/CheckboxListInput.d.ts +6 -2
- package/dist/form/fields/CheckboxListField/typings.d.ts +2 -3
- package/dist/form/fields/DateField/DateField.d.ts +22 -14
- package/dist/form/fields/DateField/DateInput.d.ts +6 -2
- package/dist/form/fields/DateField/typings.d.ts +1 -2
- package/dist/form/fields/FieldSection/FieldSection.d.ts +39 -28
- package/dist/form/fields/FieldSection/FieldSectionLayout.d.ts +6 -5
- package/dist/form/fields/FieldSection/typings.d.ts +9 -11
- package/dist/form/fields/MultiSelectField/MultiSelectField.d.ts +18 -19
- package/dist/form/fields/MultiSelectField/MultiSelectInput.d.ts +5 -2
- package/dist/form/fields/MultiSelectField/typings.d.ts +2 -5
- package/dist/form/fields/MultiStringField/MultiStringField.d.ts +21 -29
- package/dist/form/fields/MultiStringField/MultiStringInput.d.ts +6 -6
- package/dist/form/fields/MultiStringField/typings.d.ts +5 -3
- package/dist/form/fields/NumberField/NumberField.d.ts +24 -23
- package/dist/form/fields/NumberField/NumberInput.d.ts +6 -2
- package/dist/form/fields/NumberField/typings.d.ts +1 -2
- package/dist/form/fields/OneTimePasswordField/OTPField.d.ts +38 -0
- package/dist/form/fields/OneTimePasswordField/OTPInput.d.ts +7 -0
- package/dist/form/fields/OneTimePasswordField/index.d.ts +3 -0
- package/dist/form/fields/OneTimePasswordField/typings.d.ts +8 -0
- package/dist/form/fields/PassFailField/PassFailField.d.ts +30 -0
- package/dist/form/fields/PassFailField/PassFailInput.d.ts +7 -0
- package/dist/form/fields/PassFailField/constants.d.ts +7 -0
- package/dist/form/fields/PassFailField/index.d.ts +5 -0
- package/dist/form/fields/PassFailField/typings.d.ts +17 -0
- package/dist/form/fields/PassFailField/utils.d.ts +7 -0
- package/dist/form/fields/RadioField/RadioField.d.ts +18 -24
- package/dist/form/fields/RadioField/RadioInput.d.ts +6 -2
- package/dist/form/fields/RadioField/typings.d.ts +2 -3
- package/dist/form/fields/ScanField/ScanField.d.ts +18 -14
- package/dist/form/fields/ScanField/ScanInput.d.ts +4 -5
- package/dist/form/fields/ScanField/typings.d.ts +1 -2
- package/dist/form/fields/SelectField/SelectField.d.ts +18 -17
- package/dist/form/fields/SelectField/SelectInput.d.ts +6 -2
- package/dist/form/fields/SelectField/typings.d.ts +2 -5
- package/dist/form/fields/StringField/StringField.d.ts +11 -19
- package/dist/form/fields/StringField/StringInput.d.ts +6 -2
- package/dist/form/fields/StringField/typings.d.ts +2 -6
- package/dist/form/fields/TextField/TextField.d.ts +10 -15
- package/dist/form/fields/TextField/TextInput.d.ts +6 -2
- package/dist/form/fields/TextField/typings.d.ts +2 -3
- package/dist/form/fields/UploadField/UploadField.d.ts +22 -23
- package/dist/form/fields/UploadField/UploadInput.d.ts +6 -2
- package/dist/form/fields/UploadField/typings.d.ts +1 -2
- package/dist/form/fields/_utils.d.ts +1 -0
- package/dist/form/fields/constants.d.ts +19 -111
- package/dist/form/fields/hooks.d.ts +30 -4
- package/dist/form/fields/index.d.ts +7 -3
- package/dist/form/fields/typings.d.ts +47 -34
- package/dist/form/fields/utils.d.ts +15 -16
- package/dist/form/index.d.ts +7 -1
- package/dist/form/modifiers/boolean.d.ts +3 -0
- package/dist/form/modifiers/conditionModifier.d.ts +17 -0
- package/dist/form/modifiers/date.d.ts +9 -0
- package/dist/form/modifiers/file.d.ts +4 -0
- package/dist/form/modifiers/index.d.ts +8 -0
- package/dist/form/modifiers/number.d.ts +10 -0
- package/dist/form/modifiers/passFailStatus.d.ts +6 -0
- package/dist/form/modifiers/string.d.ts +12 -0
- package/dist/form/modifiers/typings.d.ts +11 -0
- package/dist/form/modifiers/utils.d.ts +2 -0
- package/dist/form/renderer/{FormRenderer/FormRenderer.d.ts → FormRenderer.d.ts} +4 -4
- package/dist/form/renderer/constants.d.ts +2 -0
- package/dist/form/renderer/context.d.ts +2 -0
- package/dist/form/renderer/index.d.ts +1 -2
- package/dist/form/schema/FieldSchema.d.ts +22 -0
- package/dist/form/schema/context.d.ts +2 -0
- package/dist/form/schema/index.d.ts +1 -0
- package/dist/form/typings.d.ts +10 -19
- package/dist/form/utils.d.ts +11 -7
- package/dist/forms.js +28800 -18113
- package/dist/forms.umd.cjs +35307 -63
- package/dist/index.d.ts +1 -0
- package/package.json +9 -5
- package/dist/form/builder/DropDispatch.d.ts +0 -27
- package/dist/form/builder/FieldActions.d.ts +0 -13
- package/dist/form/builder/FieldBuilder.d.ts +0 -10
- package/dist/form/builder/FieldSectionWithActions.d.ts +0 -10
- package/dist/form/builder/FieldsEditor.d.ts +0 -1
- package/dist/form/builder/FormBuilder.d.ts +0 -26
- package/dist/form/fields/BaseField/hooks.d.ts +0 -393
- package/dist/form/fields/BaseSelectField/BaseSelectField.d.ts +0 -35
- package/dist/form/fields/BaseSelectField/index.d.ts +0 -2
- package/dist/form/fields/BaseSelectField/typings.d.ts +0 -6
- package/dist/form/fields/CustomField/CustomField.d.ts +0 -23
- package/dist/form/fields/CustomField/FieldInputClonerField/FieldInputCloner.d.ts +0 -7
- package/dist/form/fields/CustomField/FieldInputClonerField/FieldInputClonerField.d.ts +0 -18
- package/dist/form/fields/CustomField/FieldInputClonerField/index.d.ts +0 -3
- package/dist/form/fields/CustomField/FieldInputClonerField/typings.d.ts +0 -4
- package/dist/form/fields/CustomField/index.d.ts +0 -1
- package/dist/form/fields/StringOrTextField/StringOrTextField.d.ts +0 -34
- package/dist/form/fields/StringOrTextField/index.d.ts +0 -2
- package/dist/form/renderer/FormRenderer/constants.d.ts +0 -2
- package/dist/form/renderer/PatchForm/Field.d.ts +0 -17
- package/dist/form/renderer/PatchForm/Provider.d.ts +0 -28
- package/dist/form/renderer/PatchForm/index.d.ts +0 -2
- /package/dist/form/builder/{FieldSettingsPopover.d.ts → components/FieldSettingsPopover.d.ts} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { MultiSelectFieldCondition } from './MultiSelectFieldCondition';
|
|
3
|
+
interface MultiSelectFieldConditionCellProps extends BaseConditionCellProps<MultiSelectFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const MultiSelectFieldConditionCell: (props: MultiSelectFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MultiSelectField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type MultiSelectConditionModifiers = "equals" | "notEquals" | "every" | "some" | "none";
|
|
4
|
+
export type SerializedMultiSelectCondition = BaseSerializedCondition<TypeOfField<MultiSelectField>, string[], MultiSelectConditionModifiers>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MultiStringField, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { MultiStringConditionModifiers, SerializedMultiStringCondition } from './typings';
|
|
5
|
+
export interface MultiStringFieldConditionOptions extends ConditionOptions<MultiStringField, string[], MultiStringConditionModifiers> {
|
|
6
|
+
}
|
|
7
|
+
export declare class MultiStringFieldCondition extends BaseCondition<MultiStringField, ValueOfField<MultiStringField>, string[], string[], MultiStringConditionModifiers, MultiStringFieldCondition> {
|
|
8
|
+
readonly defaultConditionValue: undefined;
|
|
9
|
+
readonly defaultConditionModifier = "equals";
|
|
10
|
+
readonly modifiers: {
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
13
|
+
every: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
14
|
+
some: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
15
|
+
none: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
16
|
+
};
|
|
17
|
+
constructor(options: MultiStringFieldConditionOptions);
|
|
18
|
+
static deserialize(serializedCondition: SerializedMultiStringCondition, field: MultiStringField): MultiStringFieldCondition;
|
|
19
|
+
render(props: ConditionRenderProps<MultiStringFieldCondition>): ReactNode;
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { MultiStringFieldCondition } from './MultiStringFieldCondition';
|
|
3
|
+
interface MultiStringFieldConditionCellProps extends BaseConditionCellProps<MultiStringFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const MultiStringFieldConditionCell: (props: MultiStringFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MultiStringField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type MultiStringConditionModifiers = "equals" | "notEquals" | "every" | "some" | "none";
|
|
4
|
+
export type SerializedMultiStringCondition = BaseSerializedCondition<TypeOfField<MultiStringField>, string[], MultiStringConditionModifiers>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NumberField, NumberRange, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { NumberConditionModifiers, SerializedNumberCondition } from './typings';
|
|
5
|
+
declare const modifiers: {
|
|
6
|
+
equals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
7
|
+
notEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
8
|
+
lessThan: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
9
|
+
lessThanOrEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
10
|
+
greaterThan: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
11
|
+
greaterThanOrEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
12
|
+
inRange: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
13
|
+
notInRange: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
14
|
+
};
|
|
15
|
+
export interface NumberFieldConditionOptions extends ConditionOptions<NumberField, number | NumberRange, NumberConditionModifiers> {
|
|
16
|
+
}
|
|
17
|
+
export declare class NumberFieldCondition extends BaseCondition<NumberField, ValueOfField<NumberField>, number | NumberRange, number | NumberRange, NumberConditionModifiers, NumberFieldCondition> {
|
|
18
|
+
readonly defaultConditionValue: number | undefined;
|
|
19
|
+
readonly defaultConditionModifier: keyof typeof modifiers;
|
|
20
|
+
readonly modifiers: {
|
|
21
|
+
equals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
22
|
+
notEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
23
|
+
lessThan: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
24
|
+
lessThanOrEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
25
|
+
greaterThan: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
26
|
+
greaterThanOrEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
27
|
+
inRange: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
28
|
+
notInRange: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
29
|
+
};
|
|
30
|
+
constructor(options: NumberFieldConditionOptions);
|
|
31
|
+
static deserialize(serializedCondition: SerializedNumberCondition, field: NumberField): NumberFieldCondition;
|
|
32
|
+
render(props: ConditionRenderProps<NumberFieldCondition>): ReactNode;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { NumberFieldCondition } from './NumberFieldCondition';
|
|
3
|
+
interface NumberFieldConditionCellProps extends BaseConditionCellProps<NumberFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const NumberFieldConditionCell: (props: NumberFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NumberField, NumberRange, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type NumberConditionModifiers = "equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange";
|
|
4
|
+
export type SerializedNumberCondition = BaseSerializedCondition<TypeOfField<NumberField>, number | NumberRange, NumberConditionModifiers>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { OTPField, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { OTPConditionModifiers, SerializedOTPCondition } from './typings';
|
|
5
|
+
export interface OTPFieldConditionOptions extends ConditionOptions<OTPField, string, OTPConditionModifiers> {
|
|
6
|
+
}
|
|
7
|
+
export declare class OTPFieldCondition extends BaseCondition<OTPField, ValueOfField<OTPField>, string, string, OTPConditionModifiers, OTPFieldCondition> {
|
|
8
|
+
readonly defaultConditionValue: undefined;
|
|
9
|
+
readonly defaultConditionModifier = "equals";
|
|
10
|
+
readonly modifiers: {
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
13
|
+
includes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
14
|
+
excludes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
15
|
+
};
|
|
16
|
+
constructor(options: OTPFieldConditionOptions);
|
|
17
|
+
static deserialize(serializedCondition: SerializedOTPCondition, field: OTPField): OTPFieldCondition;
|
|
18
|
+
render(props: ConditionRenderProps<OTPFieldCondition>): ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { OTPFieldCondition } from './OTPFieldCondition';
|
|
3
|
+
interface OTPFieldConditionCellProps extends BaseConditionCellProps<OTPFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const OTPFieldConditionCell: (props: OTPFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { OTPField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type OTPConditionModifiers = "equals" | "notEquals" | "includes" | "excludes";
|
|
4
|
+
export type SerializedOTPCondition = BaseSerializedCondition<TypeOfField<OTPField>, string, OTPConditionModifiers>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PassFailField, PassFailFieldStatus, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { PassFailFieldConditionModifiers, SerializedPassFailFieldCondition } from './typings';
|
|
5
|
+
export interface PassFailFieldConditionOptions extends ConditionOptions<PassFailField, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldConditionModifiers> {
|
|
6
|
+
}
|
|
7
|
+
export declare class PassFailFieldCondition extends BaseCondition<PassFailField, ValueOfField<PassFailField>["status"], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldConditionModifiers, PassFailFieldCondition> {
|
|
8
|
+
readonly defaultConditionValue: undefined;
|
|
9
|
+
readonly defaultConditionModifier = "equals";
|
|
10
|
+
readonly modifiers: {
|
|
11
|
+
readonly equals: import('../..').FieldConditionModifierConfig<PassFailFieldStatus | null, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus, PassFailFieldStatus, PassFailFieldStatus>;
|
|
12
|
+
readonly notEquals: import('../..').FieldConditionModifierConfig<PassFailFieldStatus | null, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus, PassFailFieldStatus, PassFailFieldStatus>;
|
|
13
|
+
readonly includes: import('../..').FieldConditionModifierConfig<PassFailFieldStatus | null, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus, PassFailFieldStatus[], PassFailFieldStatus[]>;
|
|
14
|
+
readonly excludes: import('../..').FieldConditionModifierConfig<PassFailFieldStatus | null, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus, PassFailFieldStatus[], PassFailFieldStatus[]>;
|
|
15
|
+
};
|
|
16
|
+
constructor(options: PassFailFieldConditionOptions);
|
|
17
|
+
static deserialize(serializedCondition: SerializedPassFailFieldCondition, field: PassFailField): PassFailFieldCondition;
|
|
18
|
+
transformValue(value: ValueOfField<PassFailField>): ValueOfField<PassFailField>["status"];
|
|
19
|
+
render(props: ConditionRenderProps<PassFailFieldCondition>): ReactNode;
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { PassFailFieldCondition } from './PassFailFieldCondition';
|
|
3
|
+
interface PassFailFieldConditionCellProps extends BaseConditionCellProps<PassFailFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const PassFailFieldConditionCell: (props: PassFailFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PassFailField, PassFailFieldStatus, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type PassFailFieldConditionModifiers = "equals" | "notEquals" | "includes" | "excludes";
|
|
4
|
+
export type SerializedPassFailFieldCondition = BaseSerializedCondition<TypeOfField<PassFailField>, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldConditionModifiers>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { RadioField, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { RadioConditionModifiers, SerializedRadioCondition } from './typings';
|
|
5
|
+
export interface RadioFieldConditionOptions extends ConditionOptions<RadioField, string | string[], RadioConditionModifiers> {
|
|
6
|
+
}
|
|
7
|
+
export declare class RadioFieldCondition extends BaseCondition<RadioField, ValueOfField<RadioField>, string | string[], string | string[], RadioConditionModifiers, RadioFieldCondition> {
|
|
8
|
+
readonly defaultConditionValue: undefined;
|
|
9
|
+
readonly defaultConditionModifier = "equals";
|
|
10
|
+
readonly modifiers: {
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
13
|
+
includes: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string[], string[]>;
|
|
14
|
+
excludes: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string[], string[]>;
|
|
15
|
+
};
|
|
16
|
+
constructor(options: RadioFieldConditionOptions);
|
|
17
|
+
static deserialize(serializedCondition: SerializedRadioCondition, field: RadioField): RadioFieldCondition;
|
|
18
|
+
render(props: ConditionRenderProps<RadioFieldCondition>): ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { RadioFieldCondition } from './RadioFieldCondition';
|
|
3
|
+
interface RadioFieldConditionCellProps extends BaseConditionCellProps<RadioFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const RadioFieldConditionCell: (props: RadioFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RadioField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type RadioConditionModifiers = "equals" | "notEquals" | "includes" | "excludes";
|
|
4
|
+
export type SerializedRadioCondition = BaseSerializedCondition<TypeOfField<RadioField>, string | string[], RadioConditionModifiers>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ScanField, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { ScanConditionModifiers, SerializedScanCondition } from './typings';
|
|
5
|
+
export interface ScanFieldConditionOptions extends ConditionOptions<ScanField, string, ScanConditionModifiers> {
|
|
6
|
+
}
|
|
7
|
+
export declare class ScanFieldCondition extends BaseCondition<ScanField, ValueOfField<ScanField>, string, string, ScanConditionModifiers, ScanFieldCondition> {
|
|
8
|
+
readonly defaultConditionValue: undefined;
|
|
9
|
+
readonly defaultConditionModifier = "equals";
|
|
10
|
+
readonly modifiers: {
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
13
|
+
includes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
14
|
+
excludes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
15
|
+
};
|
|
16
|
+
constructor(options: ScanFieldConditionOptions);
|
|
17
|
+
static deserialize(serializedCondition: SerializedScanCondition, field: ScanField): ScanFieldCondition;
|
|
18
|
+
render(props: ConditionRenderProps<ScanFieldCondition>): ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { ScanFieldCondition } from './ScanFieldCondition';
|
|
3
|
+
interface ScanFieldConditionCellProps extends BaseConditionCellProps<ScanFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const ScanFieldConditionCell: (props: ScanFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ScanField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type ScanConditionModifiers = "equals" | "notEquals" | "includes" | "excludes";
|
|
4
|
+
export type SerializedScanCondition = BaseSerializedCondition<TypeOfField<ScanField>, string, ScanConditionModifiers>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SelectField, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { SelectConditionModifiers, SerializedSelectCondition } from './typings';
|
|
5
|
+
export interface SelectFieldConditionOptions extends ConditionOptions<SelectField, string | string[], SelectConditionModifiers> {
|
|
6
|
+
}
|
|
7
|
+
export declare class SelectFieldCondition extends BaseCondition<SelectField, ValueOfField<SelectField>, string | string[], string | string[], SelectConditionModifiers, SelectFieldCondition> {
|
|
8
|
+
readonly defaultConditionValue: undefined;
|
|
9
|
+
readonly defaultConditionModifier = "equals";
|
|
10
|
+
readonly modifiers: {
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
13
|
+
includes: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string[], string[]>;
|
|
14
|
+
excludes: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string[], string[]>;
|
|
15
|
+
};
|
|
16
|
+
constructor(options: SelectFieldConditionOptions);
|
|
17
|
+
static deserialize(serializedCondition: SerializedSelectCondition, field: SelectField): SelectFieldCondition;
|
|
18
|
+
render(props: ConditionRenderProps<SelectFieldCondition>): ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { SelectFieldCondition } from './SelectFieldCondition';
|
|
3
|
+
interface SelectFieldConditionCellProps extends BaseConditionCellProps<SelectFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const SelectFieldConditionCell: (props: SelectFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SelectField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type SelectConditionModifiers = "equals" | "notEquals" | "includes" | "excludes";
|
|
4
|
+
export type SerializedSelectCondition = BaseSerializedCondition<TypeOfField<SelectField>, string | string[], SelectConditionModifiers>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StringField, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { SerializedStringCondition, StringConditionModifiers } from './typings';
|
|
5
|
+
export interface StringFieldConditionOptions extends ConditionOptions<StringField, string, StringConditionModifiers> {
|
|
6
|
+
}
|
|
7
|
+
export declare class StringFieldCondition extends BaseCondition<StringField, ValueOfField<StringField>, string, string, StringConditionModifiers, StringFieldCondition> {
|
|
8
|
+
readonly defaultConditionValue: undefined;
|
|
9
|
+
readonly defaultConditionModifier = "equals";
|
|
10
|
+
readonly modifiers: {
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
13
|
+
includes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
14
|
+
excludes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
15
|
+
};
|
|
16
|
+
constructor(options: StringFieldConditionOptions);
|
|
17
|
+
static deserialize(serializedCondition: SerializedStringCondition, field: StringField): StringFieldCondition;
|
|
18
|
+
render(props: ConditionRenderProps<StringFieldCondition>): ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { StringFieldCondition } from './StringFieldCondition';
|
|
3
|
+
interface StringFieldConditionCellProps extends BaseConditionCellProps<StringFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const StringFieldConditionCell: (props: StringFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { StringField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type StringConditionModifiers = "equals" | "notEquals" | "includes" | "excludes";
|
|
4
|
+
export type SerializedStringCondition = BaseSerializedCondition<TypeOfField<StringField>, string, StringConditionModifiers>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TextField, ValueOfField } from '../../fields';
|
|
3
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
|
+
import { SerializedTextCondition, TextConditionModifiers } from './typings';
|
|
5
|
+
export interface TextFieldConditionOptions extends ConditionOptions<TextField, string, TextConditionModifiers> {
|
|
6
|
+
field: TextField;
|
|
7
|
+
}
|
|
8
|
+
export declare class TextFieldCondition extends BaseCondition<TextField, ValueOfField<TextField>, string, string, TextConditionModifiers, TextFieldCondition> {
|
|
9
|
+
readonly defaultConditionValue: undefined;
|
|
10
|
+
readonly defaultConditionModifier = "equals";
|
|
11
|
+
readonly modifiers: {
|
|
12
|
+
equals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
13
|
+
notEquals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
14
|
+
includes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
15
|
+
excludes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
16
|
+
};
|
|
17
|
+
constructor(options: TextFieldConditionOptions);
|
|
18
|
+
static deserialize(serializedCondition: SerializedTextCondition, field: TextField): TextFieldCondition;
|
|
19
|
+
render(props: ConditionRenderProps<TextFieldCondition>): ReactNode;
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { TextFieldCondition } from './TextFieldCondition';
|
|
3
|
+
interface TextFieldConditionCellProps extends BaseConditionCellProps<TextFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const TextFieldConditionCell: (props: TextFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TextField, TypeOfField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type TextConditionModifiers = "equals" | "notEquals" | "includes" | "excludes";
|
|
4
|
+
export type SerializedTextCondition = BaseSerializedCondition<TypeOfField<TextField>, string, TextConditionModifiers>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { UploadField, ValueOfField } from '../../fields';
|
|
3
|
+
import { UUIDFile } from '../../UUIDFile';
|
|
4
|
+
import { UUIDPromise } from '../../UUIDPromise';
|
|
5
|
+
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
6
|
+
import { SerializedUploadCondition, UploadConditionModifiers } from './typings';
|
|
7
|
+
export interface UploadFieldConditionOptions extends ConditionOptions<UploadField, boolean, UploadConditionModifiers> {
|
|
8
|
+
}
|
|
9
|
+
export declare class UploadFieldCondition extends BaseCondition<UploadField, ValueOfField<UploadField>, boolean, boolean, UploadConditionModifiers, UploadFieldCondition> {
|
|
10
|
+
readonly defaultConditionValue: undefined;
|
|
11
|
+
readonly defaultConditionModifier = "equals";
|
|
12
|
+
readonly modifiers: {
|
|
13
|
+
equals: import('../..').FieldConditionModifierConfig<(UUIDFile | UUIDPromise<UUIDFile>)[], boolean, boolean, UUIDFile[], boolean, boolean>;
|
|
14
|
+
notEquals: import('../..').FieldConditionModifierConfig<(UUIDFile | UUIDPromise<UUIDFile>)[], boolean, boolean, UUIDFile[], boolean, boolean>;
|
|
15
|
+
};
|
|
16
|
+
constructor(options: UploadFieldConditionOptions);
|
|
17
|
+
static deserialize(serializedCondition: SerializedUploadCondition, field: UploadField): UploadFieldCondition;
|
|
18
|
+
render(props: ConditionRenderProps<UploadFieldCondition>): ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseConditionCellProps } from '../BaseCondition';
|
|
2
|
+
import { UploadFieldCondition } from './UploadFieldCondition';
|
|
3
|
+
interface UploadFieldConditionCellProps extends BaseConditionCellProps<UploadFieldCondition> {
|
|
4
|
+
}
|
|
5
|
+
export declare const UploadFieldConditionCell: (props: UploadFieldConditionCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TypeOfField, UploadField } from '../../fields';
|
|
2
|
+
import { BaseSerializedCondition } from '../BaseCondition';
|
|
3
|
+
export type UploadConditionModifiers = "equals" | "notEquals";
|
|
4
|
+
export type SerializedUploadCondition = BaseSerializedCondition<TypeOfField<UploadField>, boolean, UploadConditionModifiers>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuRootProps, MenuVariantProps } from '@overmap-ai/blocks';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { AnyCondition } from '../BaseCondition';
|
|
4
|
+
interface ConditionModifierDropdownProps<TCondition extends AnyCondition> extends MenuVariantProps, MenuRootProps {
|
|
5
|
+
children: ReactElement;
|
|
6
|
+
condition: TCondition;
|
|
7
|
+
}
|
|
8
|
+
export declare const ConditionModifierDropdown: <TCondition extends AnyCondition>(props: ConditionModifierDropdownProps<TCondition>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DayPickerProps, Popover } from '@overmap-ai/blocks';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export type DayPickerPopoverProps = DayPickerProps & ComponentPropsWithoutRef<typeof Popover.Root> & Pick<ComponentPropsWithoutRef<typeof Popover.Content>, "align">;
|
|
4
|
+
export declare const DayPickerPopover: import('react').NamedExoticComponent<DayPickerPopoverProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Popover } from '@overmap-ai/blocks';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
interface MultiStringPopoverProps extends ComponentPropsWithoutRef<typeof Popover.Root>, ComponentPropsWithoutRef<typeof Popover.Content> {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
values: string[];
|
|
6
|
+
onValuesChange: (values: string[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const MultiStringPopover: import('react').NamedExoticComponent<MultiStringPopoverProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Popover } from '@overmap-ai/blocks';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
interface NumberInputPopoverProps extends ComponentPropsWithoutRef<typeof Popover.Root>, ComponentPropsWithoutRef<typeof Popover.Content> {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
value?: number | null;
|
|
6
|
+
onValueChange?: (value: number | null) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const NumberInputPopover: import('react').NamedExoticComponent<NumberInputPopoverProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonProps } from '@overmap-ai/blocks';
|
|
2
|
+
import { AnyCondition } from '../BaseCondition';
|
|
3
|
+
interface RemoveConditionButtonProps<TCondition extends AnyCondition> extends Omit<ButtonProps, "children" | "onClick"> {
|
|
4
|
+
condition: TCondition;
|
|
5
|
+
onClick: (condition: TCondition) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const RemoveConditionButton: {
|
|
8
|
+
<TCondition extends AnyCondition>(props: RemoveConditionButtonProps<TCondition>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MenuMultiSelectGroupProps } from '@overmap-ai/blocks';
|
|
2
|
+
import { SelectFieldOption } from '../../fields';
|
|
3
|
+
export interface SelectFieldOptionMultiSelectGroupProps extends MenuMultiSelectGroupProps<string> {
|
|
4
|
+
selectFieldOptions: SelectFieldOption[];
|
|
5
|
+
}
|
|
6
|
+
export declare const SelectFieldOptionMultiSelectGroup: import('react').NamedExoticComponent<SelectFieldOptionMultiSelectGroupProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MenuSelectGroupProps } from '@overmap-ai/blocks';
|
|
2
|
+
import { SelectFieldOption } from '../../fields';
|
|
3
|
+
export type SelectFieldOptionSelectGroupProps = MenuSelectGroupProps<string> & {
|
|
4
|
+
selectFieldOptions: SelectFieldOption[];
|
|
5
|
+
};
|
|
6
|
+
export declare const SelectFieldOptionSelectGroup: import('react').NamedExoticComponent<SelectFieldOptionSelectGroupProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Popover } from '@overmap-ai/blocks';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
interface TextInputPopoverProps extends ComponentPropsWithoutRef<typeof Popover.Root>, ComponentPropsWithoutRef<typeof Popover.Content> {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
onValueChange?: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TextInputPopover: import('react').NamedExoticComponent<TextInputPopoverProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MenuSelectItemProps, SelectAllItemProps } from '@overmap-ai/blocks';
|
|
2
|
+
export declare const SelectItemTemplate: <TValue>(props: MenuSelectItemProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const MultiSelectItemTemplate: <TValue>(props: MenuSelectItemProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SelectAllItemTemplate: import('react').NamedExoticComponent<SelectAllItemProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './ConditionModifierDropdown';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './DayPickerPopover';
|
|
4
|
+
export * from './MultiStringPopover';
|
|
5
|
+
export * from './NumberInputPopover';
|
|
6
|
+
export * from './RemoveConditionButton';
|
|
7
|
+
export * from './SelectFieldOptionMultiSelectGroup';
|
|
8
|
+
export * from './SelectFieldOptionSelectGroup';
|
|
9
|
+
export * from './TextInputPopover';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './BaseCondition';
|
|
2
|
+
export * from './BooleanFieldCondition';
|
|
3
|
+
export * from './CheckboxListFieldCondition';
|
|
4
|
+
export * from './ConditionManager';
|
|
5
|
+
export * from './DateFieldCondition';
|
|
6
|
+
export * from './MultiSelectFieldCondition';
|
|
7
|
+
export * from './MultiStringFieldCondition';
|
|
8
|
+
export * from './NumberFieldCondition';
|
|
9
|
+
export * from './OTPFieldCondition';
|
|
10
|
+
export * from './PassFailFieldCondition';
|
|
11
|
+
export * from './RadioFieldCondition';
|
|
12
|
+
export * from './ScanFieldCondition';
|
|
13
|
+
export * from './SelectFieldCondition';
|
|
14
|
+
export * from './StringFieldCondition';
|
|
15
|
+
export * from './TextFieldCondition';
|
|
16
|
+
export type * from './typings';
|
|
17
|
+
export * from './UploadFieldCondition';
|
|
18
|
+
export * from './utils';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AnyCondition } from './BaseCondition';
|
|
2
|
+
import { BooleanFieldCondition, SerializedBooleanCondition } from './BooleanFieldCondition';
|
|
3
|
+
import { CheckboxListFieldCondition, SerializedCheckboxListCondition } from './CheckboxListFieldCondition';
|
|
4
|
+
import { DateFieldCondition, SerializedDateCondition } from './DateFieldCondition';
|
|
5
|
+
import { MultiSelectFieldCondition, SerializedMultiSelectCondition } from './MultiSelectFieldCondition';
|
|
6
|
+
import { MultiStringFieldCondition, SerializedMultiStringCondition } from './MultiStringFieldCondition';
|
|
7
|
+
import { NumberFieldCondition, SerializedNumberCondition } from './NumberFieldCondition';
|
|
8
|
+
import { OTPFieldCondition, SerializedOTPCondition } from './OTPFieldCondition';
|
|
9
|
+
import { PassFailFieldCondition, SerializedPassFailFieldCondition } from './PassFailFieldCondition';
|
|
10
|
+
import { RadioFieldCondition, SerializedRadioCondition } from './RadioFieldCondition';
|
|
11
|
+
import { ScanFieldCondition, SerializedScanCondition } from './ScanFieldCondition';
|
|
12
|
+
import { SelectFieldCondition, SerializedSelectCondition } from './SelectFieldCondition';
|
|
13
|
+
import { SerializedStringCondition, StringFieldCondition } from './StringFieldCondition';
|
|
14
|
+
import { SerializedTextCondition, TextFieldCondition } from './TextFieldCondition';
|
|
15
|
+
import { SerializedUploadCondition, UploadFieldCondition } from './UploadFieldCondition';
|
|
16
|
+
export type Condition = BooleanFieldCondition | CheckboxListFieldCondition | PassFailFieldCondition | DateFieldCondition | MultiSelectFieldCondition | MultiStringFieldCondition | NumberFieldCondition | RadioFieldCondition | ScanFieldCondition | SelectFieldCondition | StringFieldCondition | TextFieldCondition | UploadFieldCondition | OTPFieldCondition;
|
|
17
|
+
export type SerializedCondition = SerializedTextCondition | SerializedBooleanCondition | SerializedNumberCondition | SerializedDateCondition | SerializedStringCondition | SerializedSelectCondition | SerializedMultiStringCondition | SerializedMultiSelectCondition | SerializedUploadCondition | SerializedScanCondition | SerializedRadioCondition | SerializedCheckboxListCondition | SerializedPassFailFieldCondition | SerializedOTPCondition;
|
|
18
|
+
export interface FieldConditionManager<TCondition extends AnyCondition> {
|
|
19
|
+
readonly conditions: Record<string, TCondition[]>;
|
|
20
|
+
getConditions(identifier: string): TCondition[];
|
|
21
|
+
addCondition(identifier: string, condition: TCondition): void;
|
|
22
|
+
addConditions(identifier: string, conditions: TCondition[]): void;
|
|
23
|
+
removeCondition(identifier: string, condition: TCondition): void;
|
|
24
|
+
removeConditions(identifier: string, conditions: TCondition[]): void;
|
|
25
|
+
getConditionals(): Set<string>;
|
|
26
|
+
addConditional(identifier: string): void;
|
|
27
|
+
removeConditional(identifier: string): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Field } from '../fields';
|
|
2
|
+
import { FieldValues } from '../typings';
|
|
3
|
+
import { Condition, SerializedCondition } from './typings';
|
|
4
|
+
export declare const deserializeCondition: (field: Field, serializedCondition: SerializedCondition) => Condition;
|
|
5
|
+
export declare const deserializeConditions: (fields: Field[], serializedConditions: SerializedCondition[]) => Condition[];
|
|
6
|
+
export declare const applyConditions: (conditions: Condition[], values: FieldValues) => boolean;
|