@vulcanjs/react-ui 0.6.8-alpha.1 → 0.6.9-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/VulcanComponents/Consumer.d.ts +0 -0
- package/dist/components/VulcanComponents/Consumer.d.ts.map +0 -0
- package/dist/components/VulcanComponents/Context.d.ts +0 -0
- package/dist/components/VulcanComponents/Context.d.ts.map +0 -0
- package/dist/components/VulcanComponents/Dummy.d.ts +0 -0
- package/dist/components/VulcanComponents/Dummy.d.ts.map +0 -0
- package/dist/components/VulcanComponents/Provider.d.ts +0 -0
- package/dist/components/VulcanComponents/Provider.d.ts.map +0 -0
- package/dist/components/VulcanComponents/defaultVulcanComponents/index.d.ts +0 -0
- package/dist/components/VulcanComponents/defaultVulcanComponents/index.d.ts.map +0 -0
- package/dist/components/VulcanComponents/index.d.ts +0 -0
- package/dist/components/VulcanComponents/index.d.ts.map +0 -0
- package/dist/components/VulcanComponents/typings.d.ts +0 -0
- package/dist/components/VulcanComponents/typings.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/Consumer.d.ts +0 -0
- package/dist/components/VulcanCurrentUser/Consumer.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/Context.d.ts +0 -0
- package/dist/components/VulcanCurrentUser/Context.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/Provider.d.ts +0 -0
- package/dist/components/VulcanCurrentUser/Provider.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/index.d.ts +0 -0
- package/dist/components/VulcanCurrentUser/index.d.ts.map +0 -0
- package/dist/components/core/LoadingButton.d.ts +0 -0
- package/dist/components/core/LoadingButton.d.ts.map +0 -0
- package/dist/components/core/MutationButton.d.ts +0 -0
- package/dist/components/core/MutationButton.d.ts.map +0 -0
- package/dist/components/core/index.d.ts +0 -0
- package/dist/components/core/index.d.ts.map +0 -0
- package/dist/components/core/typings.d.ts +0 -0
- package/dist/components/core/typings.d.ts.map +0 -0
- package/dist/components/form/core/Form/Form.d.ts +0 -0
- package/dist/components/form/core/Form/Form.d.ts.map +0 -0
- package/dist/components/form/core/Form/fields.d.ts +0 -0
- package/dist/components/form/core/Form/fields.d.ts.map +0 -0
- package/dist/components/form/core/Form/index.d.ts +0 -0
- package/dist/components/form/core/Form/index.d.ts.map +0 -0
- package/dist/components/form/core/Form/typings.d.ts +0 -0
- package/dist/components/form/core/Form/typings.d.ts.map +0 -0
- package/dist/components/form/core/Form/utils.d.ts +0 -0
- package/dist/components/form/core/Form/utils.d.ts.map +0 -0
- package/dist/components/form/core/FormContainer.d.ts +0 -0
- package/dist/components/form/core/FormContainer.d.ts.map +0 -0
- package/dist/components/form/core/FormContext.d.ts +0 -0
- package/dist/components/form/core/FormContext.d.ts.map +0 -0
- package/dist/components/form/core/index.d.ts +0 -0
- package/dist/components/form/core/index.d.ts.map +0 -0
- package/dist/components/form/hooks/useBlockTransition/block.d.ts +0 -0
- package/dist/components/form/hooks/useBlockTransition/block.d.ts.map +0 -0
- package/dist/components/form/hooks/useBlockTransition/useBlockTransition.d.ts +0 -0
- package/dist/components/form/hooks/useBlockTransition/useBlockTransition.d.ts.map +0 -0
- package/dist/components/form/hooks/useWarnOnUnsaved/index.d.ts +0 -0
- package/dist/components/form/hooks/useWarnOnUnsaved/index.d.ts.map +0 -0
- package/dist/components/form/hooks/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +0 -0
- package/dist/components/form/hooks/useWarnOnUnsaved/useWarnOnUnsaved.d.ts.map +0 -0
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/typings.d.ts +2 -0
- package/dist/components/form/typings.d.ts.map +1 -1
- package/dist/components/form/utils/formFragments.d.ts +0 -0
- package/dist/components/form/utils/formFragments.d.ts.map +0 -0
- package/dist/components/form/utils/index.d.ts +0 -0
- package/dist/components/form/utils/index.d.ts.map +0 -0
- package/dist/components/form/utils/path_utils.d.ts +0 -0
- package/dist/components/form/utils/path_utils.d.ts.map +0 -0
- package/dist/components/form/utils/schema_utils.d.ts +0 -0
- package/dist/components/form/utils/schema_utils.d.ts.map +0 -0
- package/dist/components/form/utils/ui_utils.d.ts +0 -0
- package/dist/components/form/utils/ui_utils.d.ts.map +0 -0
- package/dist/components/form/utils/utils.d.ts +0 -0
- package/dist/components/form/utils/utils.d.ts.map +0 -0
- package/dist/componentsHelpers.d.ts +0 -0
- package/dist/componentsHelpers.d.ts.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +0 -76
- package/dist/index.js.map +1 -1
- package/dist/testing/ExpectedErrorBoundary.d.ts +0 -0
- package/dist/testing/ExpectedErrorBoundary.d.ts.map +0 -0
- package/dist/testing.d.ts +0 -0
- package/dist/testing.d.ts.map +0 -0
- package/dist/testing.js +0 -0
- package/dist/testing.js.map +0 -0
- package/package.json +6 -6
- package/dist/components/Datatable/Datatable.d.ts +0 -39
- package/dist/components/Datatable/DatatableCell.d.ts +0 -26
- package/dist/components/Datatable/DatatableContents.d.ts +0 -53
- package/dist/components/Datatable/DatatableFilter.d.ts +0 -33
- package/dist/components/Datatable/DatatableHeader.d.ts +0 -23
- package/dist/components/Datatable/DatatableRow.d.ts +0 -25
- package/dist/components/Datatable/DatatableSelect.d.ts +0 -11
- package/dist/components/Datatable/DatatableSorter.d.ts +0 -8
- package/dist/components/Datatable/DatatableSubmitSelected.d.ts +0 -6
- package/dist/components/Datatable/others/DeleteButton.d.ts +0 -13
- package/dist/components/Datatable/others/EditButton.d.ts +0 -20
- package/dist/components/Datatable/others/NewButton.d.ts +0 -20
- package/dist/components/HeadTags.d.ts +0 -13
- package/dist/components/LoadingButton.d.ts +0 -11
- package/dist/components/MutationButton.d.ts +0 -20
- package/dist/components/VulcanComponents/defaultVulcanComponents/cellComponents.d.ts +0 -3
- package/dist/components/VulcanComponents/defaultVulcanComponents/coreComponents.d.ts +0 -3
- package/dist/components/VulcanComponents/defaultVulcanComponents/datatableComponents.d.ts +0 -3
- package/dist/components/VulcanComponents/defaultVulcanComponents/formComponents.d.ts +0 -3
- package/dist/components/bootstrap/Dropdown.d.ts +0 -24
- package/dist/components/bootstrap/Modal.d.ts +0 -25
- package/dist/components/bootstrap/ModalTrigger.d.ts +0 -18
- package/dist/components/bootstrap/TooltipTrigger.d.ts +0 -6
- package/dist/components/cell/CardItem.d.ts +0 -14
- package/dist/components/cell/CardItemArray.d.ts +0 -6
- package/dist/components/cell/CardItemDate.d.ts +0 -5
- package/dist/components/cell/CardItemDefault.d.ts +0 -5
- package/dist/components/cell/CardItemHTML.d.ts +0 -5
- package/dist/components/cell/CardItemImage.d.ts +0 -6
- package/dist/components/cell/CardItemNumber.d.ts +0 -5
- package/dist/components/cell/CardItemObject.d.ts +0 -3
- package/dist/components/cell/CardItemRelationHasMany.d.ts +0 -3
- package/dist/components/cell/CardItemRelationHasOne.d.ts +0 -3
- package/dist/components/cell/CardItemRelationItem.d.ts +0 -15
- package/dist/components/cell/CardItemString.d.ts +0 -5
- package/dist/components/cell/CardItemURL.d.ts +0 -6
- package/dist/components/core/Button.d.ts +0 -4
- package/dist/components/core/Loading.d.ts +0 -3
- package/dist/components/form/FieldErrors.d.ts +0 -6
- package/dist/components/form/Form/Form.d.ts +0 -4
- package/dist/components/form/Form/fields.d.ts +0 -22
- package/dist/components/form/Form/index.d.ts +0 -3
- package/dist/components/form/Form/typings.d.ts +0 -76
- package/dist/components/form/Form/utils.d.ts +0 -2
- package/dist/components/form/FormComponent.d.ts +0 -31
- package/dist/components/form/FormComponentInner.d.ts +0 -32
- package/dist/components/form/FormComponentLoader.d.ts +0 -15
- package/dist/components/form/FormContainer.d.ts +0 -18
- package/dist/components/form/FormContext.d.ts +0 -25
- package/dist/components/form/FormElement.d.ts +0 -4
- package/dist/components/form/FormError.d.ts +0 -11
- package/dist/components/form/FormErrors.d.ts +0 -3
- package/dist/components/form/FormGroup.d.ts +0 -30
- package/dist/components/form/FormIntl.d.ts +0 -15
- package/dist/components/form/FormLayout.d.ts +0 -10
- package/dist/components/form/FormNestedArray.d.ts +0 -26
- package/dist/components/form/FormNestedArrayLayout.d.ts +0 -18
- package/dist/components/form/FormNestedDivider.d.ts +0 -13
- package/dist/components/form/FormNestedItem.d.ts +0 -52
- package/dist/components/form/FormNestedObject.d.ts +0 -35
- package/dist/components/form/FormOptionLabel.d.ts +0 -5
- package/dist/components/form/FormSubmit.d.ts +0 -38
- package/dist/components/form/core/Button.d.ts +0 -4
- package/dist/components/form/core/FormComponent.d.ts +0 -31
- package/dist/components/form/core/FormComponentInner.d.ts +0 -32
- package/dist/components/form/core/FormComponentLoader.d.ts +0 -15
- package/dist/components/form/core/FormGroup.d.ts +0 -30
- package/dist/components/form/core/Loading.d.ts +0 -3
- package/dist/components/form/elements/FieldErrors.d.ts +0 -5
- package/dist/components/form/elements/FormElement.d.ts +0 -4
- package/dist/components/form/elements/FormError.d.ts +0 -11
- package/dist/components/form/elements/FormErrors.d.ts +0 -3
- package/dist/components/form/elements/FormLayout.d.ts +0 -10
- package/dist/components/form/elements/FormSubmit.d.ts +0 -38
- package/dist/components/form/elements/index.d.ts +0 -7
- package/dist/components/form/inputs/AutocompleteMultiple.d.ts +0 -6
- package/dist/components/form/inputs/BasicInputs.d.ts +0 -16
- package/dist/components/form/inputs/Checkboxgroup.d.ts +0 -9
- package/dist/components/form/inputs/FormItem.d.ts +0 -4
- package/dist/components/form/inputs/FormOptionLabel.d.ts +0 -7
- package/dist/components/form/inputs/RadioGroup.d.ts +0 -4
- package/dist/components/form/inputs/SelectInputs.d.ts +0 -5
- package/dist/components/form/inputs/consts.d.ts +0 -9
- package/dist/components/form/inputs/index.d.ts +0 -8
- package/dist/components/form/intl/FormIntl.d.ts +0 -15
- package/dist/components/form/modules/formFragments.d.ts +0 -16
- package/dist/components/form/modules/path_utils.d.ts +0 -6
- package/dist/components/form/modules/schema_utils.d.ts +0 -14
- package/dist/components/form/modules/utils.d.ts +0 -17
- package/dist/components/form/nested/FormNestedArray.d.ts +0 -26
- package/dist/components/form/nested/FormNestedArrayLayout.d.ts +0 -18
- package/dist/components/form/nested/FormNestedDivider.d.ts +0 -13
- package/dist/components/form/nested/FormNestedItem.d.ts +0 -52
- package/dist/components/form/nested/FormNestedObject.d.ts +0 -35
- package/dist/components/form/nested/index.d.ts +0 -6
- package/dist/components/form/ui_utils.d.ts +0 -3
- package/dist/components/form/useBlockTransition/block.d.ts +0 -4
- package/dist/components/form/useBlockTransition/useBlockTransition.d.ts +0 -5
- package/dist/components/form/useWarnOnUnsaved/index.d.ts +0 -2
- package/dist/components/form/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +0 -5
- package/dist/decorators/autocomplete.d.ts +0 -8
- package/dist/decorators/index.d.ts +0 -4
@@ -1,76 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { CreateVariables, UpdateVariables, DeleteVariables } from "@vulcanjs/crud";
|
3
|
-
import { VulcanModel } from "@vulcanjs/model";
|
4
|
-
import { VulcanUser } from "@vulcanjs/permissions";
|
5
|
-
import { VulcanSchema } from "@vulcanjs/schema";
|
6
|
-
import { DocumentNode } from "graphql";
|
7
|
-
export interface FormState {
|
8
|
-
schema: any;
|
9
|
-
initialDocument: Object;
|
10
|
-
currentDocument: Object;
|
11
|
-
deletedValues: any;
|
12
|
-
errors: any;
|
13
|
-
currentValues: any;
|
14
|
-
disabled: any;
|
15
|
-
success?: any;
|
16
|
-
flatSchema: any;
|
17
|
-
originalSchema: any;
|
18
|
-
}
|
19
|
-
export interface PassedDownFormProps {
|
20
|
-
itemProperties?: Object;
|
21
|
-
showDelete?: boolean;
|
22
|
-
disabled?: boolean;
|
23
|
-
warnUnsavedChanges?: boolean;
|
24
|
-
submitCallback?: (data: any) => any;
|
25
|
-
successCallback?: (document: any, meta: {
|
26
|
-
form: any;
|
27
|
-
}) => void;
|
28
|
-
errorCallback?: (document: any, error: any, meta: {
|
29
|
-
form: any;
|
30
|
-
}) => void;
|
31
|
-
queryFragment?: DocumentNode | string;
|
32
|
-
mutationFragment?: DocumentNode | string;
|
33
|
-
queryFragmentName?: string;
|
34
|
-
mutationFragmentName?: string;
|
35
|
-
}
|
36
|
-
export interface FormProps<TModel = {
|
37
|
-
[key in string]: any;
|
38
|
-
}> extends PassedDownFormProps {
|
39
|
-
refetch?: () => void;
|
40
|
-
id?: string;
|
41
|
-
model: VulcanModel;
|
42
|
-
schema?: VulcanSchema;
|
43
|
-
document?: any;
|
44
|
-
currentUser?: VulcanUser;
|
45
|
-
addFields?: Array<string>;
|
46
|
-
removeFields?: Array<string>;
|
47
|
-
contextName?: string;
|
48
|
-
cancelLabel?: string;
|
49
|
-
revertLabel?: string;
|
50
|
-
revertCallback?: Function;
|
51
|
-
successComponent?: any;
|
52
|
-
documentId?: string;
|
53
|
-
fields?: Array<keyof TModel>;
|
54
|
-
submitLabel?: string;
|
55
|
-
layout?: "horizontal" | "vertical";
|
56
|
-
showRemove?: boolean;
|
57
|
-
prefilledProps?: TModel & Object;
|
58
|
-
repeatErrors?: boolean;
|
59
|
-
initCallback?: Function;
|
60
|
-
cancelCallback?: (document: any) => void;
|
61
|
-
removeSuccessCallback?: (document: any) => void;
|
62
|
-
changeCallback: (currentDocument: any) => void;
|
63
|
-
createDocument: <TModel = any>(createVars: CreateVariables) => Promise<CreateDocumentResult<TModel>>;
|
64
|
-
updateDocument: <TModel = any>(vars: UpdateVariables) => Promise<UpdateDocumentResult<TModel>>;
|
65
|
-
deleteDocument: (vars: DeleteVariables) => Promise<void>;
|
66
|
-
children?: React.ReactNode;
|
67
|
-
}
|
68
|
-
export interface CreateDocumentResult<TDocument = any> {
|
69
|
-
document: TDocument;
|
70
|
-
errors: Array<any>;
|
71
|
-
}
|
72
|
-
export interface UpdateDocumentResult<TDocument = any> {
|
73
|
-
document: TDocument;
|
74
|
-
errors: Array<any>;
|
75
|
-
}
|
76
|
-
//# sourceMappingURL=typings.d.ts.map
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import type { PossibleVulcanComponents } from "../VulcanComponents/typings";
|
3
|
-
import { FormField } from "./typings";
|
4
|
-
import { VulcanFieldInput, VulcanFieldType } from "@vulcanjs/schema";
|
5
|
-
export declare type FormOption<TField = any> = {
|
6
|
-
label: string;
|
7
|
-
value: TField;
|
8
|
-
checked?: boolean;
|
9
|
-
};
|
10
|
-
export interface FormComponentProps<TField = any> extends Omit<FormField, "type"> {
|
11
|
-
document: any;
|
12
|
-
datatype: VulcanFieldType;
|
13
|
-
disabled: boolean;
|
14
|
-
errors: Array<any>;
|
15
|
-
help?: string;
|
16
|
-
path: string;
|
17
|
-
defaultValue?: TField;
|
18
|
-
max?: number;
|
19
|
-
locale?: string;
|
20
|
-
input?: VulcanFieldInput | string | React.Component;
|
21
|
-
formType: "new" | "edit";
|
22
|
-
intlInput?: boolean;
|
23
|
-
nestedInput?: boolean;
|
24
|
-
query?: string;
|
25
|
-
options?: Array<FormOption> | ((fciProps?: any) => Array<FormOption>);
|
26
|
-
vulcanComponents?: PossibleVulcanComponents;
|
27
|
-
}
|
28
|
-
export declare const FormComponent: (props: FormComponentProps) => JSX.Element;
|
29
|
-
export declare const formComponentsDependencies: string[];
|
30
|
-
export default FormComponent;
|
31
|
-
//# sourceMappingURL=FormComponent.d.ts.map
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import React, { MouseEventHandler } from "react";
|
2
|
-
import { FormComponentProps } from "./FormComponent";
|
3
|
-
import { VulcanCoreInput } from "@vulcanjs/schema";
|
4
|
-
import { PossibleVulcanComponents } from "../VulcanComponents/typings";
|
5
|
-
export interface FormComponentInnerProps extends FormComponentProps {
|
6
|
-
inputType: VulcanCoreInput;
|
7
|
-
clearField?: MouseEventHandler<HTMLButtonElement>;
|
8
|
-
handleChange?: Function;
|
9
|
-
itemProperties?: any;
|
10
|
-
description?: string;
|
11
|
-
loading?: boolean;
|
12
|
-
submitForm: any;
|
13
|
-
formComponents: PossibleVulcanComponents;
|
14
|
-
intlKeys?: any;
|
15
|
-
inputClassName: any;
|
16
|
-
name?: string;
|
17
|
-
input: any;
|
18
|
-
beforeComponent: any;
|
19
|
-
afterComponent: any;
|
20
|
-
errors: any;
|
21
|
-
showCharsRemaining: any;
|
22
|
-
charsRemaining: any;
|
23
|
-
renderComponent: any;
|
24
|
-
formInput: any;
|
25
|
-
}
|
26
|
-
export declare const FormComponentInner: (props: FormComponentInnerProps) => JSX.Element;
|
27
|
-
export interface FormInputProps<TInput = HTMLInputElement> extends FormComponentInnerProps {
|
28
|
-
inputProperties: React.HTMLProps<TInput>;
|
29
|
-
itemProperties: any;
|
30
|
-
}
|
31
|
-
export declare type FormTextAreaProps = FormInputProps<HTMLTextAreaElement>;
|
32
|
-
//# sourceMappingURL=FormComponentInner.d.ts.map
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export interface FormComponentLoaderProps {
|
3
|
-
query: string | (({ value: any }: {
|
4
|
-
value: any;
|
5
|
-
}) => string);
|
6
|
-
children: React.ReactNode;
|
7
|
-
options: any;
|
8
|
-
value: any;
|
9
|
-
queryWaitsForValue?: boolean;
|
10
|
-
}
|
11
|
-
export declare const FormComponentLoader: {
|
12
|
-
(props: FormComponentLoaderProps): JSX.Element;
|
13
|
-
propTypes: {};
|
14
|
-
};
|
15
|
-
//# sourceMappingURL=FormComponentLoader.d.ts.map
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { VulcanGraphqlModel } from "@vulcanjs/graphql";
|
3
|
-
import { VulcanUser } from "@vulcanjs/permissions";
|
4
|
-
import { PassedDownFormProps } from "./Form/typings";
|
5
|
-
export interface FormContainerProps extends PassedDownFormProps {
|
6
|
-
model: VulcanGraphqlModel;
|
7
|
-
documentId?: string;
|
8
|
-
slug?: string;
|
9
|
-
fields?: Array<string>;
|
10
|
-
addFields?: Array<string>;
|
11
|
-
currentUser?: VulcanUser | null;
|
12
|
-
loadingCurrentUser?: boolean;
|
13
|
-
}
|
14
|
-
export declare type SmartFormProps = FormContainerProps;
|
15
|
-
export declare const FormContainer: (props: FormContainerProps) => JSX.Element;
|
16
|
-
export declare const SmartForm: (props: FormContainerProps) => JSX.Element;
|
17
|
-
export default FormContainer;
|
18
|
-
//# sourceMappingURL=FormContainer.d.ts.map
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
interface FormContextValue {
|
3
|
-
addToDeletedValues: Function;
|
4
|
-
addToFailureForm: Function;
|
5
|
-
addToSubmitForm: Function;
|
6
|
-
addToSuccessForm: Function;
|
7
|
-
clearForm: Function;
|
8
|
-
clearFormCallbacks: Function;
|
9
|
-
clearFieldErrors: Function;
|
10
|
-
currentValues: object;
|
11
|
-
deletedValues: Array<any>;
|
12
|
-
errors: Array<any>;
|
13
|
-
getDocument: Function;
|
14
|
-
getLabel: (fieldName: string, fieldLocale?: string) => string;
|
15
|
-
initialDocument: object;
|
16
|
-
isChanged: boolean;
|
17
|
-
refetchForm: Function;
|
18
|
-
submitForm: Function;
|
19
|
-
throwError: Function;
|
20
|
-
updateCurrentValues: Function;
|
21
|
-
}
|
22
|
-
export declare const FormContext: React.Context<FormContextValue | undefined>;
|
23
|
-
export declare const useFormContext: () => FormContextValue;
|
24
|
-
export {};
|
25
|
-
//# sourceMappingURL=FormContext.d.ts.map
|
@@ -1,30 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { VulcanUser } from "@vulcanjs/permissions";
|
3
|
-
import { FieldGroup } from "@vulcanjs/schema";
|
4
|
-
import { FormField } from "./typings";
|
5
|
-
export interface FormGroupProps {
|
6
|
-
name: string;
|
7
|
-
label: string;
|
8
|
-
group: FieldGroup;
|
9
|
-
fields: Array<FormField>;
|
10
|
-
hidden?: boolean | Function;
|
11
|
-
disabled?: boolean;
|
12
|
-
document: any;
|
13
|
-
currentUser?: VulcanUser;
|
14
|
-
itemProperties: any;
|
15
|
-
formType: any;
|
16
|
-
prefilledProps: any;
|
17
|
-
}
|
18
|
-
export declare const FormGroupLayout: ({ anchorName, collapsed, hasErrors, group, document, toggle, ...props }: {
|
19
|
-
[x: string]: any;
|
20
|
-
anchorName: any;
|
21
|
-
collapsed: any;
|
22
|
-
hasErrors: any;
|
23
|
-
group: any;
|
24
|
-
document: any;
|
25
|
-
toggle: any;
|
26
|
-
}) => JSX.Element;
|
27
|
-
export declare const FormGroupHeader: (props: any) => JSX.Element;
|
28
|
-
export declare const FormGroup: (props: FormGroupProps) => JSX.Element | null;
|
29
|
-
export default FormGroup;
|
30
|
-
//# sourceMappingURL=FormGroup.d.ts.map
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const FormIntlLayout: ({ children }: {
|
3
|
-
children: any;
|
4
|
-
}) => JSX.Element;
|
5
|
-
export declare const FormIntlItemLayout: ({ locale, children }: {
|
6
|
-
locale: any;
|
7
|
-
children: any;
|
8
|
-
}) => JSX.Element;
|
9
|
-
interface FormIntlProps {
|
10
|
-
path: string;
|
11
|
-
name: string;
|
12
|
-
}
|
13
|
-
export declare const FormIntl: (props: FormIntlProps) => JSX.Element;
|
14
|
-
export {};
|
15
|
-
//# sourceMappingURL=FormIntl.d.ts.map
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export interface FormLayoutProps {
|
3
|
-
commonProps: any;
|
4
|
-
formProps: any;
|
5
|
-
submitProps: any;
|
6
|
-
repeatErrors?: boolean;
|
7
|
-
}
|
8
|
-
export declare const FormLayout: React.FC<FormLayoutProps>;
|
9
|
-
export declare const formComponentsDependencies: string[];
|
10
|
-
//# sourceMappingURL=FormLayout.d.ts.map
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const FormNestedArrayInnerLayout: (props: any) => JSX.Element;
|
3
|
-
export interface FormNestedArrayProps<TValue = any> {
|
4
|
-
value: TValue;
|
5
|
-
path: string;
|
6
|
-
itemProperties: any;
|
7
|
-
minCount?: number;
|
8
|
-
maxCount?: number;
|
9
|
-
arrayField?: boolean;
|
10
|
-
nestedArrayErrors: any;
|
11
|
-
hasErrors?: boolean;
|
12
|
-
prefilledProps?: any;
|
13
|
-
addItem: Function | null;
|
14
|
-
}
|
15
|
-
export declare const FormNestedArray: (props: FormNestedArrayProps) => JSX.Element;
|
16
|
-
export declare const formComponentsDependencies: string[];
|
17
|
-
export default FormNestedArray;
|
18
|
-
export declare const IconAdd: ({ width, height }: {
|
19
|
-
width?: number | undefined;
|
20
|
-
height?: number | undefined;
|
21
|
-
}) => JSX.Element;
|
22
|
-
export declare const IconRemove: ({ width, height }: {
|
23
|
-
width?: number | undefined;
|
24
|
-
height?: number | undefined;
|
25
|
-
}) => JSX.Element;
|
26
|
-
//# sourceMappingURL=FormNestedArray.d.ts.map
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import PropTypes from "prop-types";
|
3
|
-
export declare const FormNestedArrayLayout: {
|
4
|
-
(props: any): JSX.Element;
|
5
|
-
propTypes: {
|
6
|
-
hasErrors: PropTypes.Validator<boolean>;
|
7
|
-
nestedArrayErrors: PropTypes.Requireable<any[]>;
|
8
|
-
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
9
|
-
hideLabel: PropTypes.Requireable<boolean>;
|
10
|
-
addItem: PropTypes.Requireable<(...args: any[]) => any>;
|
11
|
-
beforeComponent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
12
|
-
afterComponent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
13
|
-
formComponents: PropTypes.Requireable<object>;
|
14
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
export default FormNestedArrayLayout;
|
18
|
-
//# sourceMappingURL=FormNestedArrayLayout.d.ts.map
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import PropTypes from "prop-types";
|
3
|
-
export declare const FormNestedDivider: {
|
4
|
-
({ label, addItem }: {
|
5
|
-
label: any;
|
6
|
-
addItem: any;
|
7
|
-
}): JSX.Element;
|
8
|
-
propTypes: {
|
9
|
-
label: PropTypes.Requireable<string>;
|
10
|
-
addItem: PropTypes.Requireable<(...args: any[]) => any>;
|
11
|
-
};
|
12
|
-
};
|
13
|
-
//# sourceMappingURL=FormNestedDivider.d.ts.map
|
@@ -1,52 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import PropTypes from "prop-types";
|
3
|
-
export declare const FormNestedItemLayout: {
|
4
|
-
({ content, removeButton }: {
|
5
|
-
content: any;
|
6
|
-
removeButton: any;
|
7
|
-
}): JSX.Element;
|
8
|
-
propTypes: {
|
9
|
-
content: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
10
|
-
removeButton: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
11
|
-
};
|
12
|
-
};
|
13
|
-
export declare const FormNestedItem: {
|
14
|
-
({ nestedFields, name, path, removeItem, itemIndex, formComponents, hideRemove, label, ...props }: {
|
15
|
-
[x: string]: any;
|
16
|
-
nestedFields: any;
|
17
|
-
name: any;
|
18
|
-
path: any;
|
19
|
-
removeItem: any;
|
20
|
-
itemIndex: any;
|
21
|
-
formComponents: any;
|
22
|
-
hideRemove: any;
|
23
|
-
label: any;
|
24
|
-
}): JSX.Element;
|
25
|
-
propTypes: {
|
26
|
-
path: PropTypes.Validator<string>;
|
27
|
-
itemIndex: PropTypes.Requireable<number>;
|
28
|
-
formComponents: PropTypes.Requireable<object>;
|
29
|
-
hideRemove: PropTypes.Requireable<boolean>;
|
30
|
-
};
|
31
|
-
contextTypes: {
|
32
|
-
errors: PropTypes.Requireable<any[]>;
|
33
|
-
intl: PropTypes.Requireable<PropTypes.InferProps<{
|
34
|
-
formatters: PropTypes.Requireable<object>;
|
35
|
-
now: PropTypes.Validator<(...args: any[]) => any>;
|
36
|
-
formatDate: PropTypes.Validator<(...args: any[]) => any>;
|
37
|
-
formatTime: PropTypes.Validator<(...args: any[]) => any>;
|
38
|
-
formatRelative: PropTypes.Validator<(...args: any[]) => any>;
|
39
|
-
formatNumber: PropTypes.Validator<(...args: any[]) => any>;
|
40
|
-
formatPlural: PropTypes.Validator<(...args: any[]) => any>;
|
41
|
-
formatMessage: PropTypes.Validator<(...args: any[]) => any>;
|
42
|
-
formatHTMLMessage: PropTypes.Validator<(...args: any[]) => any>;
|
43
|
-
locale: PropTypes.Requireable<string>;
|
44
|
-
formats: PropTypes.Requireable<object>;
|
45
|
-
messages: PropTypes.Requireable<object>;
|
46
|
-
textComponent: PropTypes.Requireable<any>;
|
47
|
-
defaultLocale: PropTypes.Requireable<string>;
|
48
|
-
defaultFormats: PropTypes.Requireable<object>;
|
49
|
-
}>>;
|
50
|
-
};
|
51
|
-
};
|
52
|
-
//# sourceMappingURL=FormNestedItem.d.ts.map
|
@@ -1,35 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import PropTypes from "prop-types";
|
3
|
-
export declare const FormNestedObjectLayout: {
|
4
|
-
({ hasErrors, label, content }: {
|
5
|
-
hasErrors: any;
|
6
|
-
label: any;
|
7
|
-
content: any;
|
8
|
-
}): JSX.Element;
|
9
|
-
propTypes: {
|
10
|
-
hasErrors: PropTypes.Requireable<number | boolean>;
|
11
|
-
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
12
|
-
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
interface FormNestedObjectProps {
|
16
|
-
label?: string;
|
17
|
-
value: any;
|
18
|
-
input: any;
|
19
|
-
inputProperties: any;
|
20
|
-
nestedInput: any;
|
21
|
-
errors: Array<any>;
|
22
|
-
path: string;
|
23
|
-
}
|
24
|
-
export declare const FormNestedObject: {
|
25
|
-
(props: FormNestedObjectProps): JSX.Element;
|
26
|
-
propTypes: {
|
27
|
-
currentValues: PropTypes.Requireable<object>;
|
28
|
-
path: PropTypes.Requireable<string>;
|
29
|
-
label: PropTypes.Requireable<string>;
|
30
|
-
errors: PropTypes.Validator<any[]>;
|
31
|
-
formComponents: PropTypes.Requireable<object>;
|
32
|
-
};
|
33
|
-
};
|
34
|
-
export default FormNestedObject;
|
35
|
-
//# sourceMappingURL=FormNestedObject.d.ts.map
|
@@ -1,38 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import PropTypes from "prop-types";
|
3
|
-
export interface FormSubmitProps {
|
4
|
-
submitLabel: any;
|
5
|
-
cancelLabel: any;
|
6
|
-
cancelCallback: any;
|
7
|
-
revertLabel: any;
|
8
|
-
revertCallback: any;
|
9
|
-
document: any;
|
10
|
-
deleteDocument: any;
|
11
|
-
model: any;
|
12
|
-
currentUser: any;
|
13
|
-
}
|
14
|
-
export declare const FormSubmit: {
|
15
|
-
({ submitLabel, cancelLabel, cancelCallback, revertLabel, revertCallback, document, deleteDocument, model, currentUser, }: {
|
16
|
-
submitLabel: any;
|
17
|
-
cancelLabel: any;
|
18
|
-
cancelCallback: any;
|
19
|
-
revertLabel: any;
|
20
|
-
revertCallback: any;
|
21
|
-
document: any;
|
22
|
-
deleteDocument: any;
|
23
|
-
model: any;
|
24
|
-
currentUser: any;
|
25
|
-
}): JSX.Element;
|
26
|
-
propTypes: {
|
27
|
-
submitLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
28
|
-
cancelLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
29
|
-
cancelCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
30
|
-
revertLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
31
|
-
revertCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
32
|
-
document: PropTypes.Requireable<object>;
|
33
|
-
deleteDocument: PropTypes.Requireable<(...args: any[]) => any>;
|
34
|
-
collectionName: PropTypes.Requireable<string>;
|
35
|
-
classes: PropTypes.Requireable<object>;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
//# sourceMappingURL=FormSubmit.d.ts.map
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import type { PossibleVulcanComponents } from "../../VulcanComponents/typings";
|
3
|
-
import { FormField } from "../typings";
|
4
|
-
import { VulcanFieldInput, VulcanFieldType } from "@vulcanjs/schema";
|
5
|
-
export declare type FormOption<TField = any> = {
|
6
|
-
label: string;
|
7
|
-
value: TField;
|
8
|
-
checked?: boolean;
|
9
|
-
};
|
10
|
-
export interface FormComponentProps<TField = any> extends Omit<FormField, "type"> {
|
11
|
-
document: any;
|
12
|
-
datatype: VulcanFieldType;
|
13
|
-
disabled: boolean;
|
14
|
-
errors: Array<any>;
|
15
|
-
help?: string;
|
16
|
-
path: string;
|
17
|
-
defaultValue?: TField;
|
18
|
-
max?: number;
|
19
|
-
locale?: string;
|
20
|
-
input?: VulcanFieldInput | string | React.Component;
|
21
|
-
formType: "new" | "edit";
|
22
|
-
intlInput?: boolean;
|
23
|
-
nestedInput?: boolean;
|
24
|
-
query?: string;
|
25
|
-
options?: Array<FormOption> | ((fciProps?: any) => Array<FormOption>);
|
26
|
-
vulcanComponents?: PossibleVulcanComponents;
|
27
|
-
}
|
28
|
-
export declare const FormComponent: (props: FormComponentProps) => JSX.Element;
|
29
|
-
export declare const formComponentsDependencies: string[];
|
30
|
-
export default FormComponent;
|
31
|
-
//# sourceMappingURL=FormComponent.d.ts.map
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import React, { MouseEventHandler } from "react";
|
2
|
-
import { FormComponentProps } from "./FormComponent";
|
3
|
-
import { VulcanCoreInput } from "@vulcanjs/schema";
|
4
|
-
import { PossibleVulcanComponents } from "../../VulcanComponents/typings";
|
5
|
-
export interface FormComponentInnerProps extends FormComponentProps {
|
6
|
-
inputType: VulcanCoreInput;
|
7
|
-
clearField?: MouseEventHandler<HTMLButtonElement>;
|
8
|
-
handleChange?: Function;
|
9
|
-
itemProperties?: any;
|
10
|
-
description?: string;
|
11
|
-
loading?: boolean;
|
12
|
-
submitForm: any;
|
13
|
-
formComponents: PossibleVulcanComponents;
|
14
|
-
intlKeys?: any;
|
15
|
-
inputClassName: any;
|
16
|
-
name?: string;
|
17
|
-
input: any;
|
18
|
-
beforeComponent: any;
|
19
|
-
afterComponent: any;
|
20
|
-
errors: any;
|
21
|
-
showCharsRemaining: any;
|
22
|
-
charsRemaining: any;
|
23
|
-
renderComponent: any;
|
24
|
-
formInput: any;
|
25
|
-
}
|
26
|
-
export declare const FormComponentInner: (props: FormComponentInnerProps) => JSX.Element;
|
27
|
-
export interface FormInputProps<TInput = HTMLInputElement> extends FormComponentInnerProps {
|
28
|
-
inputProperties: React.HTMLProps<TInput>;
|
29
|
-
itemProperties: any;
|
30
|
-
}
|
31
|
-
export declare type FormTextAreaProps = FormInputProps<HTMLTextAreaElement>;
|
32
|
-
//# sourceMappingURL=FormComponentInner.d.ts.map
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export interface FormComponentLoaderProps {
|
3
|
-
query: string | (({ value: any }: {
|
4
|
-
value: any;
|
5
|
-
}) => string);
|
6
|
-
children: React.ReactNode;
|
7
|
-
options: any;
|
8
|
-
value: any;
|
9
|
-
queryWaitsForValue?: boolean;
|
10
|
-
}
|
11
|
-
export declare const FormComponentLoader: {
|
12
|
-
(props: FormComponentLoaderProps): JSX.Element;
|
13
|
-
propTypes: {};
|
14
|
-
};
|
15
|
-
//# sourceMappingURL=FormComponentLoader.d.ts.map
|
@@ -1,30 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { VulcanUser } from "@vulcanjs/permissions";
|
3
|
-
import { FieldGroup } from "@vulcanjs/schema";
|
4
|
-
import { FormField } from "../typings";
|
5
|
-
export interface FormGroupProps {
|
6
|
-
name: string;
|
7
|
-
label: string;
|
8
|
-
group: FieldGroup;
|
9
|
-
fields: Array<FormField>;
|
10
|
-
hidden?: boolean | Function;
|
11
|
-
disabled?: boolean;
|
12
|
-
document: any;
|
13
|
-
currentUser?: VulcanUser;
|
14
|
-
itemProperties: any;
|
15
|
-
formType: any;
|
16
|
-
prefilledProps: any;
|
17
|
-
}
|
18
|
-
export declare const FormGroupLayout: ({ anchorName, collapsed, hasErrors, group, document, toggle, ...props }: {
|
19
|
-
[x: string]: any;
|
20
|
-
anchorName: any;
|
21
|
-
collapsed: any;
|
22
|
-
hasErrors: any;
|
23
|
-
group: any;
|
24
|
-
document: any;
|
25
|
-
toggle: any;
|
26
|
-
}) => JSX.Element;
|
27
|
-
export declare const FormGroupHeader: (props: any) => JSX.Element;
|
28
|
-
export declare const FormGroup: (props: FormGroupProps) => JSX.Element | null;
|
29
|
-
export default FormGroup;
|
30
|
-
//# sourceMappingURL=FormGroup.d.ts.map
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export interface FormLayoutProps {
|
3
|
-
commonProps: any;
|
4
|
-
formProps: any;
|
5
|
-
submitProps: any;
|
6
|
-
repeatErrors?: boolean;
|
7
|
-
}
|
8
|
-
export declare const FormLayout: React.FC<FormLayoutProps>;
|
9
|
-
export declare const formComponentsDependencies: string[];
|
10
|
-
//# sourceMappingURL=FormLayout.d.ts.map
|