@zealicsolutions/web-ui 1.1.69 → 1.1.71
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/containers/types/moleculeTypes.d.ts +18 -4
- package/dist/cjs/helpers/usePrefillDataCaptureValue.d.ts +1 -1
- package/dist/cjs/index.js +87 -87
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Button/types.d.ts +14 -1
- package/dist/esm/containers/types/moleculeTypes.d.ts +18 -4
- package/dist/esm/contexts/StateContext/StateContextProvider.js +1 -1
- package/dist/esm/contexts/StateContext/StateContextProvider.js.map +1 -1
- package/dist/esm/helpers/useDataResolution.js +1 -1
- package/dist/esm/helpers/useDataResolution.js.map +1 -1
- package/dist/esm/helpers/usePrefillDataCaptureValue.d.ts +1 -1
- package/dist/esm/helpers/usePrefillDataCaptureValue.js +1 -1
- package/dist/esm/helpers/usePrefillDataCaptureValue.js.map +1 -1
- package/dist/esm/molecules/Button/Button.js +1 -1
- package/dist/esm/molecules/Button/Button.js.map +1 -1
- package/dist/esm/molecules/Button/hooks/useButtonAction.js +1 -1
- package/dist/esm/molecules/Button/hooks/useButtonAction.js.map +1 -1
- package/dist/esm/molecules/Button/types.d.ts +14 -1
- package/dist/esm/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/esm/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/molecules/Link/Link.js +1 -1
- package/dist/esm/molecules/Link/Link.js.map +1 -1
- package/dist/esm/molecules/Select/Select.js +1 -1
- package/dist/esm/molecules/Select/Select.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import { ConditionConfig, MetadataType } from './types';
|
|
|
22
22
|
export type DeprecatedNavigateToEditForm = 'navigate_to_edit_form';
|
|
23
23
|
/** @deprecated Use navigate_to_page_with_rwo_context instead. */
|
|
24
24
|
export type DeprecatedNavigateToOrganismWithRwoContext = 'navigate_to_organism_with_rwo_context';
|
|
25
|
-
export type ActionTypes = 'link' | 'open_popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy' | 'navigate_to_create_form' | DeprecatedNavigateToEditForm | 'navigate_to_prepopulate_form' | 'navigate_to_page_with_rwo_context' | DeprecatedNavigateToOrganismWithRwoContext;
|
|
25
|
+
export type ActionTypes = 'link' | 'open_popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy' | 'set_context' | 'setContext' | 'navigate_to_create_form' | DeprecatedNavigateToEditForm | 'navigate_to_prepopulate_form' | 'navigate_to_page_with_rwo_context' | DeprecatedNavigateToOrganismWithRwoContext;
|
|
26
26
|
export type DataModelFieldFormatCodeTypes = 'date' | 'email' | 'string' | 'integer' | 'boolean' | 'numeric' | 'zip_code' | 'phone_number';
|
|
27
27
|
export type DataModelFieldFormatValueTypes = 'any' | 'text' | 'email' | 'integer' | 'numerical' | 'us_zip_code' | 'phone_number' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'year_month_day_date';
|
|
28
28
|
export type DownloadFile = {
|
|
@@ -40,6 +40,20 @@ type DownloadAction = DownloadFile;
|
|
|
40
40
|
type SubmitAction = AnyObject;
|
|
41
41
|
type ResetAction = AnyObject;
|
|
42
42
|
type DestroyAction = AnyObject;
|
|
43
|
+
type InputParam = {
|
|
44
|
+
sourceFieldId: string;
|
|
45
|
+
};
|
|
46
|
+
export type SetContextTarget = 'filter_params' | 'rwo_context';
|
|
47
|
+
export type SetContextFieldMapEntry = {
|
|
48
|
+
source: string;
|
|
49
|
+
destination: string;
|
|
50
|
+
};
|
|
51
|
+
export interface SetContextConfig {
|
|
52
|
+
target: SetContextTarget;
|
|
53
|
+
fieldMap?: SetContextFieldMapEntry[];
|
|
54
|
+
inputParams?: InputParam[];
|
|
55
|
+
sourceDataModelFieldId?: string;
|
|
56
|
+
}
|
|
43
57
|
export interface ActionObject {
|
|
44
58
|
type: ActionTypes;
|
|
45
59
|
link?: LinkAction;
|
|
@@ -56,6 +70,8 @@ export interface ActionObject {
|
|
|
56
70
|
/** @deprecated Use navigateToPageWithRwoContext instead. */
|
|
57
71
|
navigateToOrganismWithRwoContext?: NavigationConfig;
|
|
58
72
|
navigateToPageWithRwoContext?: NavigationConfig;
|
|
73
|
+
set_context?: SetContextConfig;
|
|
74
|
+
setContext?: SetContextConfig;
|
|
59
75
|
}
|
|
60
76
|
export type NavigationFieldMapEntry = {
|
|
61
77
|
source: string;
|
|
@@ -74,9 +90,7 @@ export interface NavigationConfig {
|
|
|
74
90
|
fieldMap?: NavigationFieldMapEntry[];
|
|
75
91
|
sourceDataModelFieldId?: string;
|
|
76
92
|
targetOrganismIds?: string[];
|
|
77
|
-
inputParams?:
|
|
78
|
-
sourceFieldId: string;
|
|
79
|
-
}>;
|
|
93
|
+
inputParams?: InputParam[];
|
|
80
94
|
includeRwoRecordId?: boolean;
|
|
81
95
|
}
|
|
82
96
|
type Action = ActionObject;
|
|
@@ -5,7 +5,7 @@ export type PrefillDataCaptureOptions = {
|
|
|
5
5
|
sourceDataModelField?: string;
|
|
6
6
|
/** Nested path string for data resolution (e.g., "query1.0.query2.1") */
|
|
7
7
|
nestedPath?: string;
|
|
8
|
-
form?: Pick<UseFormReturn<Record<string, unknown>>, 'getValues' | 'setValue' | 'formState'> | null;
|
|
8
|
+
form?: Pick<UseFormReturn<Record<string, unknown>>, 'getValues' | 'setValue' | 'formState' | 'watch'> | null;
|
|
9
9
|
fallbackKey?: DataCaptureValueKey;
|
|
10
10
|
enabled?: boolean;
|
|
11
11
|
mapValue?: (resolvedValue: unknown) => unknown;
|