@overmap-ai/forms 1.1.4 → 1.1.5-fields-json-types.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/form/builder/Root.d.ts +2 -2
- package/dist/form/builder/list/sectionSerialization.d.ts +3 -3
- package/dist/form/builder/typings.d.ts +3 -3
- package/dist/form/conditions/BaseCondition/BaseCondition.d.ts +9 -14
- package/dist/form/conditions/BaseCondition/typings.d.ts +4 -6
- package/dist/form/conditions/BooleanFieldCondition/BooleanFieldCondition.d.ts +5 -6
- package/dist/form/conditions/BooleanFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/CheckboxListFieldCondition/CheckboxListFieldCondition.d.ts +5 -6
- package/dist/form/conditions/CheckboxListFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/DateFieldCondition/DateFieldCondition.d.ts +12 -13
- package/dist/form/conditions/DateFieldCondition/typings.d.ts +6 -4
- package/dist/form/conditions/MultiSelectFieldCondition/MultiSelectFieldCondition.d.ts +5 -6
- package/dist/form/conditions/MultiSelectFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/MultiStringFieldCondition/MultiStringFieldCondition.d.ts +5 -6
- package/dist/form/conditions/MultiStringFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/NumberFieldCondition/NumberFieldCondition.d.ts +5 -6
- package/dist/form/conditions/NumberFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/OTPFieldCondition/OTPFieldCondition.d.ts +5 -6
- package/dist/form/conditions/OTPFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/PassFailFieldCondition/PassFailFieldCondition.d.ts +6 -7
- package/dist/form/conditions/PassFailFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/RadioFieldCondition/RadioFieldCondition.d.ts +5 -6
- package/dist/form/conditions/RadioFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/RatingFieldCondition/RatingFieldCondition.d.ts +5 -6
- package/dist/form/conditions/RatingFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/ScanFieldCondition/ScanFieldCondition.d.ts +5 -6
- package/dist/form/conditions/ScanFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/SelectFieldCondition/SelectFieldCondition.d.ts +5 -6
- package/dist/form/conditions/SelectFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/StringFieldCondition/StringFieldCondition.d.ts +5 -6
- package/dist/form/conditions/StringFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/TextFieldCondition/TextFieldCondition.d.ts +5 -7
- package/dist/form/conditions/TextFieldCondition/typings.d.ts +6 -4
- package/dist/form/conditions/TimeFieldCondition/TimeFieldCondition.d.ts +6 -7
- package/dist/form/conditions/TimeFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/URLFieldCondition/URLFieldCondition.d.ts +5 -6
- package/dist/form/conditions/URLFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/UploadFieldCondition/UploadFieldCondition.d.ts +5 -6
- package/dist/form/conditions/UploadFieldCondition/index.d.ts +1 -1
- package/dist/form/conditions/UploadFieldCondition/typings.d.ts +5 -4
- package/dist/form/conditions/components/SelectFieldOptionMultiSelectGroup.d.ts +1 -1
- package/dist/form/conditions/components/SelectFieldOptionSelectGroup.d.ts +1 -1
- package/dist/form/conditions/components/TimeInputPopover.d.ts +1 -1
- package/dist/form/conditions/typings.d.ts +17 -18
- package/dist/form/conditions/utils.d.ts +6 -5
- package/dist/form/fields/BaseField/BaseField.d.ts +9 -5
- package/dist/form/fields/BaseField/typings.d.ts +3 -3
- package/dist/form/fields/BaseFormElement/BaseFormElement.d.ts +9 -5
- package/dist/form/fields/BaseFormElement/typings.d.ts +3 -3
- package/dist/form/fields/BaseOptionsField/BaseOptionsField.d.ts +7 -6
- package/dist/form/fields/BaseOptionsField/index.d.ts +1 -0
- package/dist/form/fields/BaseOptionsField/typings.d.ts +6 -7
- package/dist/form/fields/BaseOptionsField/utils.d.ts +3 -0
- package/dist/form/fields/BaseStringField/BaseStringField.d.ts +8 -9
- package/dist/form/fields/BaseStringField/typings.d.ts +9 -4
- package/dist/form/fields/BooleanField/BooleanField.d.ts +9 -5
- package/dist/form/fields/BooleanField/typings.d.ts +3 -2
- package/dist/form/fields/CheckboxListField/CheckboxListField.d.ts +9 -6
- package/dist/form/fields/CheckboxListField/index.d.ts +0 -1
- package/dist/form/fields/CheckboxListField/typings.d.ts +4 -2
- package/dist/form/fields/DateField/DateField.d.ts +9 -6
- package/dist/form/fields/DateField/typings.d.ts +4 -2
- package/dist/form/fields/FieldSection/FieldSection.d.ts +9 -10
- package/dist/form/fields/FieldSection/index.d.ts +0 -1
- package/dist/form/fields/FieldSection/typings.d.ts +14 -8
- package/dist/form/fields/MultiSelectField/MultiSelectField.d.ts +9 -7
- package/dist/form/fields/MultiSelectField/index.d.ts +0 -1
- package/dist/form/fields/MultiSelectField/typings.d.ts +5 -2
- package/dist/form/fields/MultiStringField/MultiStringField.d.ts +12 -12
- package/dist/form/fields/MultiStringField/index.d.ts +0 -1
- package/dist/form/fields/MultiStringField/typings.d.ts +9 -4
- package/dist/form/fields/NumberField/NumberField.d.ts +12 -13
- package/dist/form/fields/NumberField/index.d.ts +0 -1
- package/dist/form/fields/NumberField/typings.d.ts +11 -5
- package/dist/form/fields/OTPField/OTPField.d.ts +9 -8
- package/dist/form/fields/OTPField/index.d.ts +0 -1
- package/dist/form/fields/OTPField/typings.d.ts +7 -5
- package/dist/form/fields/PassFailField/PassFailField.d.ts +16 -14
- package/dist/form/fields/PassFailField/constants.d.ts +1 -1
- package/dist/form/fields/PassFailField/index.d.ts +0 -1
- package/dist/form/fields/PassFailField/typings.d.ts +5 -7
- package/dist/form/fields/PassFailField/utils.d.ts +6 -5
- package/dist/form/fields/RadioField/RadioField.d.ts +9 -6
- package/dist/form/fields/RadioField/index.d.ts +0 -1
- package/dist/form/fields/RadioField/typings.d.ts +4 -2
- package/dist/form/fields/RatingField/RatingField.d.ts +9 -7
- package/dist/form/fields/RatingField/index.d.ts +0 -1
- package/dist/form/fields/RatingField/typings.d.ts +5 -2
- package/dist/form/fields/ScanField/ScanField.d.ts +9 -6
- package/dist/form/fields/ScanField/index.d.ts +0 -1
- package/dist/form/fields/ScanField/typings.d.ts +4 -2
- package/dist/form/fields/SelectField/SelectField.d.ts +9 -7
- package/dist/form/fields/SelectField/index.d.ts +0 -1
- package/dist/form/fields/SelectField/typings.d.ts +5 -2
- package/dist/form/fields/StringField/StringField.d.ts +9 -6
- package/dist/form/fields/StringField/index.d.ts +0 -2
- package/dist/form/fields/StringField/typings.d.ts +4 -2
- package/dist/form/fields/TextField/TextField.d.ts +9 -5
- package/dist/form/fields/TextField/index.d.ts +0 -2
- package/dist/form/fields/TextField/typings.d.ts +3 -2
- package/dist/form/fields/TimeField/TimeField.d.ts +8 -4
- package/dist/form/fields/TimeField/TimeFieldControl.d.ts +1 -1
- package/dist/form/fields/TimeField/index.d.ts +1 -1
- package/dist/form/fields/TimeField/typings.d.ts +3 -10
- package/dist/form/fields/TimeField/utils.d.ts +1 -1
- package/dist/form/fields/URLField/URLField.d.ts +10 -8
- package/dist/form/fields/URLField/index.d.ts +0 -1
- package/dist/form/fields/URLField/typings.d.ts +5 -2
- package/dist/form/fields/UploadField/UploadField.d.ts +11 -11
- package/dist/form/fields/UploadField/index.d.ts +1 -2
- package/dist/form/fields/UploadField/typings.d.ts +9 -9
- package/dist/form/fields/constants.d.ts +1 -4
- package/dist/form/fields/typings.d.ts +27 -22
- package/dist/form/fields/utils.d.ts +22 -11
- package/dist/form/modifiers/passFailStatus.d.ts +1 -1
- package/dist/form/modifiers/time.d.ts +1 -1
- package/dist/form/schema/FieldSchema.d.ts +19 -13
- package/dist/form/schema/index.d.ts +1 -0
- package/dist/form/schema/typings.d.ts +3 -0
- package/dist/form/typings.d.ts +1 -2
- package/dist/form/utils.d.ts +3 -5
- package/dist/forms.js +3536 -3167
- package/dist/forms.umd.cjs +1 -1
- package/package.json +7 -5
- package/dist/form/fields/StringField/constants.d.ts +0 -1
- package/dist/form/fields/TextField/constants.d.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { JSONFieldSection } from '@adrekic/fieldsjson';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SerializedFieldSection } from '../fields';
|
|
3
3
|
import { FormBuilderSaveHandler } from './typings';
|
|
4
4
|
export interface FormBuilderRootProps extends PropsWithChildren {
|
|
5
|
-
initialFields?:
|
|
5
|
+
initialFields?: JSONFieldSection[];
|
|
6
6
|
onSave: FormBuilderSaveHandler;
|
|
7
7
|
onCancel?: () => void;
|
|
8
8
|
disableRequiredFields?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSONFieldSection } from '@adrekic/fieldsjson';
|
|
2
2
|
export interface ReseedOptions {
|
|
3
3
|
conditions?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const reseedSerializedSection: (sectionIdMap: Map<
|
|
6
|
-
export declare const reseedSerializedSections: (sections:
|
|
5
|
+
export declare const reseedSerializedSection: (sectionIdMap: Map<JSONFieldSection["identifier"], JSONFieldSection["identifier"]>, serialized: JSONFieldSection, options?: ReseedOptions) => JSONFieldSection;
|
|
6
|
+
export declare const reseedSerializedSections: (sections: JSONFieldSection[], options?: ReseedOptions) => JSONFieldSection[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSONFieldSection } from '@adrekic/fieldsjson';
|
|
2
2
|
export interface FormBuilderValues {
|
|
3
|
-
fields:
|
|
3
|
+
fields: JSONFieldSection[];
|
|
4
4
|
}
|
|
5
5
|
export type FormBuilderSaveHandler = (values: FormBuilderValues) => void;
|
|
6
6
|
/** Using `lodash.get` and `lodash.set`, we can set and get attributes of nested objects using a string path. This is
|
|
7
|
-
used to get and set attributes of the `fields` of a `
|
|
7
|
+
used to get and set attributes of the `fields` of a `JSONFieldSection` object. */
|
|
8
8
|
export type NestedFieldPath = "fields" | `fields.${number}.fields`;
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
+
import { BaseJSONCondition } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { AnyField, TypeOfField, ValueOfField } from '../../fields';
|
|
3
4
|
import { AnyConditionModifierConfig } from '../../modifiers';
|
|
4
5
|
import { Observable } from '../../Observable';
|
|
5
6
|
import { FieldValues } from '../../typings';
|
|
6
|
-
import {
|
|
7
|
-
export
|
|
8
|
-
id: string;
|
|
9
|
-
field: TField;
|
|
10
|
-
conditionValue: TConditionValue | undefined;
|
|
11
|
-
conditionModifier: TModifiers;
|
|
12
|
-
}
|
|
13
|
-
export declare abstract class BaseCondition<TField extends AnyField, TValue, TConditionValue, TSerializedConditionValue, TModifiers extends string, This extends BaseCondition<TField, TValue, TConditionValue, TSerializedConditionValue, TModifiers, This>> extends Observable<This> {
|
|
7
|
+
import { BaseConditionOptions, ConditionRenderProps } from './typings';
|
|
8
|
+
export declare abstract class BaseCondition<TField extends AnyField, TValue, TConditionValue, TSerializedConditionValue, TModifier extends string, This extends BaseCondition<TField, TValue, TConditionValue, TSerializedConditionValue, TModifier, This>> extends Observable<This> {
|
|
14
9
|
readonly id: string;
|
|
15
10
|
conditionValue: TConditionValue | undefined;
|
|
16
|
-
conditionModifier:
|
|
11
|
+
conditionModifier: TModifier;
|
|
17
12
|
field: TField;
|
|
18
|
-
abstract readonly modifiers: Record<
|
|
19
|
-
protected constructor(config: BaseConditionOptions<TField, TConditionValue,
|
|
20
|
-
serialize():
|
|
13
|
+
abstract readonly modifiers: Record<TModifier, AnyConditionModifierConfig<TValue, TConditionValue, TSerializedConditionValue>>;
|
|
14
|
+
protected constructor(config: BaseConditionOptions<TField, TConditionValue, TModifier>);
|
|
15
|
+
serialize(): BaseJSONCondition<TypeOfField<TField>, TSerializedConditionValue, TModifier>;
|
|
21
16
|
getConditionValue: () => TConditionValue | undefined;
|
|
22
17
|
transformValue(value: ValueOfField<TField>): TValue;
|
|
23
18
|
setConditionValue: (conditionValue: TConditionValue | undefined) => void;
|
|
24
|
-
getConditionModifier: () =>
|
|
25
|
-
setConditionModifier: (modifier:
|
|
19
|
+
getConditionModifier: () => TModifier;
|
|
20
|
+
setConditionModifier: (modifier: TModifier) => void;
|
|
26
21
|
getConditionModifiers: () => [keyof typeof this.modifiers, AnyConditionModifierConfig<ValueOfField<TField>, TConditionValue, TSerializedConditionValue>][];
|
|
27
22
|
abstract render(props: ConditionRenderProps<this>): ReactNode;
|
|
28
23
|
accessorFn: (values: FieldValues) => ValueOfField<TField>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { AnyField } from '../../fields';
|
|
2
2
|
import { BaseCondition } from './BaseCondition';
|
|
3
3
|
export type AnyCondition = BaseCondition<AnyField, any, any, any, any, any>;
|
|
4
|
-
export type ModifiersOfCondition<TCondition> = TCondition extends BaseCondition<infer _TField, infer _TValue, infer _TConditionValue, infer _TSerializedConditionValue, infer
|
|
4
|
+
export type ModifiersOfCondition<TCondition> = TCondition extends BaseCondition<infer _TField, infer _TValue, infer _TConditionValue, infer _TSerializedConditionValue, infer TConditionModifier, infer _This> ? TConditionModifier : never;
|
|
5
5
|
export interface ConditionRenderProps<TCondition> {
|
|
6
6
|
onRemove: (condition: TCondition) => void;
|
|
7
7
|
}
|
|
8
8
|
export interface BaseConditionCellProps<TCondition> extends ConditionRenderProps<TCondition> {
|
|
9
9
|
condition: TCondition;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface BaseConditionOptions<TField, TConditionValue, TModifier extends string> {
|
|
12
12
|
id: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
conditionValue: TSerializedConditionValue;
|
|
13
|
+
field: TField;
|
|
14
|
+
conditionValue: TConditionValue | undefined;
|
|
16
15
|
conditionModifier: TModifier;
|
|
17
16
|
}
|
|
18
|
-
export type AnySerializedCondition = BaseSerializedCondition<any, any, any>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { JSONBooleanCondition, JSONBooleanConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { BooleanField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class BooleanFieldCondition extends BaseCondition<BooleanField, ValueOfField<BooleanField>, boolean, boolean, BooleanConditionModifiers, BooleanFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { BooleanFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class BooleanFieldCondition extends BaseCondition<BooleanField, ValueOfField<BooleanField>, boolean, boolean, JSONBooleanConditionModifier, BooleanFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<boolean, boolean, boolean, boolean, boolean, boolean>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<boolean, boolean, boolean, boolean, boolean, boolean>;
|
|
11
10
|
};
|
|
12
11
|
constructor(options: BooleanFieldConditionOptions);
|
|
13
|
-
static deserialize(serializedCondition:
|
|
12
|
+
static deserialize(serializedCondition: JSONBooleanCondition, field: BooleanField): BooleanFieldCondition;
|
|
14
13
|
render(props: ConditionRenderProps<BooleanFieldCondition>): ReactNode;
|
|
15
14
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONBooleanConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { BooleanField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface BooleanFieldConditionOptions extends BaseConditionOptions<BooleanField, boolean, JSONBooleanConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONCheckboxListCondition, JSONCheckboxListConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { CheckboxListField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class CheckboxListFieldCondition extends BaseCondition<CheckboxListField, ValueOfField<CheckboxListField>, string[], string[], CheckboxListConditionModifiers, CheckboxListFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { CheckboxListFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class CheckboxListFieldCondition extends BaseCondition<CheckboxListField, ValueOfField<CheckboxListField>, string[], string[], JSONCheckboxListConditionModifier, CheckboxListFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
@@ -13,6 +12,6 @@ export declare class CheckboxListFieldCondition extends BaseCondition<CheckboxLi
|
|
|
13
12
|
none: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
14
13
|
};
|
|
15
14
|
constructor(options: CheckboxListFieldConditionOptions);
|
|
16
|
-
static deserialize(serializedCondition:
|
|
15
|
+
static deserialize(serializedCondition: JSONCheckboxListCondition, field: CheckboxListField): CheckboxListFieldCondition;
|
|
17
16
|
render(props: ConditionRenderProps<CheckboxListFieldCondition>): ReactNode;
|
|
18
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONCheckboxListConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { CheckboxListField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface CheckboxListFieldConditionOptions extends BaseConditionOptions<CheckboxListField, string[], JSONCheckboxListConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
+
import { JSONDateCondition, JSONDateConditionModifier, JSONDateRange } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { DateRange } from 'react-day-picker';
|
|
3
|
-
import { DateField,
|
|
4
|
-
import { BaseCondition,
|
|
5
|
-
import {
|
|
6
|
-
export
|
|
7
|
-
}
|
|
8
|
-
export declare class DateFieldCondition extends BaseCondition<DateField, ValueOfField<DateField>, Date | DateRange, string | SerializedDateRange, DateConditionModifiers, DateFieldCondition> {
|
|
4
|
+
import { DateField, ValueOfField } from '../../fields';
|
|
5
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
6
|
+
import { DateFieldConditionOptions } from './typings';
|
|
7
|
+
export declare class DateFieldCondition extends BaseCondition<DateField, ValueOfField<DateField>, Date | DateRange, string | JSONDateRange, JSONDateConditionModifier, DateFieldCondition> {
|
|
9
8
|
readonly modifiers: {
|
|
10
|
-
equals: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string |
|
|
11
|
-
notEquals: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string |
|
|
12
|
-
before: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string |
|
|
13
|
-
after: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string |
|
|
14
|
-
in: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string |
|
|
15
|
-
notIn: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string |
|
|
9
|
+
equals: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string | JSONDateRange, Date, Date, string>;
|
|
10
|
+
notEquals: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string | JSONDateRange, Date, Date, string>;
|
|
11
|
+
before: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string | JSONDateRange, Date, Date, string>;
|
|
12
|
+
after: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string | JSONDateRange, Date, Date, string>;
|
|
13
|
+
in: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string | JSONDateRange, Date, DateRange, JSONDateRange>;
|
|
14
|
+
notIn: import('../..').FieldConditionModifierConfig<Date | null, Date | DateRange, string | JSONDateRange, Date, DateRange, JSONDateRange>;
|
|
16
15
|
};
|
|
17
16
|
constructor(options: DateFieldConditionOptions);
|
|
18
|
-
static deserialize(serializedCondition:
|
|
17
|
+
static deserialize(serializedCondition: JSONDateCondition, field: DateField): DateFieldCondition;
|
|
19
18
|
render(props: ConditionRenderProps<DateFieldCondition>): ReactNode;
|
|
20
19
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { JSONDateConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { DateRange } from 'react-day-picker';
|
|
3
|
+
import { DateField } from '../../fields';
|
|
4
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
5
|
+
export interface DateFieldConditionOptions extends BaseConditionOptions<DateField, Date | DateRange, JSONDateConditionModifier> {
|
|
6
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONMultiSelectCondition, JSONMultiSelectConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { MultiSelectField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class MultiSelectFieldCondition extends BaseCondition<MultiSelectField, ValueOfField<MultiSelectField>, string[], string[], MultiSelectConditionModifiers, MultiSelectFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { MultiSelectFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class MultiSelectFieldCondition extends BaseCondition<MultiSelectField, ValueOfField<MultiSelectField>, string[], string[], JSONMultiSelectConditionModifier, MultiSelectFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
@@ -13,6 +12,6 @@ export declare class MultiSelectFieldCondition extends BaseCondition<MultiSelect
|
|
|
13
12
|
none: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
14
13
|
};
|
|
15
14
|
constructor(options: MultiSelectFieldConditionOptions);
|
|
16
|
-
static deserialize(serializedCondition:
|
|
15
|
+
static deserialize(serializedCondition: JSONMultiSelectCondition, field: MultiSelectField): MultiSelectFieldCondition;
|
|
17
16
|
render(props: ConditionRenderProps<MultiSelectFieldCondition>): ReactNode;
|
|
18
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONMultiSelectConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { MultiSelectField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface MultiSelectFieldConditionOptions extends BaseConditionOptions<MultiSelectField, string[], JSONMultiSelectConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONMultiStringCondition, JSONMultiStringConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { MultiStringField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class MultiStringFieldCondition extends BaseCondition<MultiStringField, ValueOfField<MultiStringField>, string[], string[], MultiStringConditionModifiers, MultiStringFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { MultiStringFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class MultiStringFieldCondition extends BaseCondition<MultiStringField, ValueOfField<MultiStringField>, string[], string[], JSONMultiStringConditionModifier, MultiStringFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
@@ -13,6 +12,6 @@ export declare class MultiStringFieldCondition extends BaseCondition<MultiString
|
|
|
13
12
|
none: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
14
13
|
};
|
|
15
14
|
constructor(options: MultiStringFieldConditionOptions);
|
|
16
|
-
static deserialize(serializedCondition:
|
|
15
|
+
static deserialize(serializedCondition: JSONMultiStringCondition, field: MultiStringField): MultiStringFieldCondition;
|
|
17
16
|
render(props: ConditionRenderProps<MultiStringFieldCondition>): ReactNode;
|
|
18
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONMultiStringConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { MultiStringField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface MultiStringFieldConditionOptions extends BaseConditionOptions<MultiStringField, string[], JSONMultiStringConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONNumberCondition, JSONNumberConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { NumberField, NumberRange, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class NumberFieldCondition extends BaseCondition<NumberField, ValueOfField<NumberField>, number | NumberRange, number | NumberRange, NumberConditionModifiers, NumberFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { NumberFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class NumberFieldCondition extends BaseCondition<NumberField, ValueOfField<NumberField>, number | NumberRange, number | NumberRange, JSONNumberConditionModifier, NumberFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
@@ -16,6 +15,6 @@ export declare class NumberFieldCondition extends BaseCondition<NumberField, Val
|
|
|
16
15
|
notInRange: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
17
16
|
};
|
|
18
17
|
constructor(options: NumberFieldConditionOptions);
|
|
19
|
-
static deserialize(serializedCondition:
|
|
18
|
+
static deserialize(serializedCondition: JSONNumberCondition, field: NumberField): NumberFieldCondition;
|
|
20
19
|
render(props: ConditionRenderProps<NumberFieldCondition>): ReactNode;
|
|
21
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONNumberConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { NumberField, NumberRange } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface NumberFieldConditionOptions extends BaseConditionOptions<NumberField, number | NumberRange, JSONNumberConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONOTPCondition, JSONOTPConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { OTPField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class OTPFieldCondition extends BaseCondition<OTPField, ValueOfField<OTPField>, string, string, OTPConditionModifiers, OTPFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { OTPFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class OTPFieldCondition extends BaseCondition<OTPField, ValueOfField<OTPField>, string, string, JSONOTPConditionModifier, OTPFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
@@ -12,6 +11,6 @@ export declare class OTPFieldCondition extends BaseCondition<OTPField, ValueOfFi
|
|
|
12
11
|
excludes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
13
12
|
};
|
|
14
13
|
constructor(options: OTPFieldConditionOptions);
|
|
15
|
-
static deserialize(serializedCondition:
|
|
14
|
+
static deserialize(serializedCondition: JSONOTPCondition, field: OTPField): OTPFieldCondition;
|
|
16
15
|
render(props: ConditionRenderProps<OTPFieldCondition>): ReactNode;
|
|
17
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONOTPConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { OTPField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface OTPFieldConditionOptions extends BaseConditionOptions<OTPField, string, JSONOTPConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONPassFailFieldCondition, JSONPassFailFieldConditionModifier, PassFailFieldStatus } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PassFailField,
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class PassFailFieldCondition extends BaseCondition<PassFailField, ValueOfField<PassFailField>["status"], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldConditionModifiers, PassFailFieldCondition> {
|
|
3
|
+
import { PassFailField, ValueOfField } from '../../fields';
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { PassFailFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class PassFailFieldCondition extends BaseCondition<PassFailField, ValueOfField<PassFailField>["status"], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], JSONPassFailFieldConditionModifier, PassFailFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
readonly equals: import('../..').FieldConditionModifierConfig<PassFailFieldStatus | null, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus, PassFailFieldStatus, PassFailFieldStatus>;
|
|
10
9
|
readonly notEquals: import('../..').FieldConditionModifierConfig<PassFailFieldStatus | null, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus, PassFailFieldStatus, PassFailFieldStatus>;
|
|
@@ -12,7 +11,7 @@ export declare class PassFailFieldCondition extends BaseCondition<PassFailField,
|
|
|
12
11
|
readonly excludes: import('../..').FieldConditionModifierConfig<PassFailFieldStatus | null, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus, PassFailFieldStatus[], PassFailFieldStatus[]>;
|
|
13
12
|
};
|
|
14
13
|
constructor(options: PassFailFieldConditionOptions);
|
|
15
|
-
static deserialize(serializedCondition:
|
|
14
|
+
static deserialize(serializedCondition: JSONPassFailFieldCondition, field: PassFailField): PassFailFieldCondition;
|
|
16
15
|
transformValue(value: ValueOfField<PassFailField>): ValueOfField<PassFailField>["status"];
|
|
17
16
|
render(props: ConditionRenderProps<PassFailFieldCondition>): ReactNode;
|
|
18
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONPassFailFieldConditionModifier, PassFailFieldStatus } from '@adrekic/fieldsjson';
|
|
2
|
+
import { PassFailField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface PassFailFieldConditionOptions extends BaseConditionOptions<PassFailField, PassFailFieldStatus | PassFailFieldStatus[], JSONPassFailFieldConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONRadioCondition, JSONRadioConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { RadioField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class RadioFieldCondition extends BaseCondition<RadioField, ValueOfField<RadioField>, string | string[], string | string[], RadioConditionModifiers, RadioFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { RadioFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class RadioFieldCondition extends BaseCondition<RadioField, ValueOfField<RadioField>, string | string[], string | string[], JSONRadioConditionModifier, RadioFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
@@ -12,6 +11,6 @@ export declare class RadioFieldCondition extends BaseCondition<RadioField, Value
|
|
|
12
11
|
excludes: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string[], string[]>;
|
|
13
12
|
};
|
|
14
13
|
constructor(options: RadioFieldConditionOptions);
|
|
15
|
-
static deserialize(serializedCondition:
|
|
14
|
+
static deserialize(serializedCondition: JSONRadioCondition, field: RadioField): RadioFieldCondition;
|
|
16
15
|
render(props: ConditionRenderProps<RadioFieldCondition>): ReactNode;
|
|
17
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONRadioConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { RadioField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface RadioFieldConditionOptions extends BaseConditionOptions<RadioField, string | string[], JSONRadioConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONRatingCondition, JSONRatingConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { NumberRange, RatingField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class RatingFieldCondition extends BaseCondition<RatingField, ValueOfField<RatingField>, number | NumberRange, number | NumberRange, RatingConditionModifiers, RatingFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { RatingFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class RatingFieldCondition extends BaseCondition<RatingField, ValueOfField<RatingField>, number | NumberRange, number | NumberRange, JSONRatingConditionModifier, RatingFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, number, number>;
|
|
@@ -16,6 +15,6 @@ export declare class RatingFieldCondition extends BaseCondition<RatingField, Val
|
|
|
16
15
|
notInRange: import('../..').FieldConditionModifierConfig<number | null, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
17
16
|
};
|
|
18
17
|
constructor(options: RatingFieldConditionOptions);
|
|
19
|
-
static deserialize(serializedCondition:
|
|
18
|
+
static deserialize(serializedCondition: JSONRatingCondition, field: RatingField): RatingFieldCondition;
|
|
20
19
|
render(props: ConditionRenderProps<RatingFieldCondition>): ReactNode;
|
|
21
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONRatingConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { NumberRange, RatingField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface RatingFieldConditionOptions extends BaseConditionOptions<RatingField, number | NumberRange, JSONRatingConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONScanCondition, JSONScanConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { ScanField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class ScanFieldCondition extends BaseCondition<ScanField, ValueOfField<ScanField>, string, string, ScanConditionModifiers, ScanFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { ScanFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class ScanFieldCondition extends BaseCondition<ScanField, ValueOfField<ScanField>, string, string, JSONScanConditionModifier, ScanFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
@@ -12,6 +11,6 @@ export declare class ScanFieldCondition extends BaseCondition<ScanField, ValueOf
|
|
|
12
11
|
excludes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
13
12
|
};
|
|
14
13
|
constructor(options: ScanFieldConditionOptions);
|
|
15
|
-
static deserialize(serializedCondition:
|
|
14
|
+
static deserialize(serializedCondition: JSONScanCondition, field: ScanField): ScanFieldCondition;
|
|
16
15
|
render(props: ConditionRenderProps<ScanFieldCondition>): ReactNode;
|
|
17
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONScanConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { ScanField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface ScanFieldConditionOptions extends BaseConditionOptions<ScanField, string, JSONScanConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONSelectCondition, JSONSelectConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { SelectField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class SelectFieldCondition extends BaseCondition<SelectField, ValueOfField<SelectField>, string | string[], string | string[], SelectConditionModifiers, SelectFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { SelectFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class SelectFieldCondition extends BaseCondition<SelectField, ValueOfField<SelectField>, string | string[], string | string[], JSONSelectConditionModifier, SelectFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string, string>;
|
|
@@ -12,6 +11,6 @@ export declare class SelectFieldCondition extends BaseCondition<SelectField, Val
|
|
|
12
11
|
excludes: import('../..').FieldConditionModifierConfig<string | null, string | string[], string | string[], string, string[], string[]>;
|
|
13
12
|
};
|
|
14
13
|
constructor(options: SelectFieldConditionOptions);
|
|
15
|
-
static deserialize(serializedCondition:
|
|
14
|
+
static deserialize(serializedCondition: JSONSelectCondition, field: SelectField): SelectFieldCondition;
|
|
16
15
|
render(props: ConditionRenderProps<SelectFieldCondition>): ReactNode;
|
|
17
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONSelectConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { SelectField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface SelectFieldConditionOptions extends BaseConditionOptions<SelectField, string | string[], JSONSelectConditionModifier> {
|
|
5
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { JSONStringCondition, JSONStringConditionModifier } from '@adrekic/fieldsjson';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { StringField, ValueOfField } from '../../fields';
|
|
3
|
-
import { BaseCondition,
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
}
|
|
7
|
-
export declare class StringFieldCondition extends BaseCondition<StringField, ValueOfField<StringField>, string, string, StringConditionModifiers, StringFieldCondition> {
|
|
4
|
+
import { BaseCondition, ConditionRenderProps } from '../BaseCondition';
|
|
5
|
+
import { StringFieldConditionOptions } from './typings';
|
|
6
|
+
export declare class StringFieldCondition extends BaseCondition<StringField, ValueOfField<StringField>, string, string, JSONStringConditionModifier, StringFieldCondition> {
|
|
8
7
|
readonly modifiers: {
|
|
9
8
|
equals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
10
9
|
notEquals: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
@@ -12,6 +11,6 @@ export declare class StringFieldCondition extends BaseCondition<StringField, Val
|
|
|
12
11
|
excludes: import('../..').FieldConditionModifierConfig<string, string, string, string, string, string>;
|
|
13
12
|
};
|
|
14
13
|
constructor(options: StringFieldConditionOptions);
|
|
15
|
-
static deserialize(serializedCondition:
|
|
14
|
+
static deserialize(serializedCondition: JSONStringCondition, field: StringField): StringFieldCondition;
|
|
16
15
|
render(props: ConditionRenderProps<StringFieldCondition>): ReactNode;
|
|
17
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSONStringConditionModifier } from '@adrekic/fieldsjson';
|
|
2
|
+
import { StringField } from '../../fields';
|
|
3
|
+
import { BaseConditionOptions } from '../BaseCondition';
|
|
4
|
+
export interface StringFieldConditionOptions extends BaseConditionOptions<StringField, string, JSONStringConditionModifier> {
|
|
5
|
+
}
|