@zealicsolutions/web-ui 0.3.95 → 0.3.97
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/FormStepContainer.d.ts +2 -0
- package/dist/cjs/src/containers/hooks/useSetFormData.d.ts +4 -1
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +10 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/FormStepContainer.d.ts +2 -0
- package/dist/esm/src/containers/hooks/useSetFormData.d.ts +4 -1
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +10 -1
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
@@ -1,7 +1,9 @@
|
|
1
1
|
import { FormStepContainerProps, MetadataType } from 'containers';
|
2
|
+
import { InputFieldTypes } from 'fieldsConfiguration';
|
2
3
|
import { PropsWithChildren } from 'react';
|
3
4
|
export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
|
4
5
|
id: string;
|
5
6
|
metadata?: MetadataType;
|
6
7
|
};
|
8
|
+
export declare const parsedDateValue: (value: string, type: InputFieldTypes) => string;
|
7
9
|
export declare const FormStepContainer: ({ order, id, metadata, formStepStyles, }: StepContainerProps) => JSX.Element | null;
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import { DataConnectionAttributes } from 'containers/types/moleculeTypes';
|
2
|
+
import { InputFieldTypes } from 'fieldsConfiguration';
|
2
3
|
import { Dispatch, SetStateAction } from 'react';
|
3
4
|
import { AnyObject } from 'typescript';
|
4
5
|
declare type UseSetFormDataProps<DefaultValueType> = Partial<{
|
5
6
|
defaultValue: DefaultValueType;
|
6
7
|
dataModelField: DataConnectionAttributes;
|
7
8
|
setFormData: Dispatch<SetStateAction<AnyObject>>;
|
9
|
+
inputType: InputFieldTypes;
|
8
10
|
}>;
|
9
|
-
export declare const useSetFormData: <DefaultValueType>({ setFormData, defaultValue, dataModelField, }: Partial<{
|
11
|
+
export declare const useSetFormData: <DefaultValueType>({ setFormData, defaultValue, dataModelField, inputType, }: Partial<{
|
10
12
|
defaultValue: DefaultValueType;
|
11
13
|
dataModelField: DataConnectionAttributes;
|
12
14
|
setFormData: Dispatch<SetStateAction<AnyObject>>;
|
15
|
+
inputType: InputFieldTypes;
|
13
16
|
}>) => void;
|
14
17
|
export {};
|
@@ -1,11 +1,20 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { ContainerComponentProps, Molecule } from 'containers';
|
2
|
+
import { InputFieldTypes } from 'fieldsConfiguration';
|
3
3
|
import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
|
4
|
+
import { Dispatch, SetStateAction } from 'react';
|
4
5
|
import { AnyObject } from 'typescript';
|
5
6
|
import { GroupedStepItemsByStepContainer } from './utils';
|
6
7
|
export declare type OrganismContextType = {
|
7
8
|
items: (ContainerComponentProps | Molecule)[];
|
8
9
|
groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
|
10
|
+
dateFields: {
|
11
|
+
id: string;
|
12
|
+
dateType: InputFieldTypes;
|
13
|
+
}[];
|
14
|
+
setDateFields: Dispatch<SetStateAction<{
|
15
|
+
id: string;
|
16
|
+
dateType: InputFieldTypes;
|
17
|
+
}[]>>;
|
9
18
|
formId?: string;
|
10
19
|
submitHandler?: (data: {
|
11
20
|
formId: string;
|