@overmap-ai/core 1.0.60-export-overmap-reducer.2 → 1.0.60-forms-removal.1
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/index.d.ts +0 -5
- package/dist/overmap-core.js +920 -13043
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +956 -13081
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/base.d.ts +11 -0
- package/dist/sdk/globals.d.ts +7 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/sdk.d.ts +4 -51
- package/dist/sdk/services/AgentService.d.ts +4 -3
- package/dist/sdk/services/AssetAttachmentService.d.ts +4 -3
- package/dist/sdk/services/AssetService.d.ts +5 -4
- package/dist/sdk/services/AssetStageCompletionService.d.ts +5 -4
- package/dist/sdk/services/AssetStageService.d.ts +4 -3
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +4 -3
- package/dist/sdk/services/AssetTypeService.d.ts +5 -4
- package/dist/sdk/services/BaseApiService.d.ts +7 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +6 -5
- package/dist/sdk/services/BaseAuthService.d.ts +12 -0
- package/dist/sdk/services/BaseService.d.ts +15 -0
- package/dist/sdk/services/CategoryService.d.ts +5 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +4 -3
- package/dist/sdk/services/DocumentService.d.ts +5 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +4 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +3 -2
- package/dist/sdk/services/FileService.d.ts +4 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +4 -3
- package/dist/sdk/services/IssueCommentService.d.ts +5 -4
- package/dist/sdk/services/IssueService.d.ts +5 -4
- package/dist/sdk/services/IssueTypeService.d.ts +6 -5
- package/dist/sdk/services/IssueUpdateService.d.ts +4 -2
- package/dist/sdk/services/JWTAuthService.d.ts +36 -0
- package/dist/sdk/services/LicenseService.d.ts +4 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +4 -3
- package/dist/sdk/services/OrganizationService.d.ts +4 -4
- package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +4 -3
- package/dist/sdk/services/ProjectFileService.d.ts +4 -2
- package/dist/sdk/services/ProjectService.d.ts +3 -2
- package/dist/sdk/services/TeamService.d.ts +6 -5
- package/dist/sdk/services/UserFormService.d.ts +5 -5
- package/dist/sdk/services/UserFormSubmissionService.d.ts +6 -6
- package/dist/sdk/services/UserService.d.ts +6 -0
- package/dist/sdk/services/WorkspaceService.d.ts +4 -1
- package/dist/sdk/services/index.d.ts +2 -2
- package/dist/sdk/typings.d.ts +5 -1
- package/dist/store/slices/agentsSlice.d.ts +2 -2
- package/dist/store/slices/assetAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/assetSlice.d.ts +6 -6
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +7 -7
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/assetTypeSlice.d.ts +7 -7
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +4 -4
- package/dist/store/slices/documentAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/documentSlice.d.ts +17 -17
- package/dist/store/slices/emailDomainsSlice.d.ts +2 -2
- package/dist/store/slices/fileSlice.d.ts +2 -2
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/formRevisionSlice.d.ts +19 -19
- package/dist/store/slices/formSlice.d.ts +8 -8
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/formSubmissionSlice.d.ts +11 -11
- package/dist/store/slices/index.d.ts +1 -0
- package/dist/store/slices/issueAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/issueSlice.d.ts +5 -5
- package/dist/store/slices/issueTypeSlice.d.ts +7 -7
- package/dist/store/slices/licenseSlice.d.ts +7 -7
- package/dist/store/slices/organizationAccessSlice.d.ts +4 -4
- package/dist/store/slices/organizationSlice.d.ts +13 -13
- package/dist/store/slices/outboxSlice.d.ts +3 -1
- package/dist/store/slices/projectAccessSlice.d.ts +6 -6
- package/dist/store/slices/projectAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/projectFileSlice.d.ts +4 -4
- package/dist/store/slices/projectSlice.d.ts +7 -7
- package/dist/store/slices/teamSlice.d.ts +6 -6
- package/dist/store/slices/userSlice.d.ts +2 -2
- package/dist/store/slices/workspaceSlice.d.ts +6 -6
- package/dist/store/store.d.ts +4 -5
- package/dist/typings/colors.d.ts +0 -3
- package/dist/typings/models/forms.d.ts +88 -1
- package/dist/typings/models/organizations.d.ts +0 -11
- package/dist/typings/models/store.d.ts +6 -4
- package/dist/typings/store.d.ts +4 -2
- package/dist/utils/colors.d.ts +0 -6
- package/dist/utils/file.d.ts +0 -6
- package/package.json +13 -43
- package/dist/components/ColorPicker/ColorPicker.d.ts +0 -10
- package/dist/components/ColorPicker/index.d.ts +0 -1
- package/dist/components/FileBadge/FileBadge.d.ts +0 -8
- package/dist/components/FileBadge/index.d.ts +0 -1
- package/dist/components/FileCard/FileCard.d.ts +0 -8
- package/dist/components/FileCard/index.d.ts +0 -1
- package/dist/components/FileIcon/FileIcon.d.ts +0 -5
- package/dist/components/FileIcon/index.d.ts +0 -1
- package/dist/components/FileViewer/FileViewerProvider.d.ts +0 -2
- package/dist/components/FileViewer/context.d.ts +0 -5
- package/dist/components/FileViewer/index.d.ts +0 -3
- package/dist/components/FileViewer/typings.d.ts +0 -5
- package/dist/components/ImageCard/ImageCard.d.ts +0 -9
- package/dist/components/ImageCard/index.d.ts +0 -1
- package/dist/components/ImageMarkup/ImageMarkup.d.ts +0 -14
- package/dist/components/ImageMarkup/index.d.ts +0 -1
- package/dist/components/ImageViewer/ImageViewer.d.ts +0 -8
- package/dist/components/ImageViewer/constants.d.ts +0 -1
- package/dist/components/ImageViewer/index.d.ts +0 -2
- package/dist/components/PDFViewer/PDFViewer.d.ts +0 -8
- package/dist/components/PDFViewer/constants.d.ts +0 -1
- package/dist/components/PDFViewer/index.d.ts +0 -2
- package/dist/components/SpreadsheetViewer/SpreadsheetViewer.d.ts +0 -8
- package/dist/components/SpreadsheetViewer/constants.d.ts +0 -1
- package/dist/components/SpreadsheetViewer/index.d.ts +0 -2
- package/dist/components/index.d.ts +0 -10
- package/dist/contexts/hooks.d.ts +0 -2
- package/dist/contexts/index.d.ts +0 -3
- package/dist/contexts/overmap.d.ts +0 -12
- package/dist/contexts/sdk/globals.d.ts +0 -4
- package/dist/contexts/sdk/hooks.d.ts +0 -4
- package/dist/contexts/sdk/index.d.ts +0 -2
- package/dist/contexts/sdk/sdk.d.ts +0 -15
- package/dist/forms/builder/DropDispatch.d.ts +0 -27
- package/dist/forms/builder/FieldActions.d.ts +0 -13
- package/dist/forms/builder/FieldBuilder.d.ts +0 -10
- package/dist/forms/builder/FieldSectionWithActions.d.ts +0 -11
- package/dist/forms/builder/FieldWithActions.d.ts +0 -10
- package/dist/forms/builder/FieldsEditor.d.ts +0 -6
- package/dist/forms/builder/FormBuilder.d.ts +0 -25
- package/dist/forms/builder/constants.d.ts +0 -18
- package/dist/forms/builder/hooks.d.ts +0 -7
- package/dist/forms/builder/index.d.ts +0 -2
- package/dist/forms/builder/typings.d.ts +0 -12
- package/dist/forms/builder/utils.d.ts +0 -24
- package/dist/forms/constants.d.ts +0 -2
- package/dist/forms/constantsJsx.d.ts +0 -9
- package/dist/forms/fields/BaseField/BaseField.d.ts +0 -52
- package/dist/forms/fields/BaseField/hooks.d.ts +0 -374
- package/dist/forms/fields/BaseField/index.d.ts +0 -4
- package/dist/forms/fields/BaseField/layouts.d.ts +0 -26
- package/dist/forms/fields/BaseField/typings.d.ts +0 -7
- package/dist/forms/fields/BooleanField/BooleanField.d.ts +0 -23
- package/dist/forms/fields/BooleanField/BooleanInput.d.ts +0 -4
- package/dist/forms/fields/BooleanField/index.d.ts +0 -2
- package/dist/forms/fields/CustomField/CustomField.d.ts +0 -24
- package/dist/forms/fields/CustomField/FieldInputClonerField/FieldInputCloner.d.ts +0 -8
- package/dist/forms/fields/CustomField/FieldInputClonerField/FieldInputClonerField.d.ts +0 -18
- package/dist/forms/fields/CustomField/FieldInputClonerField/index.d.ts +0 -3
- package/dist/forms/fields/CustomField/FieldInputClonerField/typings.d.ts +0 -5
- package/dist/forms/fields/CustomField/index.d.ts +0 -1
- package/dist/forms/fields/DateField/DateField.d.ts +0 -22
- package/dist/forms/fields/DateField/DateInput.d.ts +0 -4
- package/dist/forms/fields/DateField/index.d.ts +0 -2
- package/dist/forms/fields/FieldSection/FieldSection.d.ts +0 -33
- package/dist/forms/fields/FieldSection/FieldSectionLayout.d.ts +0 -7
- package/dist/forms/fields/FieldSection/index.d.ts +0 -1
- package/dist/forms/fields/MultiStringField/MultiStringField.d.ts +0 -40
- package/dist/forms/fields/MultiStringField/MultiStringInput.d.ts +0 -8
- package/dist/forms/fields/MultiStringField/index.d.ts +0 -2
- package/dist/forms/fields/NumberField/NumberField.d.ts +0 -46
- package/dist/forms/fields/NumberField/NumberInput.d.ts +0 -4
- package/dist/forms/fields/NumberField/index.d.ts +0 -2
- package/dist/forms/fields/QrField/QrField.d.ts +0 -21
- package/dist/forms/fields/QrField/QrInput.d.ts +0 -10
- package/dist/forms/fields/QrField/index.d.ts +0 -2
- package/dist/forms/fields/SelectField/BaseSelectField.d.ts +0 -34
- package/dist/forms/fields/SelectField/MultiSelectField.d.ts +0 -27
- package/dist/forms/fields/SelectField/MultiSelectInput.d.ts +0 -4
- package/dist/forms/fields/SelectField/SelectField.d.ts +0 -26
- package/dist/forms/fields/SelectField/SelectInput.d.ts +0 -4
- package/dist/forms/fields/SelectField/index.d.ts +0 -4
- package/dist/forms/fields/StringOrTextFields/StringField/StringField.d.ts +0 -26
- package/dist/forms/fields/StringOrTextFields/StringField/StringInput.d.ts +0 -4
- package/dist/forms/fields/StringOrTextFields/StringField/index.d.ts +0 -2
- package/dist/forms/fields/StringOrTextFields/StringOrTextField.d.ts +0 -34
- package/dist/forms/fields/StringOrTextFields/TextField/TextField.d.ts +0 -22
- package/dist/forms/fields/StringOrTextFields/TextField/TextInput.d.ts +0 -4
- package/dist/forms/fields/StringOrTextFields/TextField/index.d.ts +0 -2
- package/dist/forms/fields/StringOrTextFields/index.d.ts +0 -2
- package/dist/forms/fields/UploadField/UploadField.d.ts +0 -44
- package/dist/forms/fields/UploadField/UploadInput.d.ts +0 -4
- package/dist/forms/fields/UploadField/index.d.ts +0 -2
- package/dist/forms/fields/UploadField/utils.d.ts +0 -1
- package/dist/forms/fields/constants.d.ts +0 -106
- package/dist/forms/fields/hooks.d.ts +0 -6
- package/dist/forms/fields/index.d.ts +0 -12
- package/dist/forms/fields/typings.d.ts +0 -27
- package/dist/forms/fields/utils.d.ts +0 -17
- package/dist/forms/index.d.ts +0 -6
- package/dist/forms/provider.d.ts +0 -5
- package/dist/forms/renderer/FormBrowser/FormBrowser.d.ts +0 -11
- package/dist/forms/renderer/FormRenderer/FormRenderer.d.ts +0 -31
- package/dist/forms/renderer/FormSubmissionViewer/FormSubmissionViewer.d.ts +0 -17
- package/dist/forms/renderer/PatchForm/Field.d.ts +0 -17
- package/dist/forms/renderer/PatchForm/Provider.d.ts +0 -29
- package/dist/forms/renderer/PatchForm/index.d.ts +0 -2
- package/dist/forms/renderer/index.d.ts +0 -4
- package/dist/forms/typings.d.ts +0 -103
- package/dist/forms/utils.d.ts +0 -9
- package/dist/sdk/services/AuthService.d.ts +0 -54
- package/dist/sdk/services/MainService.d.ts +0 -16
- package/dist/style.css +0 -428
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
2
|
-
import { FC, ReactNode } from "react";
|
|
3
|
-
import { GetInputProps, ISerializedOnlyField } from "../typings";
|
|
4
|
-
import { FieldTypeIdentifier, FieldValue } from "../../typings";
|
|
5
|
-
export type CustomFieldOptions<TValue> = ChildFieldOptions<TValue>;
|
|
6
|
-
export declare const emptyCustomField: {
|
|
7
|
-
type: string;
|
|
8
|
-
label: string;
|
|
9
|
-
description: string;
|
|
10
|
-
required: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare class CustomField<TValue extends FieldValue,
|
|
13
|
-
/** The options passed to constructor */
|
|
14
|
-
TFieldOptions extends CustomFieldOptions<TValue>,
|
|
15
|
-
/** The props passed to the custom component */
|
|
16
|
-
TComponentProps extends GetInputProps<CustomField<TValue, TFieldOptions, TComponentProps>>, TIdentifier extends FieldTypeIdentifier = FieldTypeIdentifier> extends BaseField<TValue, TIdentifier> {
|
|
17
|
-
static readonly fieldTypeName = "Custom";
|
|
18
|
-
static readonly fieldTypeDescription = "Allows re-rendering of field already in the form";
|
|
19
|
-
readonly Component: FC<TComponentProps>;
|
|
20
|
-
readonly options: TFieldOptions;
|
|
21
|
-
constructor(options: TFieldOptions, Component: FC<TComponentProps>);
|
|
22
|
-
serialize(): ISerializedOnlyField;
|
|
23
|
-
getInput(props: TComponentProps): ReactNode;
|
|
24
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FieldInputClonerProps } from "./typings";
|
|
3
|
-
/**
|
|
4
|
-
* Used to dynamically "clone" a field's input for use in conditional sections. When a field is selected for a
|
|
5
|
-
* condition, we need to render the same input in the condition section, so the user can input a value for the
|
|
6
|
-
* condition.
|
|
7
|
-
*/
|
|
8
|
-
export declare const FieldInputCloner: import("react").MemoExoticComponent<(props: FieldInputClonerProps) => import("react").ReactNode>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CustomField, CustomFieldOptions } from "../CustomField";
|
|
2
|
-
import { FieldInputClonerProps } from "./index";
|
|
3
|
-
import { FieldValue, ISerializedField } from "../../../typings";
|
|
4
|
-
export interface FieldInputClonerFieldOptions extends CustomFieldOptions<unknown> {
|
|
5
|
-
/** Given an identifier, should return the options of the field with the
|
|
6
|
-
* corresponding identifier (the field being cloned) */
|
|
7
|
-
getFieldToClone: (identifier: string) => ISerializedField | null;
|
|
8
|
-
/** The identifier of the field to clone */
|
|
9
|
-
clonedFieldIdentifier: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The purpose of this is to display a value input field in the condition of a section. The input field will look like
|
|
13
|
-
* the input field of the condition. For example, when specifying the conditional value of a SelectField, a SelectInput
|
|
14
|
-
* will be rendered.
|
|
15
|
-
*/
|
|
16
|
-
export declare class FieldInputClonerField extends CustomField<FieldValue, FieldInputClonerFieldOptions, FieldInputClonerProps> {
|
|
17
|
-
constructor(options: FieldInputClonerFieldOptions);
|
|
18
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AnyField, ComponentProps, GetInputProps } from "../../typings";
|
|
2
|
-
import { CustomField } from "../CustomField";
|
|
3
|
-
import { FieldInputClonerFieldOptions } from "./FieldInputClonerField";
|
|
4
|
-
import { FieldValue } from "../../../typings";
|
|
5
|
-
export type FieldInputClonerProps = ComponentProps<CustomField<FieldValue, FieldInputClonerFieldOptions, GetInputProps<AnyField>>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CustomField";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ChangeEvent } from "react";
|
|
2
|
-
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
3
|
-
import { GetInputProps } from "../typings";
|
|
4
|
-
import { RiCalendarLine } from "react-icons/ri";
|
|
5
|
-
import { ISerializedField, SerializedDateField } from "../../typings";
|
|
6
|
-
export declare const emptyDateField: {
|
|
7
|
-
type: string;
|
|
8
|
-
label: string;
|
|
9
|
-
description: string;
|
|
10
|
-
required: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare class DateField extends BaseField<string, "date"> {
|
|
13
|
-
static readonly fieldTypeName = "Date";
|
|
14
|
-
static readonly fieldTypeDescription = "Allows specifying a date.";
|
|
15
|
-
static Icon: typeof RiCalendarLine;
|
|
16
|
-
readonly onlyValidateAfterTouched = false;
|
|
17
|
-
constructor(options: ChildFieldOptions<string>);
|
|
18
|
-
serialize(): SerializedDateField;
|
|
19
|
-
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement>): string;
|
|
20
|
-
static deserialize(data: ISerializedField): DateField;
|
|
21
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
22
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { AnyField, BaseFormElement, BooleanField, GetInputProps } from "../index";
|
|
3
|
-
import { BaseSerializedObject, Form, ISerializedField, SerializedCondition, SerializedFieldSection } from "../../typings";
|
|
4
|
-
import { FormikUserFormRevision } from "../../builder";
|
|
5
|
-
interface FieldSectionOptions extends Omit<BaseSerializedObject, "type"> {
|
|
6
|
-
label?: string | null;
|
|
7
|
-
conditional?: boolean;
|
|
8
|
-
condition?: SerializedCondition | null;
|
|
9
|
-
fields: AnyField[];
|
|
10
|
-
}
|
|
11
|
-
export declare class FieldSection extends BaseFormElement<"section"> {
|
|
12
|
-
static readonly fieldTypeName = "Section";
|
|
13
|
-
static readonly fieldTypeDescription = "Sections can be useful for grouping fields together. They can also be conditionally shown or hidden.";
|
|
14
|
-
readonly label: string | null;
|
|
15
|
-
readonly fields: AnyField[];
|
|
16
|
-
readonly condition: SerializedCondition | null;
|
|
17
|
-
constructor(options: FieldSectionOptions);
|
|
18
|
-
static getFieldCreationSchema(options: ISerializedField[], parentPath?: string): ({
|
|
19
|
-
field: BooleanField;
|
|
20
|
-
showDirectly: boolean;
|
|
21
|
-
} | {
|
|
22
|
-
field: FieldSection;
|
|
23
|
-
showDirectly: boolean;
|
|
24
|
-
})[];
|
|
25
|
-
static deserialize(data: ISerializedField): FieldSection;
|
|
26
|
-
conditional(): this is {
|
|
27
|
-
condition: SerializedCondition;
|
|
28
|
-
};
|
|
29
|
-
serialize(): SerializedFieldSection;
|
|
30
|
-
getErrors(allValues: Form | FormikUserFormRevision): Record<string, string>;
|
|
31
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FieldSection } from "./FieldSection";
|
|
3
|
-
import { ComponentProps } from "../typings";
|
|
4
|
-
/**
|
|
5
|
-
* Used by FieldSection to render a section of fields.
|
|
6
|
-
*/
|
|
7
|
-
export declare const FieldSectionLayout: import("react").MemoExoticComponent<(props: ComponentProps<FieldSection>) => string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./FieldSection";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
2
|
-
import { GetInputProps, InputFieldLevelValidator } from "../typings";
|
|
3
|
-
import { ChangeEvent, ReactNode } from "react";
|
|
4
|
-
import { RiListCheck } from "react-icons/ri";
|
|
5
|
-
import { ISerializedField, SerializedMultiStringField } from "../../typings";
|
|
6
|
-
type MultiStringFieldOptions = ChildFieldOptions<string[]> & {
|
|
7
|
-
minimum_length?: number;
|
|
8
|
-
maximum_length?: number;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const emptyMultiStringField: {
|
|
12
|
-
type: string;
|
|
13
|
-
minimum_length: number;
|
|
14
|
-
maximum_length: null;
|
|
15
|
-
label: string;
|
|
16
|
-
description: string;
|
|
17
|
-
required: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* A field that lets the user input multiple strings. Each string must be unique. Useful for things like:
|
|
21
|
-
* - Specifying the options of a SelectField (used in `SelectField.getFieldCreationSchema`
|
|
22
|
-
* - Listing serial numbers and similar
|
|
23
|
-
*/
|
|
24
|
-
export declare class MultiStringField extends BaseField<string[], "multi-string"> {
|
|
25
|
-
static readonly fieldTypeName = "Multi-string";
|
|
26
|
-
static readonly fieldTypeDescription = "Allows the user to provide multiple unique strings.";
|
|
27
|
-
readonly minLength: number;
|
|
28
|
-
readonly maxLength: number;
|
|
29
|
-
readonly onlyValidateAfterTouched = false;
|
|
30
|
-
readonly placeholder: string;
|
|
31
|
-
static Icon: typeof RiListCheck;
|
|
32
|
-
constructor(options: MultiStringFieldOptions);
|
|
33
|
-
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | string[]): string[];
|
|
34
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
35
|
-
serialize(): SerializedMultiStringField;
|
|
36
|
-
protected isBlank(value: string[]): boolean;
|
|
37
|
-
getFieldValidators(): InputFieldLevelValidator<string[]>[];
|
|
38
|
-
static deserialize(data: ISerializedField): MultiStringField;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentProps } from "../typings";
|
|
3
|
-
import { MultiStringField } from "./MultiStringField";
|
|
4
|
-
/**
|
|
5
|
-
* Allows the user to create an array of unique strings and customize the order.
|
|
6
|
-
* User to generate options for the Select field.
|
|
7
|
-
*/
|
|
8
|
-
export declare const MultiStringInput: import("react").MemoExoticComponent<(props: ComponentProps<MultiStringField>) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { BooleanField } from "../BooleanField";
|
|
2
|
-
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
3
|
-
import { GetInputProps, InputFieldLevelValidator, InputValidator } from "../typings";
|
|
4
|
-
import { ChangeEvent, ReactNode } from "react";
|
|
5
|
-
import { RiHashtag } from "react-icons/ri";
|
|
6
|
-
import { ISerializedField, SerializedNumberField } from "../../typings";
|
|
7
|
-
export type NumberFieldValue = number | "";
|
|
8
|
-
export declare const emptyNumberField: {
|
|
9
|
-
type: string;
|
|
10
|
-
minimum: number;
|
|
11
|
-
maximum: number;
|
|
12
|
-
integers: boolean;
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
export interface NumberFieldOptions extends ChildFieldOptions<NumberFieldValue> {
|
|
18
|
-
maximum?: number;
|
|
19
|
-
minimum?: number;
|
|
20
|
-
integers?: boolean;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare class NumberField extends BaseField<NumberFieldValue, "number"> {
|
|
24
|
-
static readonly fieldTypeName = "Number";
|
|
25
|
-
static readonly fieldTypeDescription = "Allows specifying a number within a given range.";
|
|
26
|
-
readonly minimum: number | undefined;
|
|
27
|
-
readonly maximum: number | undefined;
|
|
28
|
-
readonly integers: boolean;
|
|
29
|
-
readonly placeholder: string;
|
|
30
|
-
static Icon: typeof RiHashtag;
|
|
31
|
-
constructor(options: NumberFieldOptions);
|
|
32
|
-
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement>): NumberFieldValue;
|
|
33
|
-
static _validateMin: (path: string) => InputValidator<NumberFieldValue>;
|
|
34
|
-
static _validateMax: (path: string) => InputValidator<NumberFieldValue>;
|
|
35
|
-
static getFieldCreationSchema(parentPath?: string): ({
|
|
36
|
-
field: NumberField;
|
|
37
|
-
showDirectly: boolean;
|
|
38
|
-
} | {
|
|
39
|
-
field: BooleanField;
|
|
40
|
-
showDirectly: boolean;
|
|
41
|
-
})[];
|
|
42
|
-
getFieldValidators(): InputFieldLevelValidator<NumberFieldValue>[];
|
|
43
|
-
serialize(): SerializedNumberField;
|
|
44
|
-
static deserialize(data: ISerializedField): NumberField;
|
|
45
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
46
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentProps } from "../typings";
|
|
3
|
-
import { NumberField } from "./NumberField";
|
|
4
|
-
export declare const NumberInput: import("react").MemoExoticComponent<(props: ComponentProps<NumberField>) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { RiQrCodeLine } from "react-icons/ri";
|
|
3
|
-
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
4
|
-
import { ISerializedField, SerializedQrField } from "../../typings";
|
|
5
|
-
import { ComponentProps } from "../typings";
|
|
6
|
-
export declare const emptyQrField: {
|
|
7
|
-
type: string;
|
|
8
|
-
label: string;
|
|
9
|
-
description: string;
|
|
10
|
-
required: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare class QrField extends BaseField<string, "qr"> {
|
|
13
|
-
static readonly fieldTypeName = "QR";
|
|
14
|
-
static readonly fieldTypeDescription = "Used for scanning/reading QR codes.";
|
|
15
|
-
readonly onlyValidateAfterTouched = false;
|
|
16
|
-
static Icon: typeof RiQrCodeLine;
|
|
17
|
-
constructor(options: ChildFieldOptions<string>);
|
|
18
|
-
serialize(): SerializedQrField;
|
|
19
|
-
static deserialize(data: ISerializedField): QrField;
|
|
20
|
-
getInput(props: ComponentProps<QrField>): ReactNode;
|
|
21
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentProps } from "../typings";
|
|
3
|
-
import { QrField } from "./QrField";
|
|
4
|
-
export declare const QrInput: import("react").MemoExoticComponent<(props: ComponentProps<QrField>) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
-
interface QrScannerProps {
|
|
6
|
-
onQrScan: (data: string) => void;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const QrScanner: import("react").MemoExoticComponent<(props: QrScannerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
2
|
-
import { FieldValue, SelectFieldOption } from "../../typings";
|
|
3
|
-
import { MultiStringField } from "../MultiStringField";
|
|
4
|
-
/**
|
|
5
|
-
* The options passed to the constructor of SelectField.
|
|
6
|
-
*/
|
|
7
|
-
export interface BaseSelectFieldOptions<TValue, TIdentifier extends "select" | "multi-select"> extends ChildFieldOptions<TValue> {
|
|
8
|
-
/** When instantiating a SelectField, you can either pass an array of strings or an array of objects. User-created
|
|
9
|
-
* forms only support arrays of strings. For more complex internal purposes, you can provide an array of objects
|
|
10
|
-
* where the `label` is the text to display to the user and the `value` is the value handled by Formik.*/
|
|
11
|
-
options: string[] | SelectFieldOption[];
|
|
12
|
-
type: TIdentifier;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare abstract class BaseSelectField<TValue extends FieldValue, TIdentifier extends "select" | "multi-select"> extends BaseField<TValue, TIdentifier> {
|
|
16
|
-
readonly options: SelectFieldOption[];
|
|
17
|
-
readonly onlyValidateAfterTouched = false;
|
|
18
|
-
readonly placeholder: string;
|
|
19
|
-
protected constructor(options: BaseSelectFieldOptions<TValue, TIdentifier>);
|
|
20
|
-
protected _serialize(): {
|
|
21
|
-
options: SelectFieldOption[];
|
|
22
|
-
placeholder: string;
|
|
23
|
-
label: string;
|
|
24
|
-
required: boolean;
|
|
25
|
-
image?: File | Promise<File> | undefined;
|
|
26
|
-
description?: string | null | undefined;
|
|
27
|
-
identifier: string;
|
|
28
|
-
type: TIdentifier;
|
|
29
|
-
};
|
|
30
|
-
static getFieldCreationSchema(parentPath?: string): {
|
|
31
|
-
field: MultiStringField;
|
|
32
|
-
showDirectly: boolean;
|
|
33
|
-
}[];
|
|
34
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { GetInputProps } from "../typings";
|
|
3
|
-
import { BaseSelectField, BaseSelectFieldOptions } from "./BaseSelectField";
|
|
4
|
-
import { RiCheckboxLine } from "react-icons/ri";
|
|
5
|
-
import { ISerializedField, SelectFieldOptionValue, SerializedMultiSelectField } from "../../typings";
|
|
6
|
-
/**
|
|
7
|
-
* The options passed to the constructor of MultiSelectField.
|
|
8
|
-
*/
|
|
9
|
-
export type MultiSelectFieldOptions = Omit<BaseSelectFieldOptions<SelectFieldOptionValue[], "multi-select">, "type">;
|
|
10
|
-
export declare const emptyMultiSelectField: {
|
|
11
|
-
type: string;
|
|
12
|
-
options: never[];
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare class MultiSelectField extends BaseSelectField<SelectFieldOptionValue[], "multi-select"> {
|
|
18
|
-
static readonly fieldTypeName = "Multi-select";
|
|
19
|
-
static readonly fieldTypeDescription = "Allows the user to select a multiple options from a list of options.";
|
|
20
|
-
static Icon: typeof RiCheckboxLine;
|
|
21
|
-
constructor(options: MultiSelectFieldOptions);
|
|
22
|
-
getValueFromChangeEvent(event: React.ChangeEvent<HTMLInputElement> | string[]): string[];
|
|
23
|
-
protected isBlank(value: SelectFieldOptionValue[]): boolean;
|
|
24
|
-
serialize(): SerializedMultiSelectField;
|
|
25
|
-
static deserialize(data: ISerializedField): MultiSelectField;
|
|
26
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
27
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentProps } from "../typings";
|
|
3
|
-
import { MultiSelectField } from "./MultiSelectField";
|
|
4
|
-
export declare const MultiSelectInput: import("react").MemoExoticComponent<(props: ComponentProps<MultiSelectField>) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent, ReactNode } from "react";
|
|
2
|
-
import { GetInputProps } from "../typings";
|
|
3
|
-
import { BaseSelectField, BaseSelectFieldOptions } from "./BaseSelectField";
|
|
4
|
-
import { RiMenuFoldLine } from "react-icons/ri";
|
|
5
|
-
import { ISerializedField, SelectFieldOptionValue, SerializedSelectField } from "../../typings";
|
|
6
|
-
/**
|
|
7
|
-
* The options passed to the constructor of SelectField.
|
|
8
|
-
*/
|
|
9
|
-
export type SelectFieldOptions = Omit<BaseSelectFieldOptions<SelectFieldOptionValue, "select">, "type">;
|
|
10
|
-
export declare const emptySelectField: {
|
|
11
|
-
type: string;
|
|
12
|
-
options: never[];
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare class SelectField extends BaseSelectField<SelectFieldOptionValue, "select"> {
|
|
18
|
-
static readonly fieldTypeName = "Dropdown";
|
|
19
|
-
static readonly fieldTypeDescription = "Allows the user to select a single option from a list of options.";
|
|
20
|
-
static Icon: typeof RiMenuFoldLine;
|
|
21
|
-
constructor(options: SelectFieldOptions);
|
|
22
|
-
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | string): SelectFieldOptionValue;
|
|
23
|
-
serialize(): SerializedSelectField;
|
|
24
|
-
static deserialize(data: ISerializedField): SelectField;
|
|
25
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
26
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentProps } from "../typings";
|
|
3
|
-
import { SelectField } from "./SelectField";
|
|
4
|
-
export declare const SelectInput: import("react").MemoExoticComponent<(props: ComponentProps<SelectField>) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { StringOrTextField, StringOrTextFieldOptions } from "../StringOrTextField";
|
|
3
|
-
import { GetInputProps } from "../../typings";
|
|
4
|
-
import { RiInputField } from "react-icons/ri";
|
|
5
|
-
import { ISerializedField, SerializedStringField, StringInputType } from "../../../typings";
|
|
6
|
-
export interface StringFieldOptions extends Omit<StringOrTextFieldOptions, "type"> {
|
|
7
|
-
inputType?: StringInputType;
|
|
8
|
-
}
|
|
9
|
-
export declare const emptyStringField: {
|
|
10
|
-
type: string;
|
|
11
|
-
maximum_length: number;
|
|
12
|
-
input_type: string;
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare class StringField extends StringOrTextField<"string"> {
|
|
18
|
-
static readonly fieldTypeName = "Short Text";
|
|
19
|
-
static readonly fieldTypeDescription = "Short text fields can hold up to 500 characters on a single line.";
|
|
20
|
-
readonly inputType: StringInputType;
|
|
21
|
-
static Icon: typeof RiInputField;
|
|
22
|
-
constructor(options: StringFieldOptions);
|
|
23
|
-
serialize(): SerializedStringField;
|
|
24
|
-
static deserialize(data: ISerializedField): StringField;
|
|
25
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
26
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StringField } from "./StringField";
|
|
3
|
-
import { ComponentProps } from "../../typings";
|
|
4
|
-
export declare const StringInput: import("react").MemoExoticComponent<(props: ComponentProps<StringField>) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { NumberField, NumberFieldValue } from "../NumberField";
|
|
2
|
-
import { BaseField, FieldOptions } from "../BaseField";
|
|
3
|
-
import { InputFieldLevelValidator, InputValidator } from "../typings";
|
|
4
|
-
import { SerializedStringField } from "../../typings";
|
|
5
|
-
export interface StringOrTextFieldOptions extends FieldOptions<string> {
|
|
6
|
-
minLength?: NumberFieldValue;
|
|
7
|
-
maxLength?: NumberFieldValue;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
}
|
|
10
|
-
export type SerializedStringOrTextField<TIdentifier extends "string" | "text"> = Omit<SerializedStringField, "type"> & {
|
|
11
|
-
type: TIdentifier;
|
|
12
|
-
};
|
|
13
|
-
export declare abstract class StringOrTextField<TIdentifier extends "string" | "text"> extends BaseField<string, TIdentifier> {
|
|
14
|
-
readonly minLength?: number;
|
|
15
|
-
readonly maxLength: number;
|
|
16
|
-
readonly placeholder: string;
|
|
17
|
-
protected constructor(options: StringOrTextFieldOptions);
|
|
18
|
-
/**
|
|
19
|
-
* This function returns a function that validates that the value given for "minimum length" (when creating a new field) is less than or
|
|
20
|
-
* equal to the value given for "maximum length".
|
|
21
|
-
*/
|
|
22
|
-
static _validateMin: (path: string) => InputValidator<NumberFieldValue>;
|
|
23
|
-
/**
|
|
24
|
-
* This function returns a function that validates that the value given for "maximum length" (when creating a new field) is greater than or
|
|
25
|
-
* equal to the value given for "minimum length".
|
|
26
|
-
*/
|
|
27
|
-
static _validateMax: (path: string) => InputValidator<NumberFieldValue>;
|
|
28
|
-
static getFieldCreationSchema(parentPath?: string): {
|
|
29
|
-
field: NumberField;
|
|
30
|
-
showDirectly: boolean;
|
|
31
|
-
}[];
|
|
32
|
-
getFieldValidators(): InputFieldLevelValidator<string>[];
|
|
33
|
-
protected _serialize(): SerializedStringOrTextField<TIdentifier>;
|
|
34
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { StringOrTextField, StringOrTextFieldOptions } from "../StringOrTextField";
|
|
3
|
-
import { GetInputProps } from "../../typings";
|
|
4
|
-
import { RiAlignJustify } from "react-icons/ri";
|
|
5
|
-
import { ISerializedField, SerializedTextField } from "../../../typings";
|
|
6
|
-
export type TextFieldOptions = Omit<StringOrTextFieldOptions, "type">;
|
|
7
|
-
export declare const emptyTextField: {
|
|
8
|
-
type: string;
|
|
9
|
-
maximum_length: number;
|
|
10
|
-
label: string;
|
|
11
|
-
description: string;
|
|
12
|
-
required: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare class TextField extends StringOrTextField<"text"> {
|
|
15
|
-
static readonly fieldTypeName = "Paragraph";
|
|
16
|
-
static readonly fieldTypeDescription = "Paragraph fields can hold up to 10000 characters and can have multiple lines.";
|
|
17
|
-
static Icon: typeof RiAlignJustify;
|
|
18
|
-
constructor(options: TextFieldOptions);
|
|
19
|
-
serialize(): SerializedTextField;
|
|
20
|
-
static deserialize(data: ISerializedField): TextField;
|
|
21
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
22
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextField } from "./TextField";
|
|
3
|
-
import { ComponentProps } from "../../typings";
|
|
4
|
-
export declare const TextInput: import("react").MemoExoticComponent<(props: ComponentProps<TextField>) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
2
|
-
import { GetInputProps, InputFieldLevelValidator } from "../typings";
|
|
3
|
-
import { ChangeEvent, ReactNode } from "react";
|
|
4
|
-
import { RiUpload2Line } from "react-icons/ri";
|
|
5
|
-
import { NumberField } from "../NumberField";
|
|
6
|
-
import { MultiSelectField } from "../SelectField";
|
|
7
|
-
import { ISerializedField, SerializedUploadField } from "../../typings";
|
|
8
|
-
export interface UploadFieldOptions extends ChildFieldOptions<File[]> {
|
|
9
|
-
extensions?: string[];
|
|
10
|
-
maximum_size?: number | string;
|
|
11
|
-
maximum_files?: number | string;
|
|
12
|
-
}
|
|
13
|
-
export declare const emptyUploadField: {
|
|
14
|
-
type: string;
|
|
15
|
-
extensions: never[];
|
|
16
|
-
maximum_size: undefined;
|
|
17
|
-
maximum_files: number;
|
|
18
|
-
label: string;
|
|
19
|
-
description: string;
|
|
20
|
-
required: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare class UploadField extends BaseField<File[], "upload"> {
|
|
23
|
-
static readonly fieldTypeName = "Upload";
|
|
24
|
-
static readonly fieldTypeDescription = "Allows a file to be uploaded.";
|
|
25
|
-
readonly extensions?: string[];
|
|
26
|
-
readonly maxFileSize: number | undefined;
|
|
27
|
-
readonly maxFiles: number;
|
|
28
|
-
readonly onlyValidateAfterTouched = false;
|
|
29
|
-
static Icon: typeof RiUpload2Line;
|
|
30
|
-
constructor(options: UploadFieldOptions);
|
|
31
|
-
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement>): File[];
|
|
32
|
-
protected isBlank(value: File[]): boolean;
|
|
33
|
-
static getFieldCreationSchema(parentPath?: string): ({
|
|
34
|
-
field: NumberField;
|
|
35
|
-
showDirectly: boolean;
|
|
36
|
-
} | {
|
|
37
|
-
field: MultiSelectField;
|
|
38
|
-
showDirectly: boolean;
|
|
39
|
-
})[];
|
|
40
|
-
getFieldValidators(): InputFieldLevelValidator<File[]>[];
|
|
41
|
-
serialize(): SerializedUploadField;
|
|
42
|
-
static deserialize(data: ISerializedField): UploadField;
|
|
43
|
-
getInput(props: GetInputProps<this>): ReactNode;
|
|
44
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { UploadField } from "./UploadField";
|
|
3
|
-
import { ComponentProps } from "../typings";
|
|
4
|
-
export declare const UploadInput: import("react").MemoExoticComponent<(props: ComponentProps<UploadField>) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const convertBytesToLargestUnit: (bytes: number) => string;
|