@zealicsolutions/web-ui 0.3.26 → 0.3.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/FormStepContainer.d.ts +1 -1
- package/dist/cjs/src/containers/hooks/useCheckCondition.d.ts +6 -1
- package/dist/cjs/src/contexts/FormStepContext/utils.d.ts +2 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +2 -2
- package/dist/cjs/src/contexts/OrganismContext/utils.d.ts +4 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/FormStepContainer.d.ts +1 -1
- package/dist/esm/src/containers/hooks/useCheckCondition.d.ts +6 -1
- package/dist/esm/src/contexts/FormStepContext/utils.d.ts +2 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +2 -2
- package/dist/esm/src/contexts/OrganismContext/utils.d.ts +4 -2
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
@@ -3,4 +3,4 @@ import { FormStepContainerProps } from 'containers';
|
|
3
3
|
export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
|
4
4
|
id: string;
|
5
5
|
};
|
6
|
-
export declare const FormStepContainer: ({
|
6
|
+
export declare const FormStepContainer: ({ order, id }: StepContainerProps) => JSX.Element | null;
|
@@ -1,6 +1,11 @@
|
|
1
|
-
import { ConditionConfig } from 'containers/types/types';
|
1
|
+
import { ConditionConfig, ConditionCriteria } from 'containers/types/types';
|
2
2
|
import { AnyObject } from 'typescript';
|
3
3
|
/**
|
4
4
|
* @attention This hook needs to be used inside of the form container for the form fields
|
5
5
|
*/
|
6
6
|
export declare const useCheckCondition: (config?: ConditionConfig, formData?: AnyObject) => boolean;
|
7
|
+
export declare type GetEvaluateCriteriaFunctionParams = {
|
8
|
+
criteriaList?: ConditionCriteria[];
|
9
|
+
data?: AnyObject;
|
10
|
+
};
|
11
|
+
export declare const getEvaluateCriteriaFunction: ({ criteriaList, data, }: GetEvaluateCriteriaFunctionParams) => (criteria?: ConditionCriteria) => boolean;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
-
import {
|
3
|
+
import { GroupedStepItemsByStepContainer } from './utils';
|
4
4
|
export declare type OrganismContextType = {
|
5
5
|
items: (ContainerComponentProps | Molecule)[];
|
6
|
-
|
6
|
+
groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
|
7
7
|
};
|
8
8
|
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -1,3 +1,5 @@
|
|
1
1
|
import { ContainerComponentProps, Molecule } from 'containers';
|
2
|
-
|
3
|
-
export declare
|
2
|
+
declare type StepItem = ContainerComponentProps | Molecule;
|
3
|
+
export declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
|
4
|
+
export declare const groupStepItemsByStepContainer: (items: StepItem[]) => GroupedStepItemsByStepContainer;
|
5
|
+
export {};
|