@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.
- 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 {};
|
package/dist/index.d.ts
CHANGED
@@ -897,11 +897,12 @@ declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
|
|
897
897
|
}>>;
|
898
898
|
declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;
|
899
899
|
|
900
|
-
declare type
|
900
|
+
declare type StepItem = ContainerComponentProps$1 | Molecule$1;
|
901
|
+
declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
|
901
902
|
|
902
903
|
declare type OrganismContextType = {
|
903
904
|
items: (ContainerComponentProps$1 | Molecule$1)[];
|
904
|
-
|
905
|
+
groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
|
905
906
|
};
|
906
907
|
declare const OrganismContext: react.Context<OrganismContextType>;
|
907
908
|
|