@overmap-ai/forms 1.0.32 → 1.0.33-toast-migration.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.
Files changed (68) hide show
  1. package/dist/form/UUIDPromise/UUIDPromise.d.ts +3 -3
  2. package/dist/form/builder/Root.d.ts +1 -1
  3. package/dist/form/builder/components/FieldBuilder.d.ts +1 -1
  4. package/dist/form/conditions/BaseCondition/BaseCondition.d.ts +1 -1
  5. package/dist/form/conditions/BooleanFieldCondition/BooleanFieldCondition.d.ts +1 -1
  6. package/dist/form/conditions/CheckboxListFieldCondition/CheckboxListFieldCondition.d.ts +1 -1
  7. package/dist/form/conditions/ConditionManager/ConditionManager.d.ts +1 -1
  8. package/dist/form/conditions/ConditionManager/hooks.d.ts +1 -1
  9. package/dist/form/conditions/DateFieldCondition/DateFieldCondition.d.ts +2 -2
  10. package/dist/form/conditions/MultiSelectFieldCondition/MultiSelectFieldCondition.d.ts +1 -1
  11. package/dist/form/conditions/MultiStringFieldCondition/MultiStringFieldCondition.d.ts +1 -1
  12. package/dist/form/conditions/NumberFieldCondition/NumberFieldCondition.d.ts +1 -1
  13. package/dist/form/conditions/OTPFieldCondition/OTPFieldCondition.d.ts +1 -1
  14. package/dist/form/conditions/PassFailFieldCondition/PassFailFieldCondition.d.ts +1 -1
  15. package/dist/form/conditions/RadioFieldCondition/RadioFieldCondition.d.ts +1 -1
  16. package/dist/form/conditions/RatingFieldCondition/RatingFieldCondition.d.ts +1 -1
  17. package/dist/form/conditions/ScanFieldCondition/ScanFieldCondition.d.ts +1 -1
  18. package/dist/form/conditions/StringFieldCondition/StringFieldCondition.d.ts +1 -1
  19. package/dist/form/conditions/TextFieldCondition/TextFieldCondition.d.ts +1 -1
  20. package/dist/form/conditions/UploadFieldCondition/UploadFieldCondition.d.ts +2 -2
  21. package/dist/form/conditions/utils.d.ts +1 -1
  22. package/dist/form/fields/BaseField/BaseField.d.ts +1 -1
  23. package/dist/form/fields/BaseFormElement/BaseFormElement.d.ts +1 -1
  24. package/dist/form/fields/BaseOptionsField/BaseOptionsField.d.ts +1 -1
  25. package/dist/form/fields/BaseStringField/BaseStringField.d.ts +1 -1
  26. package/dist/form/fields/BooleanField/BooleanField.d.ts +1 -1
  27. package/dist/form/fields/BooleanField/BooleanInput.d.ts +1 -1
  28. package/dist/form/fields/CheckboxListField/CheckboxListField.d.ts +1 -1
  29. package/dist/form/fields/DateField/DateField.d.ts +1 -1
  30. package/dist/form/fields/DateField/DateInput.d.ts +1 -1
  31. package/dist/form/fields/FieldSection/FieldSection.d.ts +3 -3
  32. package/dist/form/fields/MultiSelectField/MultiSelectField.d.ts +1 -1
  33. package/dist/form/fields/MultiSelectField/MultiSelectInput.d.ts +1 -1
  34. package/dist/form/fields/MultiStringField/MultiStringField.d.ts +1 -1
  35. package/dist/form/fields/MultiStringField/MultiStringInput.d.ts +1 -1
  36. package/dist/form/fields/NumberField/NumberField.d.ts +1 -1
  37. package/dist/form/fields/NumberField/NumberInput.d.ts +1 -1
  38. package/dist/form/fields/OneTimePasswordField/OTPField.d.ts +1 -1
  39. package/dist/form/fields/OneTimePasswordField/typings.d.ts +1 -1
  40. package/dist/form/fields/PassFailField/PassFailField.d.ts +1 -1
  41. package/dist/form/fields/PassFailField/PassFailInput.d.ts +1 -1
  42. package/dist/form/fields/PassFailField/typings.d.ts +1 -1
  43. package/dist/form/fields/RadioField/RadioField.d.ts +1 -1
  44. package/dist/form/fields/RadioField/RadioInput.d.ts +1 -1
  45. package/dist/form/fields/RatingField/RatingField.d.ts +1 -1
  46. package/dist/form/fields/RatingField/RatingInput.d.ts +1 -1
  47. package/dist/form/fields/ScanField/ScanField.d.ts +1 -1
  48. package/dist/form/fields/ScanField/ScanInput.d.ts +1 -1
  49. package/dist/form/fields/SelectField/SelectField.d.ts +1 -1
  50. package/dist/form/fields/SelectField/SelectInput.d.ts +1 -1
  51. package/dist/form/fields/StringField/StringField.d.ts +1 -1
  52. package/dist/form/fields/StringField/StringInput.d.ts +1 -1
  53. package/dist/form/fields/TextField/TextField.d.ts +1 -1
  54. package/dist/form/fields/TextField/TextInput.d.ts +1 -1
  55. package/dist/form/fields/UploadField/UploadField.d.ts +1 -1
  56. package/dist/form/fields/UploadField/UploadInput.d.ts +1 -1
  57. package/dist/form/fields/components/InputWithLabel.d.ts +1 -1
  58. package/dist/form/fields/constants.d.ts +1 -1
  59. package/dist/form/fields/hooks.d.ts +1 -1
  60. package/dist/form/fields/typings.d.ts +3 -3
  61. package/dist/form/fields/utils.d.ts +1 -1
  62. package/dist/form/schema/FieldSchema.d.ts +1 -1
  63. package/dist/form/utils.d.ts +1 -1
  64. package/dist/forms.js +71 -67
  65. package/dist/forms.js.map +1 -0
  66. package/dist/forms.umd.cjs +70 -66
  67. package/dist/forms.umd.cjs.map +1 -0
  68. package/package.json +37 -49
@@ -4,7 +4,7 @@ export declare class UUIDPromise<T> extends Promise<T> {
4
4
  get uuid(): string;
5
5
  private set uuid(value);
6
6
  static from<T>(promise: Promise<T> | PromiseLike<T>, uuid: string): UUIDPromise<T>;
7
- then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): UUIDPromise<TResult1 | TResult2>;
8
- catch<TResult2 = never>(onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): UUIDPromise<T | TResult2>;
9
- finally(onFinally?: (() => void) | undefined | null): UUIDPromise<T>;
7
+ then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): UUIDPromise<TResult1 | TResult2>;
8
+ catch<TResult2 = never>(onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): UUIDPromise<T | TResult2>;
9
+ finally(onFinally?: (() => void) | null): UUIDPromise<T>;
10
10
  }
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { SerializedFieldSection } from '../fields';
3
2
  import { FormBuilderSaveHandler } from './typings';
3
+ import { SerializedFieldSection } from '../fields';
4
4
  export interface FormBuilderRootProps extends PropsWithChildren {
5
5
  initialTitle?: string;
6
6
  initialDescription?: string;
@@ -1,5 +1,5 @@
1
- import { Field } from '../../fields';
2
1
  import { NestedFieldPath } from '../typings';
2
+ import { Field } from '../../fields';
3
3
  export interface FieldBuilderProps {
4
4
  fieldIndex: number;
5
5
  parentPath: NestedFieldPath;
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
+ import { BaseSerializedCondition, ConditionRenderProps } from './typings';
2
3
  import { AnyField, TypeOfField, ValueOfField } from '../../fields';
3
4
  import { AnyConditionModifierConfig } from '../../modifiers';
4
5
  import { Observable } from '../../Observable';
5
- import { BaseSerializedCondition, ConditionRenderProps } from './typings';
6
6
  export interface BaseConditionOptions<TField, TConditionValue, TModifiers extends string> {
7
7
  id: string;
8
8
  field: TField;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { BooleanConditionModifiers, SerializedBooleanCondition } from './typings';
2
3
  import { BooleanField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { BooleanConditionModifiers, SerializedBooleanCondition } from './typings';
5
5
  export interface BooleanFieldConditionOptions extends BaseConditionOptions<BooleanField, boolean, BooleanConditionModifiers> {
6
6
  }
7
7
  export declare class BooleanFieldCondition extends BaseCondition<BooleanField, ValueOfField<BooleanField>, boolean, boolean, BooleanConditionModifiers, BooleanFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { CheckboxListConditionModifiers, SerializedCheckboxListCondition } from './typings';
2
3
  import { CheckboxListField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { CheckboxListConditionModifiers, SerializedCheckboxListCondition } from './typings';
5
5
  export interface CheckboxListFieldConditionOptions extends BaseConditionOptions<CheckboxListField, string[], CheckboxListConditionModifiers> {
6
6
  }
7
7
  export declare class CheckboxListFieldCondition extends BaseCondition<CheckboxListField, ValueOfField<CheckboxListField>, string[], string[], CheckboxListConditionModifiers, CheckboxListFieldCondition> {
@@ -1,6 +1,6 @@
1
- import { Observable } from '../../Observable';
2
1
  import { FieldValues } from '../../typings';
3
2
  import { Condition } from '../typings';
3
+ import { Observable } from '../../Observable';
4
4
  export declare class ConditionManager extends Observable<ConditionManager> {
5
5
  private conditions;
6
6
  constructor(conditions: Condition[]);
@@ -1,4 +1,4 @@
1
1
  import { Condition } from '../typings';
2
- import { ConditionManager } from './ConditionManager';
3
2
  import { ConditionsChangeEventHandler } from './typings';
3
+ import { ConditionManager } from './ConditionManager';
4
4
  export declare const useConditionManager: (conditions: Condition[], onConditionsChange: ConditionsChangeEventHandler) => ConditionManager;
@@ -1,8 +1,8 @@
1
- import { ReactNode } from 'react';
2
1
  import { DateRange } from 'react-day-picker';
2
+ import { ReactNode } from 'react';
3
+ import { DateConditionModifiers, SerializedDateCondition } from './typings';
3
4
  import { DateField, SerializedDateRange, ValueOfField } from '../../fields';
4
5
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
5
- import { DateConditionModifiers, SerializedDateCondition } from './typings';
6
6
  export interface DateFieldConditionOptions extends BaseConditionOptions<DateField, Date | DateRange, DateConditionModifiers> {
7
7
  }
8
8
  export declare class DateFieldCondition extends BaseCondition<DateField, ValueOfField<DateField>, Date | DateRange, string | SerializedDateRange, DateConditionModifiers, DateFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { MultiSelectConditionModifiers, SerializedMultiSelectCondition } from './typings';
2
3
  import { MultiSelectField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { MultiSelectConditionModifiers, SerializedMultiSelectCondition } from './typings';
5
5
  export interface MultiSelectFieldConditionOptions extends BaseConditionOptions<MultiSelectField, string[], MultiSelectConditionModifiers> {
6
6
  }
7
7
  export declare class MultiSelectFieldCondition extends BaseCondition<MultiSelectField, ValueOfField<MultiSelectField>, string[], string[], MultiSelectConditionModifiers, MultiSelectFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { MultiStringConditionModifiers, SerializedMultiStringCondition } from './typings';
2
3
  import { MultiStringField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { MultiStringConditionModifiers, SerializedMultiStringCondition } from './typings';
5
5
  export interface MultiStringFieldConditionOptions extends BaseConditionOptions<MultiStringField, string[], MultiStringConditionModifiers> {
6
6
  }
7
7
  export declare class MultiStringFieldCondition extends BaseCondition<MultiStringField, ValueOfField<MultiStringField>, string[], string[], MultiStringConditionModifiers, MultiStringFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { NumberConditionModifiers, SerializedNumberCondition } from './typings';
2
3
  import { NumberField, NumberRange, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { NumberConditionModifiers, SerializedNumberCondition } from './typings';
5
5
  export interface NumberFieldConditionOptions extends BaseConditionOptions<NumberField, number | NumberRange, NumberConditionModifiers> {
6
6
  }
7
7
  export declare class NumberFieldCondition extends BaseCondition<NumberField, ValueOfField<NumberField>, number | NumberRange, number | NumberRange, NumberConditionModifiers, NumberFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { OTPConditionModifiers, SerializedOTPCondition } from './typings';
2
3
  import { OTPField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { OTPConditionModifiers, SerializedOTPCondition } from './typings';
5
5
  export interface OTPFieldConditionOptions extends BaseConditionOptions<OTPField, string, OTPConditionModifiers> {
6
6
  }
7
7
  export declare class OTPFieldCondition extends BaseCondition<OTPField, ValueOfField<OTPField>, string, string, OTPConditionModifiers, OTPFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { PassFailFieldConditionModifiers, SerializedPassFailFieldCondition } from './typings';
2
3
  import { PassFailField, PassFailFieldStatus, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { PassFailFieldConditionModifiers, SerializedPassFailFieldCondition } from './typings';
5
5
  export interface PassFailFieldConditionOptions extends BaseConditionOptions<PassFailField, PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldConditionModifiers> {
6
6
  }
7
7
  export declare class PassFailFieldCondition extends BaseCondition<PassFailField, ValueOfField<PassFailField>["status"], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldStatus | PassFailFieldStatus[], PassFailFieldConditionModifiers, PassFailFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { RadioConditionModifiers, SerializedRadioCondition } from './typings';
2
3
  import { RadioField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { RadioConditionModifiers, SerializedRadioCondition } from './typings';
5
5
  export interface RadioFieldConditionOptions extends BaseConditionOptions<RadioField, string | string[], RadioConditionModifiers> {
6
6
  }
7
7
  export declare class RadioFieldCondition extends BaseCondition<RadioField, ValueOfField<RadioField>, string | string[], string | string[], RadioConditionModifiers, RadioFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { RatingConditionModifiers, SerializedRatingCondition } from './typings';
2
3
  import { NumberRange, RatingField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { RatingConditionModifiers, SerializedRatingCondition } from './typings';
5
5
  export interface RatingFieldConditionOptions extends BaseConditionOptions<RatingField, number | NumberRange, RatingConditionModifiers> {
6
6
  }
7
7
  export declare class RatingFieldCondition extends BaseCondition<RatingField, ValueOfField<RatingField>, number | NumberRange, number | NumberRange, RatingConditionModifiers, RatingFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { ScanConditionModifiers, SerializedScanCondition } from './typings';
2
3
  import { ScanField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { ScanConditionModifiers, SerializedScanCondition } from './typings';
5
5
  export interface ScanFieldConditionOptions extends BaseConditionOptions<ScanField, string, ScanConditionModifiers> {
6
6
  }
7
7
  export declare class ScanFieldCondition extends BaseCondition<ScanField, ValueOfField<ScanField>, string, string, ScanConditionModifiers, ScanFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedStringCondition, StringConditionModifiers } from './typings';
2
3
  import { StringField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { SerializedStringCondition, StringConditionModifiers } from './typings';
5
5
  export interface StringFieldConditionOptions extends BaseConditionOptions<StringField, string, StringConditionModifiers> {
6
6
  }
7
7
  export declare class StringFieldCondition extends BaseCondition<StringField, ValueOfField<StringField>, string, string, StringConditionModifiers, StringFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedTextCondition, TextConditionModifiers } from './typings';
2
3
  import { TextField, ValueOfField } from '../../fields';
3
4
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
- import { SerializedTextCondition, TextConditionModifiers } from './typings';
5
5
  export interface TextFieldConditionOptions extends BaseConditionOptions<TextField, string, TextConditionModifiers> {
6
6
  field: TextField;
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
+ import { UUIDPromise } from '../../UUIDPromise';
3
+ import { SerializedUploadCondition, UploadConditionModifiers } from './typings';
2
4
  import { UploadField, ValueOfField } from '../../fields';
3
5
  import { UUIDFile } from '../../UUIDFile';
4
- import { UUIDPromise } from '../../UUIDPromise';
5
6
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
6
- import { SerializedUploadCondition, UploadConditionModifiers } from './typings';
7
7
  export interface UploadFieldConditionOptions extends BaseConditionOptions<UploadField, boolean, UploadConditionModifiers> {
8
8
  }
9
9
  export declare class UploadFieldCondition extends BaseCondition<UploadField, ValueOfField<UploadField>, boolean, boolean, UploadConditionModifiers, UploadFieldCondition> {
@@ -1,6 +1,6 @@
1
- import { Field } from '../fields';
2
1
  import { FieldValues } from '../typings';
3
2
  import { Condition, SerializedCondition } from './typings';
3
+ import { Field } from '../fields';
4
4
  export declare const deserializeCondition: (field: Field, serializedCondition: SerializedCondition) => Condition;
5
5
  export declare const deserializeConditions: (fields: Field[], serializedConditions: SerializedCondition[]) => Condition[];
6
6
  export declare const applyConditions: (conditions: Condition[], values: FieldValues) => boolean;
@@ -1,5 +1,5 @@
1
- import { BaseFormElement } from '../BaseFormElement';
2
1
  import { BaseSerializedField, FieldOptions, FieldValidator } from './typings';
2
+ import { BaseFormElement } from '../BaseFormElement';
3
3
  export declare abstract class BaseField<TType extends string, TValue, TSerializedValue, This extends BaseField<TType, TValue, TSerializedValue, This>> extends BaseFormElement<TType, This> {
4
4
  static readonly fieldTypeName: string;
5
5
  static readonly fieldTypeDescription: string;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { Observable } from '../../Observable';
3
2
  import { BaseFormElementOptions, BaseSerializedFormElement, FieldRenderProps } from './typings';
3
+ import { Observable } from '../../Observable';
4
4
  export declare abstract class BaseFormElement<TType extends string, This extends BaseFormElement<TType, This>> extends Observable<This> {
5
5
  abstract readonly type: TType;
6
6
  identifier: string;
@@ -1,5 +1,5 @@
1
- import { BaseField, FieldCreationSchemaObject, FieldOptions } from '../BaseField';
2
1
  import { BaseSerializedSelectField, SelectFieldOption } from './typings';
2
+ import { BaseField, FieldCreationSchemaObject, FieldOptions } from '../BaseField';
3
3
  export interface BaseOptionsFieldOptions extends FieldOptions {
4
4
  options: string[] | SelectFieldOption[];
5
5
  }
@@ -1,6 +1,6 @@
1
+ import { BaseSerializedStringField } from './typings';
1
2
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
2
3
  import { NumberField } from '../NumberField';
3
- import { BaseSerializedStringField } from './typings';
4
4
  export interface BaseStringFieldOptions extends FieldOptions {
5
5
  minLength?: number;
6
6
  maxLength?: number;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedBooleanField } from './typings';
2
3
  import { BaseField, FieldOptions } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
- import { SerializedBooleanField } from './typings';
5
5
  export type BooleanFieldOptions = FieldOptions;
6
6
  export declare class BooleanField extends BaseField<"boolean", boolean, boolean, BooleanField> {
7
7
  readonly type = "boolean";
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { BooleanField } from './BooleanField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface BooleanInputProps extends FieldRenderProps {
4
4
  field: BooleanField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedCheckboxListField } from './typings';
2
3
  import { FieldRenderProps } from '../BaseFormElement';
3
4
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
4
- import { SerializedCheckboxListField } from './typings';
5
5
  export interface CheckboxListFieldOptions extends BaseOptionsFieldOptions {
6
6
  }
7
7
  export declare class CheckboxListField extends BaseOptionsField<"checkbox-list", string[], string[], CheckboxListField> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedDateField } from './typings';
2
3
  import { BaseField, FieldOptions } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
- import { SerializedDateField } from './typings';
5
5
  export type SerializedDateRange = {
6
6
  to: string | null;
7
7
  from: string | null;
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { DateField } from './DateField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface DateInputProps extends FieldRenderProps {
4
4
  field: DateField;
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- import { Condition, FieldConditionManager } from '../../conditions';
3
2
  import { FieldValues } from '../../typings';
4
- import { BaseFormElement, BaseFormElementOptions, FieldRenderProps } from '../BaseFormElement';
5
3
  import { Field, FieldsManager } from '../typings';
4
+ import { Condition, FieldConditionManager } from '../../conditions';
5
+ import { BaseFormElement, BaseFormElementOptions, FieldRenderProps } from '../BaseFormElement';
6
6
  import { FieldSectionConditions, SerializedFieldSection } from './typings';
7
7
  export interface FieldSectionOptions extends BaseFormElementOptions {
8
8
  label?: string | null;
@@ -20,7 +20,7 @@ export declare class FieldSection extends BaseFormElement<"section", FieldSectio
20
20
  fields: Field[];
21
21
  constructor(options: FieldSectionOptions);
22
22
  serialize(): SerializedFieldSection;
23
- static deserialize(data: SerializedFieldSection): FieldSection;
23
+ static deserialize: (data: SerializedFieldSection) => FieldSection;
24
24
  getOptions(): FieldSectionOptions;
25
25
  duplicate(identifier: string): FieldSection;
26
26
  setOptions(options: Partial<FieldSectionOptions>): void;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedMultiSelectField } from './typings';
2
3
  import { FieldRenderProps } from '../BaseFormElement';
3
4
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
4
- import { SerializedMultiSelectField } from './typings';
5
5
  export type MultiSelectFieldOptions = BaseOptionsFieldOptions & {
6
6
  placeholder?: string;
7
7
  };
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { MultiSelectField } from './MultiSelectField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  export interface MultiSelectInputProps extends FieldRenderProps {
4
4
  field: MultiSelectField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedMultiStringField } from './typings';
2
3
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
- import { SerializedMultiStringField } from './typings';
5
5
  export interface MultiStringFieldOptions extends FieldOptions {
6
6
  minimum_length?: number;
7
7
  maximum_length?: number;
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { MultiStringField } from './MultiStringField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface MultiStringInputProps extends FieldRenderProps {
4
4
  field: MultiStringField;
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedNumberField } from './typings';
2
3
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
5
  import { BooleanField } from '../BooleanField';
5
- import { SerializedNumberField } from './typings';
6
6
  export type NumberRange = {
7
7
  to: number | null;
8
8
  from: number | null;
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { NumberField } from './NumberField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface NumberInputProps extends FieldRenderProps {
4
4
  field: NumberField;
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
+ import { OTPFieldValidationType, SerializedOTPField } from './typings';
2
3
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
5
  import { NumberField } from '../NumberField';
5
6
  import { SelectField } from '../SelectField';
6
- import { OTPFieldValidationType, SerializedOTPField } from './typings';
7
7
  export interface OTPFieldOptions extends FieldOptions {
8
8
  length: number;
9
9
  validationType: OTPFieldValidationType;
@@ -1,5 +1,5 @@
1
- import { OneTimePasswordField } from '@overmap-ai/blocks';
2
1
  import { ComponentProps } from 'react';
2
+ import { OneTimePasswordField } from '@overmap-ai/blocks';
3
3
  import { BaseSerializedField } from '../BaseField';
4
4
  export type OTPFieldValidationType = NonNullable<ComponentProps<typeof OneTimePasswordField.Root>["validationType"]>;
5
5
  export interface SerializedOTPField extends BaseSerializedField<"otp"> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { PassFailFieldStatus, PassFailFieldValue, SerializedPassFailField, SerializedPassFailFieldValue } from './typings';
2
3
  import { BaseField, FieldCreationSchemaObject, FieldOptions, FieldValidator } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
- import { PassFailFieldStatus, PassFailFieldValue, SerializedPassFailField, SerializedPassFailFieldValue } from './typings';
5
5
  export interface PassFailFieldOptions extends FieldOptions {
6
6
  showNotesAndFilesOn: PassFailFieldStatus[];
7
7
  }
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { PassFailField } from './PassFailField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface PassFailInputProps extends FieldRenderProps {
4
4
  field: PassFailField;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { UUIDFile } from '../../UUIDFile';
2
1
  import { UUIDPromise } from '../../UUIDPromise';
3
2
  import { BaseSerializedField } from '../BaseField';
3
+ import { UUIDFile } from '../../UUIDFile';
4
4
  export type PassFailFieldStatus = "pass" | "fail" | "na";
5
5
  export interface PassFailFieldValue {
6
6
  status: PassFailFieldStatus | null;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedRadioField } from './typings';
2
3
  import { FieldRenderProps } from '../BaseFormElement';
3
4
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
4
- import { SerializedRadioField } from './typings';
5
5
  export interface RadioFieldOptions extends BaseOptionsFieldOptions {
6
6
  }
7
7
  export declare class RadioField extends BaseOptionsField<"radio", string | null, string | null, RadioField> {
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { RadioField } from './RadioField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface RadioInputProps extends FieldRenderProps {
4
4
  field: RadioField;
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedRatingField } from './typings';
2
3
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
5
  import { NumberField } from '../NumberField';
5
- import { SerializedRatingField } from './typings';
6
6
  export interface RatingFieldOptions extends FieldOptions {
7
7
  maxRating: number;
8
8
  }
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { RatingField } from './RatingField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface RatingInputProps extends FieldRenderProps {
4
4
  field: RatingField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedScanField } from './typings';
2
3
  import { BaseField, FieldOptions } from '../BaseField';
3
4
  import { FieldRenderProps } from '../BaseFormElement';
4
- import { SerializedScanField } from './typings';
5
5
  export interface ScanFieldOptions extends FieldOptions {
6
6
  }
7
7
  export declare class ScanField extends BaseField<"qr", string, string, ScanField> {
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { ScanField } from './ScanField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface ScanInputProps extends FieldRenderProps {
4
4
  field: ScanField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedSelectField } from './typings';
2
3
  import { FieldRenderProps } from '../BaseFormElement';
3
4
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
4
- import { SerializedSelectField } from './typings';
5
5
  export type SelectFieldOptions = BaseOptionsFieldOptions & {
6
6
  placeholder?: string;
7
7
  };
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { SelectField } from './SelectField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface SelectInputProps extends FieldRenderProps {
4
4
  field: SelectField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedStringField } from './typings';
2
3
  import { FieldRenderProps } from '../BaseFormElement';
3
4
  import { BaseStringField, BaseStringFieldOptions } from '../BaseStringField';
4
- import { SerializedStringField } from './typings';
5
5
  export interface StringFieldOptions extends BaseStringFieldOptions {
6
6
  }
7
7
  export declare class StringField extends BaseStringField<"string", StringField> {
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { StringField } from './StringField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface StringInputProps extends FieldRenderProps {
4
4
  field: StringField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedTextField } from './typings';
2
3
  import { FieldRenderProps } from '../BaseFormElement';
3
4
  import { BaseStringField, BaseStringFieldOptions } from '../BaseStringField';
4
- import { SerializedTextField } from './typings';
5
5
  export type TextFieldOptions = BaseStringFieldOptions;
6
6
  export declare class TextField extends BaseStringField<"text", TextField> {
7
7
  readonly type = "text";
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { TextField } from './TextField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface TextInputProps extends FieldRenderProps {
4
4
  field: TextField;
5
5
  }
@@ -1,11 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SerializedUploadField } from './typings';
2
3
  import { UUIDFile } from '../../UUIDFile';
3
4
  import { UUIDPromise } from '../../UUIDPromise';
4
5
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
5
6
  import { FieldRenderProps } from '../BaseFormElement';
6
7
  import { MultiSelectField } from '../MultiSelectField';
7
8
  import { NumberField } from '../NumberField';
8
- import { SerializedUploadField } from './typings';
9
9
  export interface UploadFieldOptions extends FieldOptions {
10
10
  extensions?: string[];
11
11
  maximum_size?: number | string;
@@ -1,5 +1,5 @@
1
- import { FieldRenderProps } from '../BaseFormElement';
2
1
  import { UploadField } from './UploadField';
2
+ import { FieldRenderProps } from '../BaseFormElement';
3
3
  interface UploadInputProps extends FieldRenderProps {
4
4
  field: UploadField;
5
5
  }
@@ -11,4 +11,4 @@ export interface InputWithLabelProps {
11
11
  children: ReactNode;
12
12
  className?: string;
13
13
  }
14
- export declare const InputWithLabel: (props: InputWithLabelProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const InputWithLabel: import('react').MemoExoticComponent<(props: InputWithLabelProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1,4 +1,5 @@
1
1
  import { IconComponent } from '@overmap-ai/blocks';
2
+ import { FieldType } from './typings';
2
3
  import { BooleanField } from './BooleanField';
3
4
  import { CheckboxListField } from './CheckboxListField';
4
5
  import { DateField } from './DateField';
@@ -13,7 +14,6 @@ import { ScanField } from './ScanField';
13
14
  import { SelectField } from './SelectField';
14
15
  import { StringField } from './StringField';
15
16
  import { TextField } from './TextField';
16
- import { FieldType } from './typings';
17
17
  import { UploadField } from './UploadField';
18
18
  export declare const FieldTypeToClsMapping: {
19
19
  date: typeof DateField;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { FieldRenderProps } from './BaseFormElement';
3
2
  import { AnyField, AnyFormElement, ValueOfField } from './typings';
3
+ import { FieldRenderProps } from './BaseFormElement';
4
4
  export declare const useFieldInput: <TField extends AnyFormElement>(field: TField, props: FieldRenderProps) => ReactNode;
5
5
  export declare const useFieldInputs: (fields: AnyFormElement[], props: FieldRenderProps) => ReactNode;
6
6
  export declare const useFormikInput: <TField extends AnyField>(props: FieldRenderProps & {