@overmap-ai/forms 1.0.39-time-field-good.0 → 1.0.39

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 (71) hide show
  1. package/dist/form/builder/Root.d.ts +1 -1
  2. package/dist/form/builder/components/FieldBuilder.d.ts +1 -1
  3. package/dist/form/builder/components/FieldSectionDropdownMenu.d.ts +1 -1
  4. package/dist/form/components/DisplayFile.d.ts +2 -2
  5. package/dist/form/conditions/BaseCondition/BaseCondition.d.ts +2 -2
  6. package/dist/form/conditions/BooleanFieldCondition/BooleanFieldCondition.d.ts +1 -1
  7. package/dist/form/conditions/CheckboxListFieldCondition/CheckboxListFieldCondition.d.ts +1 -1
  8. package/dist/form/conditions/ConditionManager/ConditionManager.d.ts +1 -1
  9. package/dist/form/conditions/ConditionManager/hooks.d.ts +1 -1
  10. package/dist/form/conditions/DateFieldCondition/DateFieldCondition.d.ts +2 -2
  11. package/dist/form/conditions/MultiSelectFieldCondition/MultiSelectFieldCondition.d.ts +1 -1
  12. package/dist/form/conditions/MultiStringFieldCondition/MultiStringFieldCondition.d.ts +1 -1
  13. package/dist/form/conditions/NumberFieldCondition/NumberFieldCondition.d.ts +1 -1
  14. package/dist/form/conditions/OTPFieldCondition/OTPFieldCondition.d.ts +1 -1
  15. package/dist/form/conditions/PassFailFieldCondition/PassFailFieldCondition.d.ts +1 -1
  16. package/dist/form/conditions/RadioFieldCondition/RadioFieldCondition.d.ts +1 -1
  17. package/dist/form/conditions/RatingFieldCondition/RatingFieldCondition.d.ts +1 -1
  18. package/dist/form/conditions/ScanFieldCondition/ScanFieldCondition.d.ts +1 -1
  19. package/dist/form/conditions/StringFieldCondition/StringFieldCondition.d.ts +1 -1
  20. package/dist/form/conditions/TextFieldCondition/TextFieldCondition.d.ts +1 -1
  21. package/dist/form/conditions/TimeFieldCondition/TimeFieldCondition.d.ts +1 -1
  22. package/dist/form/conditions/URLFieldCondition/URLFieldCondition.d.ts +1 -1
  23. package/dist/form/conditions/UploadFieldCondition/UploadFieldCondition.d.ts +2 -2
  24. package/dist/form/conditions/utils.d.ts +1 -1
  25. package/dist/form/fields/BaseField/BaseField.d.ts +1 -1
  26. package/dist/form/fields/BaseFormElement/BaseFormElement.d.ts +1 -1
  27. package/dist/form/fields/BaseOptionsField/BaseOptionsField.d.ts +1 -1
  28. package/dist/form/fields/BaseStringField/BaseStringField.d.ts +1 -1
  29. package/dist/form/fields/BooleanField/BooleanField.d.ts +1 -1
  30. package/dist/form/fields/BooleanField/BooleanFieldInput.d.ts +1 -1
  31. package/dist/form/fields/CheckboxListField/CheckboxListField.d.ts +1 -1
  32. package/dist/form/fields/DateField/DateField.d.ts +1 -1
  33. package/dist/form/fields/DateField/DateFieldInput.d.ts +1 -1
  34. package/dist/form/fields/FieldSection/FieldSection.d.ts +2 -2
  35. package/dist/form/fields/MultiSelectField/MultiSelectField.d.ts +1 -1
  36. package/dist/form/fields/MultiSelectField/MultiSelectFieldInput.d.ts +1 -1
  37. package/dist/form/fields/MultiStringField/MultiStringField.d.ts +1 -1
  38. package/dist/form/fields/MultiStringField/MultiStringFieldInput.d.ts +1 -1
  39. package/dist/form/fields/NumberField/NumberField.d.ts +1 -1
  40. package/dist/form/fields/NumberField/NumberFieldInput.d.ts +1 -1
  41. package/dist/form/fields/OTPField/OTPField.d.ts +1 -1
  42. package/dist/form/fields/OTPField/typings.d.ts +1 -1
  43. package/dist/form/fields/PassFailField/PassFailField.d.ts +1 -1
  44. package/dist/form/fields/PassFailField/PassFailFieldInput.d.ts +1 -1
  45. package/dist/form/fields/PassFailField/typings.d.ts +1 -1
  46. package/dist/form/fields/RadioField/RadioField.d.ts +1 -1
  47. package/dist/form/fields/RadioField/RadioFieldInput.d.ts +1 -1
  48. package/dist/form/fields/RatingField/RatingField.d.ts +1 -1
  49. package/dist/form/fields/RatingField/RatingFieldInput.d.ts +1 -1
  50. package/dist/form/fields/ScanField/ScanField.d.ts +1 -1
  51. package/dist/form/fields/ScanField/ScanFieldInput.d.ts +1 -1
  52. package/dist/form/fields/SelectField/SelectField.d.ts +1 -1
  53. package/dist/form/fields/SelectField/SelectFieldInput.d.ts +1 -1
  54. package/dist/form/fields/StringField/StringField.d.ts +1 -1
  55. package/dist/form/fields/StringField/StringFieldInput.d.ts +1 -1
  56. package/dist/form/fields/TextField/TextField.d.ts +1 -1
  57. package/dist/form/fields/TextField/TextFieldInput.d.ts +1 -1
  58. package/dist/form/fields/TimeField/TimeField.d.ts +1 -1
  59. package/dist/form/fields/TimeField/TimeFieldInput.d.ts +1 -1
  60. package/dist/form/fields/URLField/URLField.d.ts +1 -1
  61. package/dist/form/fields/URLField/URLFieldInput.d.ts +1 -1
  62. package/dist/form/fields/UploadField/UploadField.d.ts +1 -1
  63. package/dist/form/fields/UploadField/UploadFieldInput.d.ts +1 -1
  64. package/dist/form/fields/constants.d.ts +1 -1
  65. package/dist/form/fields/utils.d.ts +1 -1
  66. package/dist/form/renderer/FieldsRenderer.d.ts +1 -1
  67. package/dist/form/schema/FieldSchema.d.ts +2 -1
  68. package/dist/form/utils.d.ts +1 -1
  69. package/dist/forms.js +3802 -3731
  70. package/dist/forms.umd.cjs +50 -50
  71. package/package.json +9 -7
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { FormBuilderSaveHandler } from './typings';
3
2
  import { SerializedFieldSection } from '../fields';
3
+ import { FormBuilderSaveHandler } from './typings';
4
4
  export interface FormBuilderRootProps extends PropsWithChildren {
5
5
  initialFields?: SerializedFieldSection[];
6
6
  onSave: FormBuilderSaveHandler;
@@ -1,5 +1,5 @@
1
- import { NestedFieldPath } from '../typings';
2
1
  import { Field } from '../../fields';
2
+ import { NestedFieldPath } from '../typings';
3
3
  export interface FieldBuilderProps {
4
4
  fieldIndex: number;
5
5
  parentPath: NestedFieldPath;
@@ -4,6 +4,6 @@ import { FieldSection } from '../../fields';
4
4
  export interface FieldSectionDropdownMenuProps extends MenuRootProps, MenuVariantProps {
5
5
  children: ReactElement;
6
6
  fieldSections: FieldSection[];
7
- onSelectFieldCondition: (field: FieldSection) => void;
7
+ onSelectFieldSection: (field: FieldSection) => void;
8
8
  }
9
9
  export declare const FieldSectionDropdownMenu: import('react').NamedExoticComponent<FieldSectionDropdownMenuProps>;
@@ -2,9 +2,9 @@ import { FieldsRendererSize } from '../renderer';
2
2
  import { UUIDFile } from '../UUIDFile';
3
3
  import { UUIDPromise } from '../UUIDPromise';
4
4
  interface DisplayFileProps {
5
- file: UUIDFile | UUIDPromise<UUIDFile>;
5
+ fileOrPromise: UUIDFile | UUIDPromise<UUIDFile>;
6
6
  disabled?: boolean;
7
- onRemove: () => void;
7
+ onRemove: (fileOrPromise: UUIDFile | UUIDPromise<UUIDFile>) => void;
8
8
  size: FieldsRendererSize;
9
9
  }
10
10
  export declare const DisplayFile: import('react').MemoExoticComponent<(props: DisplayFileProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
- import { FieldValues } from '../../typings';
3
- import { BaseSerializedCondition, ConditionRenderProps } from './typings';
4
2
  import { AnyField, TypeOfField, ValueOfField } from '../../fields';
5
3
  import { AnyConditionModifierConfig } from '../../modifiers';
6
4
  import { Observable } from '../../Observable';
5
+ import { FieldValues } from '../../typings';
6
+ import { BaseSerializedCondition, ConditionRenderProps } from './typings';
7
7
  export interface BaseConditionOptions<TField, TConditionValue, TModifiers extends string> {
8
8
  id: string;
9
9
  field: TField;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { BooleanConditionModifiers, SerializedBooleanCondition } from './typings';
3
2
  import { BooleanField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { CheckboxListField, ValueOfField } from '../../fields';
4
3
  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';
1
2
  import { FieldValues } from '../../typings';
2
3
  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 { ConditionsChangeEventHandler } from './typings';
3
2
  import { ConditionManager } from './ConditionManager';
3
+ import { ConditionsChangeEventHandler } from './typings';
4
4
  export declare const useConditionManager: (conditions: Condition[], onConditionsChange: ConditionsChangeEventHandler) => ConditionManager;
@@ -1,8 +1,8 @@
1
- import { DateRange } from 'react-day-picker';
2
1
  import { ReactNode } from 'react';
3
- import { DateConditionModifiers, SerializedDateCondition } from './typings';
2
+ import { DateRange } from 'react-day-picker';
4
3
  import { DateField, SerializedDateRange, ValueOfField } from '../../fields';
5
4
  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';
3
2
  import { MultiSelectField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { MultiStringField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { NumberField, NumberRange, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { OTPField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { PassFailField, PassFailFieldStatus, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { RadioField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { NumberRange, RatingField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { ScanField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { StringField, ValueOfField } from '../../fields';
4
3
  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';
3
2
  import { TextField, ValueOfField } from '../../fields';
4
3
  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,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedTimeCondition, TimeConditionModifiers } from './typings';
3
2
  import { Time, TimeField, TimeRange, ValueOfField } from '../../fields';
4
3
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
+ import { SerializedTimeCondition, TimeConditionModifiers } from './typings';
5
5
  export interface TimeFieldConditionOptions extends BaseConditionOptions<TimeField, Time | TimeRange, TimeConditionModifiers> {
6
6
  }
7
7
  export declare class TimeFieldCondition extends BaseCondition<TimeField, ValueOfField<TimeField>, Time | TimeRange, Time | TimeRange, TimeConditionModifiers, TimeFieldCondition> {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedURLCondition, URLConditionModifiers } from './typings';
3
2
  import { URLField, ValueOfField } from '../../fields';
4
3
  import { BaseCondition, BaseConditionOptions, ConditionRenderProps } from '../BaseCondition';
4
+ import { SerializedURLCondition, URLConditionModifiers } from './typings';
5
5
  export interface URLFieldConditionOptions extends BaseConditionOptions<URLField, string, URLConditionModifiers> {
6
6
  }
7
7
  export declare class URLFieldCondition extends BaseCondition<URLField, string, string, string, URLConditionModifiers, URLFieldCondition> {
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
- import { UUIDPromise } from '../../UUIDPromise';
3
- import { SerializedUploadCondition, UploadConditionModifiers } from './typings';
4
2
  import { UploadField, ValueOfField } from '../../fields';
5
3
  import { UUIDFile } from '../../UUIDFile';
4
+ import { UUIDPromise } from '../../UUIDPromise';
6
5
  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,5 +1,5 @@
1
- import { Condition, SerializedCondition } from './typings';
2
1
  import { Field } from '../fields';
2
+ import { Condition, SerializedCondition } from './typings';
3
3
  export declare const deserializeCondition: (field: Field, serializedCondition: SerializedCondition) => Condition;
4
4
  export declare const deserializeConditions: (fields: Field[], serializedConditions: SerializedCondition[]) => Condition[];
5
5
  export declare const serializeConditions: (fields: Field[], conditions: Condition[]) => SerializedCondition[];
@@ -1,6 +1,6 @@
1
+ import { BaseFormElement } from '../BaseFormElement';
1
2
  import { FieldError } from '../typings';
2
3
  import { BaseSerializedField, FieldOptions, FieldValidator } from './typings';
3
- import { BaseFormElement } from '../BaseFormElement';
4
4
  export declare abstract class BaseField<TType extends string, TValue, TSerializedValue, This extends BaseField<TType, TValue, TSerializedValue, This>> extends BaseFormElement<TType, This> {
5
5
  label: string;
6
6
  description: string | null;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { BaseFormElementOptions, BaseSerializedFormElement } from './typings';
3
2
  import { Observable } from '../../Observable';
3
+ import { BaseFormElementOptions, BaseSerializedFormElement } from './typings';
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 { BaseSerializedOptionsField, SelectFieldOption } from './typings';
2
1
  import { BaseField, FieldCreationSchemaObject, FieldOptions } from '../BaseField';
2
+ import { BaseSerializedOptionsField, SelectFieldOption } from './typings';
3
3
  export interface BaseOptionsFieldOptions extends FieldOptions {
4
4
  options: string[] | SelectFieldOption[];
5
5
  }
@@ -1,6 +1,6 @@
1
- import { BaseSerializedStringField } from './typings';
2
1
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
3
2
  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,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedBooleanField } from './typings';
3
2
  import { BaseField, FieldOptions } from '../BaseField';
3
+ import { SerializedBooleanField } from './typings';
4
4
  export type BooleanFieldOptions = FieldOptions;
5
5
  export declare class BooleanField extends BaseField<"boolean", boolean, boolean, BooleanField> {
6
6
  readonly type = "boolean";
@@ -1,5 +1,5 @@
1
- import { BooleanField } from './BooleanField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { BooleanField } from './BooleanField';
3
3
  interface BooleanFieldInputProps extends FieldRenderProps {
4
4
  field: BooleanField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedCheckboxListField } from './typings';
3
2
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
3
+ import { SerializedCheckboxListField } from './typings';
4
4
  export interface CheckboxListFieldOptions extends BaseOptionsFieldOptions {
5
5
  }
6
6
  export declare class CheckboxListField extends BaseOptionsField<"checkbox-list", string[], string[], CheckboxListField> {
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedDateField } from './typings';
3
2
  import { BaseField, FieldOptions } from '../BaseField';
3
+ import { SerializedDateField } from './typings';
4
4
  export type SerializedDateRange = {
5
5
  to: string | null;
6
6
  from: string | null;
@@ -1,5 +1,5 @@
1
- import { DateField } from './DateField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { DateField } from './DateField';
3
3
  interface DateFieldInputProps extends FieldRenderProps {
4
4
  field: DateField;
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- import { FieldValues } from '../../typings';
3
- import { Field, FieldsManager } from '../typings';
4
2
  import { Condition, FieldConditionManager } from '../../conditions';
3
+ import { FieldValues } from '../../typings';
5
4
  import { BaseFormElement, BaseFormElementOptions } from '../BaseFormElement';
5
+ import { Field, FieldsManager } from '../typings';
6
6
  import { FieldSectionConditions, SerializedFieldSection } from './typings';
7
7
  export interface FieldSectionOptions extends BaseFormElementOptions {
8
8
  label?: string | null;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedMultiSelectField } from './typings';
3
2
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
3
+ import { SerializedMultiSelectField } from './typings';
4
4
  export type MultiSelectFieldOptions = BaseOptionsFieldOptions & {
5
5
  placeholder?: string;
6
6
  };
@@ -1,5 +1,5 @@
1
- import { MultiSelectField } from './MultiSelectField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { MultiSelectField } from './MultiSelectField';
3
3
  export interface MultiSelectFieldInputProps extends FieldRenderProps {
4
4
  field: MultiSelectField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedMultiStringField } from './typings';
3
2
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
3
+ import { SerializedMultiStringField } from './typings';
4
4
  export interface MultiStringFieldOptions extends FieldOptions {
5
5
  minimum_length?: number;
6
6
  maximum_length?: number;
@@ -1,5 +1,5 @@
1
- import { MultiStringField } from './MultiStringField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { MultiStringField } from './MultiStringField';
3
3
  interface MultiStringFieldInputProps extends FieldRenderProps {
4
4
  field: MultiStringField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedNumberField } from './typings';
3
2
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
4
3
  import { BooleanField } from '../BooleanField';
4
+ import { SerializedNumberField } from './typings';
5
5
  export type NumberRange = {
6
6
  to: number | null;
7
7
  from: number | null;
@@ -1,5 +1,5 @@
1
- import { NumberField } from './NumberField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { NumberField } from './NumberField';
3
3
  interface NumberFieldInputProps extends FieldRenderProps {
4
4
  field: NumberField;
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- import { OTPFieldValidationType, SerializedOTPField } from './typings';
3
2
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
4
3
  import { NumberField } from '../NumberField';
5
4
  import { SelectField } from '../SelectField';
5
+ import { OTPFieldValidationType, SerializedOTPField } from './typings';
6
6
  export interface OTPFieldOptions extends FieldOptions {
7
7
  length: number;
8
8
  validationType: OTPFieldValidationType;
@@ -1,5 +1,5 @@
1
- import { ComponentProps } from 'react';
2
1
  import { OneTimePasswordField } from '@overmap-ai/blocks';
2
+ import { ComponentProps } from 'react';
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,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { PassFailFieldStatus, PassFailFieldValue, SerializedPassFailField, SerializedPassFailFieldValue } from './typings';
3
2
  import { BaseField, FieldCreationSchemaObject, FieldOptions, FieldValidator } from '../BaseField';
3
+ import { PassFailFieldStatus, PassFailFieldValue, SerializedPassFailField, SerializedPassFailFieldValue } from './typings';
4
4
  export interface PassFailFieldOptions extends FieldOptions {
5
5
  showNotesAndFilesOn: PassFailFieldStatus[];
6
6
  }
@@ -1,5 +1,5 @@
1
- import { PassFailField } from './PassFailField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { PassFailField } from './PassFailField';
3
3
  interface PassFailFieldInputProps extends FieldRenderProps {
4
4
  field: PassFailField;
5
5
  }
@@ -1,6 +1,6 @@
1
+ import { UUIDFile } from '../../UUIDFile';
1
2
  import { UUIDPromise } from '../../UUIDPromise';
2
3
  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,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedRadioField } from './typings';
3
2
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
3
+ import { SerializedRadioField } from './typings';
4
4
  export interface RadioFieldOptions extends BaseOptionsFieldOptions {
5
5
  }
6
6
  export declare class RadioField extends BaseOptionsField<"radio", string | null, string | null, RadioField> {
@@ -1,5 +1,5 @@
1
- import { RadioField } from './RadioField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { RadioField } from './RadioField';
3
3
  interface RadioFieldInputProps extends FieldRenderProps {
4
4
  field: RadioField;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedRatingField } from './typings';
3
2
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
4
3
  import { NumberField } from '../NumberField';
4
+ import { SerializedRatingField } from './typings';
5
5
  export interface RatingFieldOptions extends FieldOptions {
6
6
  maxRating: number;
7
7
  }
@@ -1,5 +1,5 @@
1
- import { RatingField } from './RatingField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { RatingField } from './RatingField';
3
3
  interface RatingFieldInputProps extends FieldRenderProps {
4
4
  field: RatingField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedScanField } from './typings';
3
2
  import { BaseField, FieldOptions } from '../BaseField';
3
+ import { SerializedScanField } from './typings';
4
4
  export interface ScanFieldOptions extends FieldOptions {
5
5
  }
6
6
  export declare class ScanField extends BaseField<"qr", string, string, ScanField> {
@@ -1,5 +1,5 @@
1
- import { ScanField } from './ScanField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { ScanField } from './ScanField';
3
3
  interface ScanFieldInputProps extends FieldRenderProps {
4
4
  field: ScanField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedSelectField } from './typings';
3
2
  import { BaseOptionsField, BaseOptionsFieldOptions } from '../BaseOptionsField';
3
+ import { SerializedSelectField } from './typings';
4
4
  export type SelectFieldOptions = BaseOptionsFieldOptions & {
5
5
  placeholder?: string;
6
6
  };
@@ -1,5 +1,5 @@
1
- import { SelectField } from './SelectField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { SelectField } from './SelectField';
3
3
  interface SelectFieldInputProps extends FieldRenderProps {
4
4
  field: SelectField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedStringField } from './typings';
3
2
  import { BaseStringField, BaseStringFieldOptions } from '../BaseStringField';
3
+ import { SerializedStringField } from './typings';
4
4
  export interface StringFieldOptions extends BaseStringFieldOptions {
5
5
  }
6
6
  export declare class StringField extends BaseStringField<"string", StringField> {
@@ -1,5 +1,5 @@
1
- import { StringField } from './StringField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { StringField } from './StringField';
3
3
  interface StringFieldInputProps extends FieldRenderProps {
4
4
  field: StringField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedTextField } from './typings';
3
2
  import { BaseStringField, BaseStringFieldOptions } from '../BaseStringField';
3
+ import { SerializedTextField } from './typings';
4
4
  export type TextFieldOptions = BaseStringFieldOptions;
5
5
  export declare class TextField extends BaseStringField<"text", TextField> {
6
6
  readonly type = "text";
@@ -1,5 +1,5 @@
1
- import { TextField } from './TextField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { TextField } from './TextField';
3
3
  interface TextFieldInputProps extends FieldRenderProps {
4
4
  field: TextField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedTimeField, Time } from './typings';
3
2
  import { BaseField, FieldOptions } from '../BaseField';
3
+ import { SerializedTimeField, Time } from './typings';
4
4
  export type TimeFieldOptions = FieldOptions;
5
5
  export declare class TimeField extends BaseField<"time", Time | null, Time | null, TimeField> {
6
6
  readonly type = "time";
@@ -1,5 +1,5 @@
1
- import { TimeField } from './TimeField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { TimeField } from './TimeField';
3
3
  interface TimeFieldInputProps extends FieldRenderProps {
4
4
  field: TimeField;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedURLField } from './typings';
3
2
  import { BaseField, FieldOptions } from '../BaseField';
3
+ import { SerializedURLField } from './typings';
4
4
  export interface URLFieldOptions extends FieldOptions {
5
5
  placeholder?: string;
6
6
  }
@@ -1,5 +1,5 @@
1
- import { URLField } from './URLField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { URLField } from './URLField';
3
3
  interface URLFieldInputProps extends FieldRenderProps {
4
4
  field: URLField;
5
5
  }
@@ -1,10 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
- import { SerializedUploadField } from './typings';
3
2
  import { UUIDFile } from '../../UUIDFile';
4
3
  import { UUIDPromise } from '../../UUIDPromise';
5
4
  import { BaseField, FieldOptions, FieldValidator } from '../BaseField';
6
5
  import { MultiSelectField } from '../MultiSelectField';
7
6
  import { NumberField } from '../NumberField';
7
+ import { SerializedUploadField } from './typings';
8
8
  export interface UploadFieldOptions extends FieldOptions {
9
9
  extensions?: string[];
10
10
  maximum_size?: number | string;
@@ -1,5 +1,5 @@
1
- import { UploadField } from './UploadField';
2
1
  import { FieldRenderProps } from '../BaseFormElement';
2
+ import { UploadField } from './UploadField';
3
3
  interface UploadFieldInputProps extends FieldRenderProps {
4
4
  field: UploadField;
5
5
  }