@zealicsolutions/web-ui 0.3.27 → 0.3.29

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.
@@ -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: ({ formStepName, order, conditionConfig, id, }: StepContainerProps) => JSX.Element | null;
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;
@@ -0,0 +1,2 @@
1
+ import { ContainerComponentProps } from 'containers';
2
+ export declare const getFormStepContainers: (items: ContainerComponentProps[]) => ContainerComponentProps[];
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ContainerComponentProps, Molecule } from 'containers';
3
- import { GroupedMoleculesByStep } from './utils';
3
+ import { GroupedStepItemsByStepContainer } from './utils';
4
4
  export declare type OrganismContextType = {
5
5
  items: (ContainerComponentProps | Molecule)[];
6
- getGroupedMoleculesByFormStep: () => GroupedMoleculesByStep;
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
- export declare type GroupedMoleculesByStep = Map<string, Molecule[]>;
3
- export declare const groupMoleculesByFormStep: (items: (ContainerComponentProps | Molecule)[]) => GroupedMoleculesByStep;
2
+ declare type StepItem = ContainerComponentProps | Molecule;
3
+ export declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
4
+ export declare const groupStepItemsByStepContainer: (items: StepItem[]) => GroupedStepItemsByStepContainer;
5
+ export {};