@alfresco/adf-core 8.4.0-19864816317 → 8.4.0-19865917188
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.
|
@@ -70,6 +70,7 @@ export declare class FormFieldModel extends FormWidgetModel {
|
|
|
70
70
|
displayText: string;
|
|
71
71
|
isVisible: boolean;
|
|
72
72
|
visibilityCondition: WidgetVisibilityModel;
|
|
73
|
+
checkParentVisibilityForValidation: boolean;
|
|
73
74
|
enableFractions: boolean;
|
|
74
75
|
currency: string;
|
|
75
76
|
dateDisplayFormat: string;
|
|
@@ -83,6 +83,7 @@ export declare class FormModel implements ProcessFormModel {
|
|
|
83
83
|
isValid: boolean;
|
|
84
84
|
processVariables: ProcessVariableModel[];
|
|
85
85
|
variables: FormVariableModel[];
|
|
86
|
+
enableParentVisibilityCheck: boolean;
|
|
86
87
|
constructor(json?: any, formValues?: FormValues, readOnly?: boolean, formService?: FormValidationService, enableFixedSpace?: boolean, injectedFieldValidators?: FormFieldValidator[]);
|
|
87
88
|
onFormFieldChanged(field: FormFieldModel): void;
|
|
88
89
|
onRepeatableSectionChanged(): void;
|
|
@@ -151,4 +152,35 @@ export declare class FormModel implements ProcessFormModel {
|
|
|
151
152
|
changeFieldValue(fieldId: string, value: any): void;
|
|
152
153
|
changeVariableValue(variableId: string, value: any): void;
|
|
153
154
|
private loadInjectedFieldValidators;
|
|
155
|
+
/**
|
|
156
|
+
* Checks if a field or any of its parent containers/groups/sections is hidden.
|
|
157
|
+
* Returns true if the field should skip validation (field or parent is hidden).
|
|
158
|
+
*
|
|
159
|
+
* Parent visibility is only checked if:
|
|
160
|
+
* - `enableParentVisibilityCheck` is true
|
|
161
|
+
* - `field.checkParentVisibilityForValidation` is true (field opt-in enabled)
|
|
162
|
+
*
|
|
163
|
+
* @param field The form field to check
|
|
164
|
+
* @returns true if field or parent is hidden, false otherwise
|
|
165
|
+
*/
|
|
166
|
+
isFieldOrParentHidden(field: FormFieldModel): boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Checks if the given field has a hidden parent container/group/section.
|
|
169
|
+
*
|
|
170
|
+
* @param targetField The form field to check
|
|
171
|
+
* @returns true if field has a hidden parent, false otherwise
|
|
172
|
+
*/
|
|
173
|
+
private hasHiddenParent;
|
|
174
|
+
/**
|
|
175
|
+
* Recursively searches for a field within an element (container/group/section).
|
|
176
|
+
* Returns the parent element if field is found within it, null otherwise.
|
|
177
|
+
*
|
|
178
|
+
* @param element The container/group/section to search in
|
|
179
|
+
* @param targetField The form field to find
|
|
180
|
+
* @returns Parent element if field found, null otherwise
|
|
181
|
+
*/
|
|
182
|
+
private findParentInElement;
|
|
183
|
+
private getColumnsFromElement;
|
|
184
|
+
private searchFieldsInColumns;
|
|
185
|
+
private searchFieldsInColumn;
|
|
154
186
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "8.4.0-
|
|
4
|
+
"version": "8.4.0-19865917188",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@angular/router": ">=16.0.0",
|
|
64
64
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
65
65
|
"@ngx-translate/core": ">=16.0.0",
|
|
66
|
-
"@alfresco/js-api": ">=9.4.0-
|
|
67
|
-
"@alfresco/adf-extensions": ">=8.4.0-
|
|
66
|
+
"@alfresco/js-api": ">=9.4.0-19865917188",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.4.0-19865917188",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122"
|
|
70
70
|
},
|