@overmap-ai/forms 1.0.32-react-flow-david-fixes.7 → 1.0.32-react-flow-david-fixes.9
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/conditions/BooleanFieldCondition/BooleanFieldCondition.d.ts +2 -2
- package/dist/form/conditions/CheckboxListFieldCondition/CheckboxListFieldCondition.d.ts +5 -5
- package/dist/form/conditions/DateFieldCondition/DateFieldCondition.d.ts +6 -6
- package/dist/form/conditions/MultiSelectFieldCondition/MultiSelectFieldCondition.d.ts +10 -10
- package/dist/form/conditions/MultiStringFieldCondition/MultiStringFieldCondition.d.ts +5 -5
- package/dist/form/conditions/NumberFieldCondition/NumberFieldCondition.d.ts +16 -16
- package/dist/form/conditions/RadioFieldCondition/RadioFieldCondition.d.ts +4 -4
- package/dist/form/conditions/ScanFieldCondition/ScanFieldCondition.d.ts +4 -4
- package/dist/form/conditions/SelectFieldCondition/SelectFieldCondition.d.ts +4 -4
- package/dist/form/conditions/StringFieldCondition/StringFieldCondition.d.ts +4 -4
- package/dist/form/conditions/TextFieldCondition/TextFieldCondition.d.ts +4 -4
- package/dist/form/conditions/UploadFieldCondition/UploadFieldCondition.d.ts +2 -2
- package/dist/form/fields/utils.d.ts +3 -3
- package/dist/form/index.d.ts +3 -0
- package/dist/form/schema/FieldSchema.d.ts +3 -0
- package/dist/forms.js +65 -0
- package/dist/forms.umd.cjs +65 -0
- package/package.json +1 -1
|
@@ -8,8 +8,8 @@ export declare class BooleanFieldCondition extends BaseCondition<BooleanField, b
|
|
|
8
8
|
readonly defaultConditionModifier = "equals";
|
|
9
9
|
readonly defaultConditionValue: undefined;
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<boolean, boolean, boolean, boolean, boolean, boolean>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<boolean, boolean, boolean, boolean, boolean, boolean>;
|
|
13
13
|
};
|
|
14
14
|
constructor(options: BooleanFieldConditionOptions);
|
|
15
15
|
static deserialize(serializedCondition: SerializedBooleanCondition, field: BooleanField): BooleanFieldCondition;
|
|
@@ -8,11 +8,11 @@ export declare class CheckboxListFieldCondition extends BaseCondition<CheckboxLi
|
|
|
8
8
|
readonly defaultConditionModifier = "equals";
|
|
9
9
|
readonly defaultConditionValue: string[] | undefined;
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
13
|
-
every: import('
|
|
14
|
-
some: import('
|
|
15
|
-
none: import('
|
|
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
16
|
};
|
|
17
17
|
constructor(options: CheckboxListFieldConditionOptions);
|
|
18
18
|
static deserialize(serializedCondition: SerializedCheckboxListCondition, field: CheckboxListField): CheckboxListFieldCondition;
|
|
@@ -9,12 +9,12 @@ export declare class DateFieldCondition extends BaseCondition<DateField, Date |
|
|
|
9
9
|
readonly defaultConditionModifier = "equals";
|
|
10
10
|
readonly defaultConditionValue: undefined;
|
|
11
11
|
readonly modifiers: {
|
|
12
|
-
equals: import('
|
|
13
|
-
notEquals: import('
|
|
14
|
-
before: import('
|
|
15
|
-
after: import('
|
|
16
|
-
in: import('
|
|
17
|
-
notIn: import('
|
|
12
|
+
equals: import('../..').FieldConditionModifierConfig<Date, Date | DateRange, string | SerializedDateRange, Date, Date, string>;
|
|
13
|
+
notEquals: import('../..').FieldConditionModifierConfig<Date, Date | DateRange, string | SerializedDateRange, Date, Date, string>;
|
|
14
|
+
before: import('../..').FieldConditionModifierConfig<Date, Date | DateRange, string | SerializedDateRange, Date, Date, string>;
|
|
15
|
+
after: import('../..').FieldConditionModifierConfig<Date, Date | DateRange, string | SerializedDateRange, Date, Date, string>;
|
|
16
|
+
in: import('../..').FieldConditionModifierConfig<Date, Date | DateRange, string | SerializedDateRange, Date, DateRange, SerializedDateRange>;
|
|
17
|
+
notIn: import('../..').FieldConditionModifierConfig<Date, Date | DateRange, string | SerializedDateRange, Date, DateRange, SerializedDateRange>;
|
|
18
18
|
};
|
|
19
19
|
constructor(options: DateFieldConditionOptions);
|
|
20
20
|
static deserialize(serializedCondition: SerializedDateCondition, field: DateField): DateFieldCondition;
|
|
@@ -3,11 +3,11 @@ import { MultiSelectField } from '../../fields';
|
|
|
3
3
|
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
4
|
import { MultiSelectConditionModifiers, SerializedMultiSelectCondition } from './typings';
|
|
5
5
|
declare const modifiers: {
|
|
6
|
-
equals: import('
|
|
7
|
-
notEquals: import('
|
|
8
|
-
every: import('
|
|
9
|
-
some: import('
|
|
10
|
-
none: import('
|
|
6
|
+
equals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
7
|
+
notEquals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
8
|
+
every: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
9
|
+
some: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
10
|
+
none: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
11
11
|
};
|
|
12
12
|
export interface MultiSelectFieldConditionOptions extends ConditionOptions<MultiSelectField, string[], MultiSelectConditionModifiers> {
|
|
13
13
|
}
|
|
@@ -15,11 +15,11 @@ export declare class MultiSelectFieldCondition extends BaseCondition<MultiSelect
|
|
|
15
15
|
readonly defaultConditionValue: string[] | undefined;
|
|
16
16
|
readonly defaultConditionModifier: keyof typeof modifiers;
|
|
17
17
|
readonly modifiers: {
|
|
18
|
-
equals: import('
|
|
19
|
-
notEquals: import('
|
|
20
|
-
every: import('
|
|
21
|
-
some: import('
|
|
22
|
-
none: import('
|
|
18
|
+
equals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
19
|
+
notEquals: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
20
|
+
every: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
21
|
+
some: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
22
|
+
none: import('../..').FieldConditionModifierConfig<string[], string[], string[], string[], string[], string[]>;
|
|
23
23
|
};
|
|
24
24
|
constructor(options: MultiSelectFieldConditionOptions);
|
|
25
25
|
static deserialize(serializedCondition: SerializedMultiSelectCondition, field: MultiSelectField): MultiSelectFieldCondition;
|
|
@@ -8,11 +8,11 @@ export declare class MultiStringFieldCondition extends BaseCondition<MultiString
|
|
|
8
8
|
readonly defaultConditionValue: undefined;
|
|
9
9
|
readonly defaultConditionModifier = "equals";
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
13
|
-
every: import('
|
|
14
|
-
some: import('
|
|
15
|
-
none: import('
|
|
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
16
|
};
|
|
17
17
|
constructor(options: MultiStringFieldConditionOptions);
|
|
18
18
|
static deserialize(serializedCondition: SerializedMultiStringCondition, field: MultiStringField): MultiStringFieldCondition;
|
|
@@ -3,14 +3,14 @@ import { NumberField, NumberRange } from '../../fields';
|
|
|
3
3
|
import { BaseCondition, ConditionOptions, ConditionRenderProps } from '../BaseCondition';
|
|
4
4
|
import { NumberConditionModifiers, SerializedNumberCondition } from './typings';
|
|
5
5
|
declare const modifiers: {
|
|
6
|
-
equals: import('
|
|
7
|
-
notEquals: import('
|
|
8
|
-
lessThan: import('
|
|
9
|
-
lessThanOrEquals: import('
|
|
10
|
-
greaterThan: import('
|
|
11
|
-
greaterThanOrEquals: import('
|
|
12
|
-
inRange: import('
|
|
13
|
-
notInRange: import('
|
|
6
|
+
equals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
7
|
+
notEquals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
8
|
+
lessThan: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
9
|
+
lessThanOrEquals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
10
|
+
greaterThan: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
11
|
+
greaterThanOrEquals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
12
|
+
inRange: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
13
|
+
notInRange: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
14
14
|
};
|
|
15
15
|
export interface NumberFieldConditionOptions extends ConditionOptions<NumberField, number | NumberRange, NumberConditionModifiers> {
|
|
16
16
|
}
|
|
@@ -18,14 +18,14 @@ export declare class NumberFieldCondition extends BaseCondition<NumberField, num
|
|
|
18
18
|
readonly defaultConditionValue: number | undefined;
|
|
19
19
|
readonly defaultConditionModifier: keyof typeof modifiers;
|
|
20
20
|
readonly modifiers: {
|
|
21
|
-
equals: import('
|
|
22
|
-
notEquals: import('
|
|
23
|
-
lessThan: import('
|
|
24
|
-
lessThanOrEquals: import('
|
|
25
|
-
greaterThan: import('
|
|
26
|
-
greaterThanOrEquals: import('
|
|
27
|
-
inRange: import('
|
|
28
|
-
notInRange: import('
|
|
21
|
+
equals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
22
|
+
notEquals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
23
|
+
lessThan: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
24
|
+
lessThanOrEquals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
25
|
+
greaterThan: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
26
|
+
greaterThanOrEquals: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, number, number>;
|
|
27
|
+
inRange: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
28
|
+
notInRange: import('../..').FieldConditionModifierConfig<number, number | NumberRange, number | NumberRange, number, NumberRange, NumberRange>;
|
|
29
29
|
};
|
|
30
30
|
constructor(options: NumberFieldConditionOptions);
|
|
31
31
|
static deserialize(serializedCondition: SerializedNumberCondition, field: NumberField): NumberFieldCondition;
|
|
@@ -8,10 +8,10 @@ export declare class RadioFieldCondition extends BaseCondition<RadioField, strin
|
|
|
8
8
|
readonly defaultConditionValue: undefined;
|
|
9
9
|
readonly defaultConditionModifier = "equals";
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
13
|
-
includes: import('
|
|
14
|
-
excludes: import('
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string, string>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string, string>;
|
|
13
|
+
includes: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string[], string[]>;
|
|
14
|
+
excludes: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string[], string[]>;
|
|
15
15
|
};
|
|
16
16
|
constructor(options: RadioFieldConditionOptions);
|
|
17
17
|
static deserialize(serializedCondition: SerializedRadioCondition, field: RadioField): RadioFieldCondition;
|
|
@@ -8,10 +8,10 @@ export declare class ScanFieldCondition extends BaseCondition<ScanField, string,
|
|
|
8
8
|
readonly defaultConditionValue: undefined;
|
|
9
9
|
readonly defaultConditionModifier = "equals";
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
13
|
-
includes: import('
|
|
14
|
-
excludes: import('
|
|
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
15
|
};
|
|
16
16
|
constructor(options: ScanFieldConditionOptions);
|
|
17
17
|
static deserialize(serializedCondition: SerializedScanCondition, field: ScanField): ScanFieldCondition;
|
|
@@ -8,10 +8,10 @@ export declare class SelectFieldCondition extends BaseCondition<SelectField, str
|
|
|
8
8
|
readonly defaultConditionValue: undefined;
|
|
9
9
|
readonly defaultConditionModifier = "equals";
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
13
|
-
includes: import('
|
|
14
|
-
excludes: import('
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string, string>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string, string>;
|
|
13
|
+
includes: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string[], string[]>;
|
|
14
|
+
excludes: import('../..').FieldConditionModifierConfig<string, string | string[], string | string[], string, string[], string[]>;
|
|
15
15
|
};
|
|
16
16
|
constructor(options: SelectFieldConditionOptions);
|
|
17
17
|
static deserialize(serializedCondition: SerializedSelectCondition, field: SelectField): SelectFieldCondition;
|
|
@@ -8,10 +8,10 @@ export declare class StringFieldCondition extends BaseCondition<StringField, str
|
|
|
8
8
|
readonly defaultConditionValue: undefined;
|
|
9
9
|
readonly defaultConditionModifier = "equals";
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
13
|
-
includes: import('
|
|
14
|
-
excludes: import('
|
|
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
15
|
};
|
|
16
16
|
constructor(options: StringFieldConditionOptions);
|
|
17
17
|
static deserialize(serializedCondition: SerializedStringCondition, field: StringField): StringFieldCondition;
|
|
@@ -9,10 +9,10 @@ export declare class TextFieldCondition extends BaseCondition<TextField, string,
|
|
|
9
9
|
readonly defaultConditionValue: undefined;
|
|
10
10
|
readonly defaultConditionModifier = "equals";
|
|
11
11
|
readonly modifiers: {
|
|
12
|
-
equals: import('
|
|
13
|
-
notEquals: import('
|
|
14
|
-
includes: import('
|
|
15
|
-
excludes: import('
|
|
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
16
|
};
|
|
17
17
|
constructor(options: TextFieldConditionOptions);
|
|
18
18
|
static deserialize(serializedCondition: SerializedTextCondition, field: TextField): TextFieldCondition;
|
|
@@ -8,8 +8,8 @@ export declare class UploadFieldCondition extends BaseCondition<UploadField, boo
|
|
|
8
8
|
readonly defaultConditionValue: undefined;
|
|
9
9
|
readonly defaultConditionModifier = "equals";
|
|
10
10
|
readonly modifiers: {
|
|
11
|
-
equals: import('
|
|
12
|
-
notEquals: import('
|
|
11
|
+
equals: import('../..').FieldConditionModifierConfig<(File | Promise<File>)[], boolean, boolean, File[], boolean, boolean>;
|
|
12
|
+
notEquals: import('../..').FieldConditionModifierConfig<(File | Promise<File>)[], boolean, boolean, File[], boolean, boolean>;
|
|
13
13
|
};
|
|
14
14
|
constructor(options: UploadFieldConditionOptions);
|
|
15
15
|
static deserialize(serializedCondition: SerializedUploadCondition, field: UploadField): UploadFieldCondition;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FieldValues, SerializedFieldValues } from '../typings';
|
|
2
2
|
import { FieldSection } from './FieldSection';
|
|
3
|
-
import {
|
|
3
|
+
import { Field, SerializedField, SerializedOnlyField } from './typings';
|
|
4
4
|
export declare const deserializeField: (serializedField: SerializedOnlyField) => Field;
|
|
5
5
|
export declare const deserialize: (serialized: SerializedField) => Field | FieldSection;
|
|
6
6
|
export declare function deserializeFields(fields: SerializedField[]): (Field | FieldSection)[];
|
|
7
7
|
export declare function deserializeOnlyFields(fields: SerializedOnlyField[]): Field[];
|
|
8
8
|
export declare function flattenFields(fields: (Field | FieldSection)[]): Field[];
|
|
9
9
|
export declare function getFieldsMapping(fields: (Field | FieldSection)[]): Record<string, Field>;
|
|
10
|
-
export declare function serializeFieldValues(fields:
|
|
11
|
-
export declare function deserializeFieldValues(fields:
|
|
10
|
+
export declare function serializeFieldValues(fields: Field[], values: FieldValues): SerializedFieldValues;
|
|
11
|
+
export declare function deserializeFieldValues(fields: Field[], values: SerializedFieldValues): FieldValues;
|
package/dist/form/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './builder';
|
|
2
|
+
export * from './conditions';
|
|
2
3
|
export * from './constants';
|
|
3
4
|
export * from './fields';
|
|
5
|
+
export * from './modifiers';
|
|
4
6
|
export * from './renderer';
|
|
7
|
+
export * from './schema';
|
|
5
8
|
export type * from './typings';
|
|
6
9
|
export { awaitPromisesFromFieldValues, initializeFieldValues, separateFilesFromFields, separateFilesFromFieldValues, validateFields, } from './utils';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FieldSection, FieldsManager, SerializedFieldSection } from '../fields';
|
|
2
2
|
import { Observable } from '../observable/Observable';
|
|
3
|
+
import { FieldValues, SerializedFieldValues } from '../typings';
|
|
3
4
|
export declare class FieldSchema extends Observable<FieldSchema> implements FieldsManager<FieldSection> {
|
|
4
5
|
fields: FieldSection[];
|
|
5
6
|
constructor(fields: FieldSection[]);
|
|
@@ -13,4 +14,6 @@ export declare class FieldSchema extends Observable<FieldSchema> implements Fiel
|
|
|
13
14
|
removeField(field: FieldSection): void;
|
|
14
15
|
removeFields(fields: FieldSection[]): void;
|
|
15
16
|
moveField(sourceIndex: number, targetIndex: number): void;
|
|
17
|
+
deserializeValues(values: SerializedFieldValues): FieldValues;
|
|
18
|
+
serializeValues(values: FieldValues): SerializedFieldValues;
|
|
16
19
|
}
|
package/dist/forms.js
CHANGED
|
@@ -34480,6 +34480,12 @@ class FieldSchema extends Observable {
|
|
|
34480
34480
|
this.fields = this.initFields(newFields);
|
|
34481
34481
|
this.notify(this);
|
|
34482
34482
|
}
|
|
34483
|
+
deserializeValues(values) {
|
|
34484
|
+
return deserializeFieldValues(flattenFields(this.fields), values);
|
|
34485
|
+
}
|
|
34486
|
+
serializeValues(values) {
|
|
34487
|
+
return serializeFieldValues(flattenFields(this.fields), values);
|
|
34488
|
+
}
|
|
34483
34489
|
}
|
|
34484
34490
|
const FieldSchemaContext = createContext(new FieldSchema([]));
|
|
34485
34491
|
const FormBuilderContext = createContext({});
|
|
@@ -35998,22 +36004,40 @@ const FormBuilder = {
|
|
|
35998
36004
|
Preview: FormBuilderPreview
|
|
35999
36005
|
};
|
|
36000
36006
|
export {
|
|
36007
|
+
BaseCondition,
|
|
36001
36008
|
BaseField,
|
|
36002
36009
|
BaseFormElement,
|
|
36003
36010
|
BaseOptionsField,
|
|
36004
36011
|
BaseStringField,
|
|
36012
|
+
BooleanEqualsConditionModifier,
|
|
36005
36013
|
BooleanField,
|
|
36014
|
+
BooleanFieldCondition,
|
|
36015
|
+
BooleanFieldConditionCell,
|
|
36006
36016
|
BooleanInput,
|
|
36017
|
+
BooleanNotEqualsConditionModifier,
|
|
36007
36018
|
CheckboxListField,
|
|
36019
|
+
CheckboxListFieldCondition,
|
|
36020
|
+
CheckboxListFieldConditionCell,
|
|
36008
36021
|
CheckboxListInput,
|
|
36022
|
+
DateAfterConditionModifier,
|
|
36023
|
+
DateBeforeConditionModifier,
|
|
36024
|
+
DateEqualsConditionModifier,
|
|
36009
36025
|
DateField,
|
|
36026
|
+
DateFieldCondition,
|
|
36027
|
+
DateFieldConditionCell,
|
|
36010
36028
|
DateInput,
|
|
36029
|
+
DateNotEqualsConditionModifier,
|
|
36030
|
+
DateRangeInConditionModifier,
|
|
36031
|
+
DateRangeNotInConditionModifier,
|
|
36032
|
+
DoesNotHaveFilesConditionModifier,
|
|
36033
|
+
FieldSchema,
|
|
36011
36034
|
FieldSection,
|
|
36012
36035
|
FieldSectionLayout,
|
|
36013
36036
|
FieldTypeToClsMapping,
|
|
36014
36037
|
FileCard,
|
|
36015
36038
|
FormBuilder,
|
|
36016
36039
|
FormRenderer,
|
|
36040
|
+
HasFilesConditionModifier,
|
|
36017
36041
|
ImageCard,
|
|
36018
36042
|
ImageViewer,
|
|
36019
36043
|
ImageViewerProvider,
|
|
@@ -36022,30 +36046,71 @@ export {
|
|
|
36022
36046
|
InputWithLabelAndHelpText,
|
|
36023
36047
|
LONG_TEXT_FIELD_MAX_LENGTH,
|
|
36024
36048
|
MultiSelectField,
|
|
36049
|
+
MultiSelectFieldCondition,
|
|
36050
|
+
MultiSelectFieldConditionCell,
|
|
36025
36051
|
MultiSelectInput,
|
|
36026
36052
|
MultiStringField,
|
|
36053
|
+
MultiStringFieldCondition,
|
|
36054
|
+
MultiStringFieldConditionCell,
|
|
36027
36055
|
MultiStringInput,
|
|
36056
|
+
NumberEqualsConditionModifier,
|
|
36028
36057
|
NumberField,
|
|
36058
|
+
NumberFieldCondition,
|
|
36059
|
+
NumberFieldConditionCell,
|
|
36060
|
+
NumberGreaterThanConditionModifier,
|
|
36061
|
+
NumberGreaterThanOrEqualsConditionModifier,
|
|
36029
36062
|
NumberInput,
|
|
36063
|
+
NumberLessThanConditionModifier,
|
|
36064
|
+
NumberLessThanOrEqualsConditionModifier,
|
|
36065
|
+
NumberNotEqualsConditionModifier,
|
|
36066
|
+
NumberRangeInConditionModifier,
|
|
36067
|
+
NumberRangeNotInConditionModifier,
|
|
36030
36068
|
RadioField,
|
|
36069
|
+
RadioFieldCondition,
|
|
36070
|
+
RadioFieldConditionCell,
|
|
36031
36071
|
RadioInput,
|
|
36032
36072
|
SEVERITY_COLOR_MAPPING,
|
|
36033
36073
|
SHORT_TEXT_FIELD_MAX_LENGTH,
|
|
36034
36074
|
ScanField,
|
|
36075
|
+
ScanFieldCondition,
|
|
36076
|
+
ScanFieldConditionCell,
|
|
36035
36077
|
ScanInput,
|
|
36036
36078
|
Scanner,
|
|
36037
36079
|
SelectField,
|
|
36080
|
+
SelectFieldCondition,
|
|
36081
|
+
SelectFieldConditionCell,
|
|
36038
36082
|
SelectInput,
|
|
36083
|
+
StringArrayEqualsConditionModifier,
|
|
36084
|
+
StringArrayEveryConditionModifier,
|
|
36085
|
+
StringArrayExcludesConditionModifier,
|
|
36086
|
+
StringArrayIncludesConditionModifier,
|
|
36087
|
+
StringArrayNoneConditionModifier,
|
|
36088
|
+
StringArrayNotEqualsConditionModifier,
|
|
36089
|
+
StringArraySomeConditionModifier,
|
|
36090
|
+
StringEqualsConditionModifier,
|
|
36091
|
+
StringExcludesConditionModifier,
|
|
36039
36092
|
StringField,
|
|
36093
|
+
StringFieldCondition,
|
|
36094
|
+
StringFieldConditionCell,
|
|
36095
|
+
StringIncludesConditionModifier,
|
|
36040
36096
|
StringInput,
|
|
36097
|
+
StringNotEqualsConditionModifier,
|
|
36041
36098
|
TextField,
|
|
36099
|
+
TextFieldCondition,
|
|
36100
|
+
TextFieldConditionCell,
|
|
36042
36101
|
TextInput,
|
|
36043
36102
|
UploadField,
|
|
36103
|
+
UploadFieldCondition,
|
|
36104
|
+
UploadFieldConditionCell,
|
|
36044
36105
|
UploadInput,
|
|
36106
|
+
applyConditions,
|
|
36045
36107
|
awaitPromisesFromFieldValues,
|
|
36046
36108
|
createCondition,
|
|
36109
|
+
createConditionModifierConfig,
|
|
36047
36110
|
createField,
|
|
36048
36111
|
deserialize,
|
|
36112
|
+
deserializeCondition,
|
|
36113
|
+
deserializeConditions,
|
|
36049
36114
|
deserializeField,
|
|
36050
36115
|
deserializeFieldValues,
|
|
36051
36116
|
deserializeFields,
|
package/dist/forms.umd.cjs
CHANGED
|
@@ -34482,6 +34482,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
34482
34482
|
this.fields = this.initFields(newFields);
|
|
34483
34483
|
this.notify(this);
|
|
34484
34484
|
}
|
|
34485
|
+
deserializeValues(values) {
|
|
34486
|
+
return deserializeFieldValues(flattenFields(this.fields), values);
|
|
34487
|
+
}
|
|
34488
|
+
serializeValues(values) {
|
|
34489
|
+
return serializeFieldValues(flattenFields(this.fields), values);
|
|
34490
|
+
}
|
|
34485
34491
|
}
|
|
34486
34492
|
const FieldSchemaContext = React.createContext(new FieldSchema([]));
|
|
34487
34493
|
const FormBuilderContext = React.createContext({});
|
|
@@ -35999,22 +36005,40 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
35999
36005
|
ListBuilder: FormBuilderListBuilder,
|
|
36000
36006
|
Preview: FormBuilderPreview
|
|
36001
36007
|
};
|
|
36008
|
+
exports2.BaseCondition = BaseCondition;
|
|
36002
36009
|
exports2.BaseField = BaseField;
|
|
36003
36010
|
exports2.BaseFormElement = BaseFormElement;
|
|
36004
36011
|
exports2.BaseOptionsField = BaseOptionsField;
|
|
36005
36012
|
exports2.BaseStringField = BaseStringField;
|
|
36013
|
+
exports2.BooleanEqualsConditionModifier = BooleanEqualsConditionModifier;
|
|
36006
36014
|
exports2.BooleanField = BooleanField;
|
|
36015
|
+
exports2.BooleanFieldCondition = BooleanFieldCondition;
|
|
36016
|
+
exports2.BooleanFieldConditionCell = BooleanFieldConditionCell;
|
|
36007
36017
|
exports2.BooleanInput = BooleanInput;
|
|
36018
|
+
exports2.BooleanNotEqualsConditionModifier = BooleanNotEqualsConditionModifier;
|
|
36008
36019
|
exports2.CheckboxListField = CheckboxListField;
|
|
36020
|
+
exports2.CheckboxListFieldCondition = CheckboxListFieldCondition;
|
|
36021
|
+
exports2.CheckboxListFieldConditionCell = CheckboxListFieldConditionCell;
|
|
36009
36022
|
exports2.CheckboxListInput = CheckboxListInput;
|
|
36023
|
+
exports2.DateAfterConditionModifier = DateAfterConditionModifier;
|
|
36024
|
+
exports2.DateBeforeConditionModifier = DateBeforeConditionModifier;
|
|
36025
|
+
exports2.DateEqualsConditionModifier = DateEqualsConditionModifier;
|
|
36010
36026
|
exports2.DateField = DateField;
|
|
36027
|
+
exports2.DateFieldCondition = DateFieldCondition;
|
|
36028
|
+
exports2.DateFieldConditionCell = DateFieldConditionCell;
|
|
36011
36029
|
exports2.DateInput = DateInput;
|
|
36030
|
+
exports2.DateNotEqualsConditionModifier = DateNotEqualsConditionModifier;
|
|
36031
|
+
exports2.DateRangeInConditionModifier = DateRangeInConditionModifier;
|
|
36032
|
+
exports2.DateRangeNotInConditionModifier = DateRangeNotInConditionModifier;
|
|
36033
|
+
exports2.DoesNotHaveFilesConditionModifier = DoesNotHaveFilesConditionModifier;
|
|
36034
|
+
exports2.FieldSchema = FieldSchema;
|
|
36012
36035
|
exports2.FieldSection = FieldSection;
|
|
36013
36036
|
exports2.FieldSectionLayout = FieldSectionLayout;
|
|
36014
36037
|
exports2.FieldTypeToClsMapping = FieldTypeToClsMapping;
|
|
36015
36038
|
exports2.FileCard = FileCard;
|
|
36016
36039
|
exports2.FormBuilder = FormBuilder;
|
|
36017
36040
|
exports2.FormRenderer = FormRenderer;
|
|
36041
|
+
exports2.HasFilesConditionModifier = HasFilesConditionModifier;
|
|
36018
36042
|
exports2.ImageCard = ImageCard;
|
|
36019
36043
|
exports2.ImageViewer = ImageViewer;
|
|
36020
36044
|
exports2.ImageViewerProvider = ImageViewerProvider;
|
|
@@ -36023,30 +36047,71 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
36023
36047
|
exports2.InputWithLabelAndHelpText = InputWithLabelAndHelpText;
|
|
36024
36048
|
exports2.LONG_TEXT_FIELD_MAX_LENGTH = LONG_TEXT_FIELD_MAX_LENGTH;
|
|
36025
36049
|
exports2.MultiSelectField = MultiSelectField;
|
|
36050
|
+
exports2.MultiSelectFieldCondition = MultiSelectFieldCondition;
|
|
36051
|
+
exports2.MultiSelectFieldConditionCell = MultiSelectFieldConditionCell;
|
|
36026
36052
|
exports2.MultiSelectInput = MultiSelectInput;
|
|
36027
36053
|
exports2.MultiStringField = MultiStringField;
|
|
36054
|
+
exports2.MultiStringFieldCondition = MultiStringFieldCondition;
|
|
36055
|
+
exports2.MultiStringFieldConditionCell = MultiStringFieldConditionCell;
|
|
36028
36056
|
exports2.MultiStringInput = MultiStringInput;
|
|
36057
|
+
exports2.NumberEqualsConditionModifier = NumberEqualsConditionModifier;
|
|
36029
36058
|
exports2.NumberField = NumberField;
|
|
36059
|
+
exports2.NumberFieldCondition = NumberFieldCondition;
|
|
36060
|
+
exports2.NumberFieldConditionCell = NumberFieldConditionCell;
|
|
36061
|
+
exports2.NumberGreaterThanConditionModifier = NumberGreaterThanConditionModifier;
|
|
36062
|
+
exports2.NumberGreaterThanOrEqualsConditionModifier = NumberGreaterThanOrEqualsConditionModifier;
|
|
36030
36063
|
exports2.NumberInput = NumberInput;
|
|
36064
|
+
exports2.NumberLessThanConditionModifier = NumberLessThanConditionModifier;
|
|
36065
|
+
exports2.NumberLessThanOrEqualsConditionModifier = NumberLessThanOrEqualsConditionModifier;
|
|
36066
|
+
exports2.NumberNotEqualsConditionModifier = NumberNotEqualsConditionModifier;
|
|
36067
|
+
exports2.NumberRangeInConditionModifier = NumberRangeInConditionModifier;
|
|
36068
|
+
exports2.NumberRangeNotInConditionModifier = NumberRangeNotInConditionModifier;
|
|
36031
36069
|
exports2.RadioField = RadioField;
|
|
36070
|
+
exports2.RadioFieldCondition = RadioFieldCondition;
|
|
36071
|
+
exports2.RadioFieldConditionCell = RadioFieldConditionCell;
|
|
36032
36072
|
exports2.RadioInput = RadioInput;
|
|
36033
36073
|
exports2.SEVERITY_COLOR_MAPPING = SEVERITY_COLOR_MAPPING;
|
|
36034
36074
|
exports2.SHORT_TEXT_FIELD_MAX_LENGTH = SHORT_TEXT_FIELD_MAX_LENGTH;
|
|
36035
36075
|
exports2.ScanField = ScanField;
|
|
36076
|
+
exports2.ScanFieldCondition = ScanFieldCondition;
|
|
36077
|
+
exports2.ScanFieldConditionCell = ScanFieldConditionCell;
|
|
36036
36078
|
exports2.ScanInput = ScanInput;
|
|
36037
36079
|
exports2.Scanner = Scanner;
|
|
36038
36080
|
exports2.SelectField = SelectField;
|
|
36081
|
+
exports2.SelectFieldCondition = SelectFieldCondition;
|
|
36082
|
+
exports2.SelectFieldConditionCell = SelectFieldConditionCell;
|
|
36039
36083
|
exports2.SelectInput = SelectInput;
|
|
36084
|
+
exports2.StringArrayEqualsConditionModifier = StringArrayEqualsConditionModifier;
|
|
36085
|
+
exports2.StringArrayEveryConditionModifier = StringArrayEveryConditionModifier;
|
|
36086
|
+
exports2.StringArrayExcludesConditionModifier = StringArrayExcludesConditionModifier;
|
|
36087
|
+
exports2.StringArrayIncludesConditionModifier = StringArrayIncludesConditionModifier;
|
|
36088
|
+
exports2.StringArrayNoneConditionModifier = StringArrayNoneConditionModifier;
|
|
36089
|
+
exports2.StringArrayNotEqualsConditionModifier = StringArrayNotEqualsConditionModifier;
|
|
36090
|
+
exports2.StringArraySomeConditionModifier = StringArraySomeConditionModifier;
|
|
36091
|
+
exports2.StringEqualsConditionModifier = StringEqualsConditionModifier;
|
|
36092
|
+
exports2.StringExcludesConditionModifier = StringExcludesConditionModifier;
|
|
36040
36093
|
exports2.StringField = StringField;
|
|
36094
|
+
exports2.StringFieldCondition = StringFieldCondition;
|
|
36095
|
+
exports2.StringFieldConditionCell = StringFieldConditionCell;
|
|
36096
|
+
exports2.StringIncludesConditionModifier = StringIncludesConditionModifier;
|
|
36041
36097
|
exports2.StringInput = StringInput;
|
|
36098
|
+
exports2.StringNotEqualsConditionModifier = StringNotEqualsConditionModifier;
|
|
36042
36099
|
exports2.TextField = TextField;
|
|
36100
|
+
exports2.TextFieldCondition = TextFieldCondition;
|
|
36101
|
+
exports2.TextFieldConditionCell = TextFieldConditionCell;
|
|
36043
36102
|
exports2.TextInput = TextInput;
|
|
36044
36103
|
exports2.UploadField = UploadField;
|
|
36104
|
+
exports2.UploadFieldCondition = UploadFieldCondition;
|
|
36105
|
+
exports2.UploadFieldConditionCell = UploadFieldConditionCell;
|
|
36045
36106
|
exports2.UploadInput = UploadInput;
|
|
36107
|
+
exports2.applyConditions = applyConditions;
|
|
36046
36108
|
exports2.awaitPromisesFromFieldValues = awaitPromisesFromFieldValues;
|
|
36047
36109
|
exports2.createCondition = createCondition;
|
|
36110
|
+
exports2.createConditionModifierConfig = createConditionModifierConfig;
|
|
36048
36111
|
exports2.createField = createField;
|
|
36049
36112
|
exports2.deserialize = deserialize;
|
|
36113
|
+
exports2.deserializeCondition = deserializeCondition;
|
|
36114
|
+
exports2.deserializeConditions = deserializeConditions;
|
|
36050
36115
|
exports2.deserializeField = deserializeField;
|
|
36051
36116
|
exports2.deserializeFieldValues = deserializeFieldValues;
|
|
36052
36117
|
exports2.deserializeFields = deserializeFields;
|