@overmap-ai/core 1.0.46 → 1.0.47
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/constants/ui.d.ts +0 -1
- package/dist/forms/fields/BooleanField/BooleanField.d.ts +2 -2
- package/dist/forms/fields/DateField/DateField.d.ts +2 -2
- package/dist/forms/fields/MultiStringField/MultiStringField.d.ts +2 -2
- package/dist/forms/fields/NumberField/NumberField.d.ts +2 -2
- package/dist/forms/fields/SelectField/MultiSelectField.d.ts +2 -2
- package/dist/forms/fields/SelectField/SelectField.d.ts +2 -2
- package/dist/forms/fields/StringOrTextFields/StringField/StringField.d.ts +2 -2
- package/dist/forms/fields/StringOrTextFields/TextField/TextField.d.ts +2 -2
- package/dist/forms/fields/UploadField/UploadField.d.ts +2 -2
- package/dist/overmap-core.js +263 -576
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +263 -575
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/package.json +2 -3
package/dist/constants/ui.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
2
2
|
import { ChangeEvent, ReactNode } from "react";
|
|
3
3
|
import { ComponentProps } from "../typings";
|
|
4
|
-
import {
|
|
4
|
+
import { RiCheckboxCircleLine } from "react-icons/ri";
|
|
5
5
|
import { ISerializedField, SerializedBooleanField } from "../../typings";
|
|
6
6
|
export declare const emptyBooleanField: {
|
|
7
7
|
type: string;
|
|
@@ -13,7 +13,7 @@ export declare class BooleanField extends BaseField<boolean, "boolean"> {
|
|
|
13
13
|
static readonly fieldTypeName = "Checkbox";
|
|
14
14
|
static readonly fieldTypeDescription = "Perfect for both optional and required yes/no questions.";
|
|
15
15
|
readonly onlyValidateAfterTouched = false;
|
|
16
|
-
static Icon: typeof
|
|
16
|
+
static Icon: typeof RiCheckboxCircleLine;
|
|
17
17
|
constructor(options: ChildFieldOptions<boolean>);
|
|
18
18
|
protected isBlank(value: boolean): boolean;
|
|
19
19
|
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | boolean): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ChangeEvent } from "react";
|
|
2
2
|
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
3
3
|
import { GetInputProps } from "../typings";
|
|
4
|
-
import {
|
|
4
|
+
import { RiCalendarLine } from "react-icons/ri";
|
|
5
5
|
import { ISerializedField, SerializedDateField } from "../../typings";
|
|
6
6
|
export declare const emptyDateField: {
|
|
7
7
|
type: string;
|
|
@@ -12,7 +12,7 @@ export declare const emptyDateField: {
|
|
|
12
12
|
export declare class DateField extends BaseField<string, "date"> {
|
|
13
13
|
static readonly fieldTypeName = "Date";
|
|
14
14
|
static readonly fieldTypeDescription = "Allows specifying a date.";
|
|
15
|
-
static Icon: typeof
|
|
15
|
+
static Icon: typeof RiCalendarLine;
|
|
16
16
|
readonly onlyValidateAfterTouched = false;
|
|
17
17
|
constructor(options: ChildFieldOptions<string>);
|
|
18
18
|
serialize(): SerializedDateField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
2
2
|
import { GetInputProps, InputFieldLevelValidator } from "../typings";
|
|
3
3
|
import { ChangeEvent, ReactNode } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { RiListCheck } from "react-icons/ri";
|
|
5
5
|
import { ISerializedField, SelectFieldOption, SerializedMultiStringField } from "../../typings";
|
|
6
6
|
type MultiStringFieldOptions = ChildFieldOptions<SelectFieldOption[]> & {
|
|
7
7
|
minimum_length?: number;
|
|
@@ -28,7 +28,7 @@ export declare class MultiStringField extends BaseField<SelectFieldOption[], "mu
|
|
|
28
28
|
readonly maxLength: number;
|
|
29
29
|
readonly onlyValidateAfterTouched = false;
|
|
30
30
|
readonly placeholder: string;
|
|
31
|
-
static Icon: typeof
|
|
31
|
+
static Icon: typeof RiListCheck;
|
|
32
32
|
constructor(options: MultiStringFieldOptions);
|
|
33
33
|
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | SelectFieldOption[]): SelectFieldOption[];
|
|
34
34
|
getInput(props: GetInputProps<this>): ReactNode;
|
|
@@ -2,7 +2,7 @@ import { BooleanField } from "../BooleanField";
|
|
|
2
2
|
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
3
3
|
import { GetInputProps, InputFieldLevelValidator, InputValidator } from "../typings";
|
|
4
4
|
import { ChangeEvent, ReactNode } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { RiHashtag } from "react-icons/ri";
|
|
6
6
|
import { ISerializedField, SerializedNumberField } from "../../typings";
|
|
7
7
|
export type NumberFieldValue = number | "";
|
|
8
8
|
export declare const emptyNumberField: {
|
|
@@ -27,7 +27,7 @@ export declare class NumberField extends BaseField<NumberFieldValue, "number"> {
|
|
|
27
27
|
readonly maximum: number | undefined;
|
|
28
28
|
readonly integers: boolean;
|
|
29
29
|
readonly placeholder: string;
|
|
30
|
-
static Icon: typeof
|
|
30
|
+
static Icon: typeof RiHashtag;
|
|
31
31
|
constructor(options: NumberFieldOptions);
|
|
32
32
|
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement>): NumberFieldValue;
|
|
33
33
|
static _validateMin: (path: string) => InputValidator<NumberFieldValue>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { GetInputProps } from "../typings";
|
|
3
3
|
import { BaseSelectField, BaseSelectFieldOptions } from "./BaseSelectField";
|
|
4
|
-
import {
|
|
4
|
+
import { RiCheckboxLine } from "react-icons/ri";
|
|
5
5
|
import { ISerializedField, SelectFieldOptionValue, SerializedMultiSelectField } from "../../typings";
|
|
6
6
|
/**
|
|
7
7
|
* The options passed to the constructor of MultiSelectField.
|
|
@@ -17,7 +17,7 @@ export declare const emptyMultiSelectField: {
|
|
|
17
17
|
export declare class MultiSelectField extends BaseSelectField<SelectFieldOptionValue[], "multi-select"> {
|
|
18
18
|
static readonly fieldTypeName = "Multi-select";
|
|
19
19
|
static readonly fieldTypeDescription = "Allows the user to select a multiple options from a list of options.";
|
|
20
|
-
static Icon: typeof
|
|
20
|
+
static Icon: typeof RiCheckboxLine;
|
|
21
21
|
constructor(options: MultiSelectFieldOptions);
|
|
22
22
|
getValueFromChangeEvent(event: React.ChangeEvent<HTMLInputElement> | string[]): string[];
|
|
23
23
|
protected isBlank(value: SelectFieldOptionValue[]): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode } from "react";
|
|
2
2
|
import { GetInputProps } from "../typings";
|
|
3
3
|
import { BaseSelectField, BaseSelectFieldOptions } from "./BaseSelectField";
|
|
4
|
-
import {
|
|
4
|
+
import { RiMenuFoldLine } from "react-icons/ri";
|
|
5
5
|
import { ISerializedField, SelectFieldOptionValue, SerializedSelectField } from "../../typings";
|
|
6
6
|
/**
|
|
7
7
|
* The options passed to the constructor of SelectField.
|
|
@@ -17,7 +17,7 @@ export declare const emptySelectField: {
|
|
|
17
17
|
export declare class SelectField extends BaseSelectField<SelectFieldOptionValue, "select"> {
|
|
18
18
|
static readonly fieldTypeName = "Dropdown";
|
|
19
19
|
static readonly fieldTypeDescription = "Allows the user to select a single option from a list of options.";
|
|
20
|
-
static Icon: typeof
|
|
20
|
+
static Icon: typeof RiMenuFoldLine;
|
|
21
21
|
constructor(options: SelectFieldOptions);
|
|
22
22
|
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | string): SelectFieldOptionValue;
|
|
23
23
|
serialize(): SerializedSelectField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { StringOrTextField, StringOrTextFieldOptions } from "../StringOrTextField";
|
|
3
3
|
import { GetInputProps } from "../../typings";
|
|
4
|
-
import {
|
|
4
|
+
import { RiInputField } from "react-icons/ri";
|
|
5
5
|
import { ISerializedField, SerializedStringField, StringInputType } from "../../../typings";
|
|
6
6
|
export interface StringFieldOptions extends Omit<StringOrTextFieldOptions, "type"> {
|
|
7
7
|
inputType?: StringInputType;
|
|
@@ -18,7 +18,7 @@ export declare class StringField extends StringOrTextField<"string"> {
|
|
|
18
18
|
static readonly fieldTypeName = "Short Text";
|
|
19
19
|
static readonly fieldTypeDescription = "Short text fields can hold up to 500 characters on a single line.";
|
|
20
20
|
readonly inputType: StringInputType;
|
|
21
|
-
static Icon: typeof
|
|
21
|
+
static Icon: typeof RiInputField;
|
|
22
22
|
constructor(options: StringFieldOptions);
|
|
23
23
|
serialize(): SerializedStringField;
|
|
24
24
|
static deserialize(data: ISerializedField): StringField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { StringOrTextField, StringOrTextFieldOptions } from "../StringOrTextField";
|
|
3
3
|
import { GetInputProps } from "../../typings";
|
|
4
|
-
import {
|
|
4
|
+
import { RiAlignJustify } from "react-icons/ri";
|
|
5
5
|
import { ISerializedField, SerializedTextField } from "../../../typings";
|
|
6
6
|
export type TextFieldOptions = Omit<StringOrTextFieldOptions, "type">;
|
|
7
7
|
export declare const emptyTextField: {
|
|
@@ -14,7 +14,7 @@ export declare const emptyTextField: {
|
|
|
14
14
|
export declare class TextField extends StringOrTextField<"text"> {
|
|
15
15
|
static readonly fieldTypeName = "Paragraph";
|
|
16
16
|
static readonly fieldTypeDescription = "Paragraph fields can hold up to 10000 characters and can have multiple lines.";
|
|
17
|
-
static Icon: typeof
|
|
17
|
+
static Icon: typeof RiAlignJustify;
|
|
18
18
|
constructor(options: TextFieldOptions);
|
|
19
19
|
serialize(): SerializedTextField;
|
|
20
20
|
static deserialize(data: ISerializedField): TextField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseField, ChildFieldOptions } from "../BaseField";
|
|
2
2
|
import { GetInputProps, InputFieldLevelValidator } from "../typings";
|
|
3
3
|
import { ChangeEvent, ReactNode } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { RiUpload2Line } from "react-icons/ri";
|
|
5
5
|
import { NumberField } from "../NumberField";
|
|
6
6
|
import { MultiSelectField } from "../SelectField";
|
|
7
7
|
import { ISerializedField, SerializedUploadField } from "../../typings";
|
|
@@ -26,7 +26,7 @@ export declare class UploadField extends BaseField<File[], "upload"> {
|
|
|
26
26
|
readonly maxFileSize: number | undefined;
|
|
27
27
|
readonly maxFiles: number;
|
|
28
28
|
readonly onlyValidateAfterTouched = false;
|
|
29
|
-
static Icon: typeof
|
|
29
|
+
static Icon: typeof RiUpload2Line;
|
|
30
30
|
constructor(options: UploadFieldOptions);
|
|
31
31
|
getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement>): File[];
|
|
32
32
|
protected isBlank(value: File[]): boolean;
|