@alfresco/adf-core 7.0.0-alpha.9-13415789902 → 7.0.0-alpha.9-13433112066

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.
@@ -82,7 +82,7 @@ export declare class FormModel implements ProcessFormModel {
82
82
  isValid: boolean;
83
83
  processVariables: ProcessVariableModel[];
84
84
  variables: FormVariableModel[];
85
- constructor(json?: any, formValues?: FormValues, readOnly?: boolean, formService?: FormValidationService, enableFixedSpace?: boolean);
85
+ constructor(json?: any, formValues?: FormValues, readOnly?: boolean, formService?: FormValidationService, enableFixedSpace?: boolean, injectedFieldValidators?: FormFieldValidator[]);
86
86
  onFormFieldChanged(field: FormFieldModel): void;
87
87
  /**
88
88
  * Validates entire form and all form fields.
@@ -145,4 +145,5 @@ export declare class FormModel implements ProcessFormModel {
145
145
  changeFieldRequired(fieldId: string, required: boolean): void;
146
146
  changeFieldValue(fieldId: string, value: any): void;
147
147
  changeVariableValue(variableId: string, value: any): void;
148
+ private loadInjectedFieldValidators;
148
149
  }
@@ -1,3 +1,20 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { InjectionToken } from '@angular/core';
1
18
  import { Subject } from 'rxjs';
2
19
  import { ContentLinkModel } from '../components/widgets/core/content-link.model';
3
20
  import { FormOutcomeEvent } from '../components/widgets/core/form-outcome-event.model';
@@ -11,9 +28,11 @@ import { ValidateFormFieldEvent } from '../events/validate-form-field.event';
11
28
  import { FormValidationService } from './form-validation-service.interface';
12
29
  import { FormRulesEvent } from '../events/form-rules.event';
13
30
  import { FormSpinnerEvent } from '../events';
14
- import { FormFieldModel } from '../components/widgets';
31
+ import { FormFieldModel, FormFieldValidator } from '../components/widgets';
15
32
  import * as i0 from "@angular/core";
33
+ export declare const FORM_SERVICE_FIELD_VALIDATORS_TOKEN: InjectionToken<FormFieldValidator[]>;
16
34
  export declare class FormService implements FormValidationService {
35
+ private fieldValidators;
17
36
  formLoaded: Subject<FormEvent>;
18
37
  formDataRefreshed: Subject<FormEvent>;
19
38
  formFieldValueChanged: Subject<FormFieldEvent>;
@@ -34,7 +53,7 @@ export declare class FormService implements FormValidationService {
34
53
  executeOutcome: Subject<FormOutcomeEvent>;
35
54
  updateFormValuesRequested: Subject<FormValues>;
36
55
  formRulesEvent: Subject<FormRulesEvent>;
37
- constructor();
56
+ constructor(injectedFieldValidators?: FormFieldValidator[]);
38
57
  /**
39
58
  * Parses JSON data to create a corresponding Form model.
40
59
  *
@@ -46,6 +65,6 @@ export declare class FormService implements FormValidationService {
46
65
  */
47
66
  parseForm(json: any, data?: FormValues, readOnly?: boolean, fixedSpace?: boolean): FormModel;
48
67
  getPreviewState(): boolean;
49
- static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormService, [{ optional: true; }]>;
50
69
  static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
51
70
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-core",
3
3
  "description": "Alfresco ADF core",
4
- "version": "7.0.0-alpha.9-13415789902",
4
+ "version": "7.0.0-alpha.9-13433112066",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -75,8 +75,8 @@
75
75
  "@angular/router": ">=16.0.0",
76
76
  "@mat-datetimepicker/core": ">=12.0.1",
77
77
  "@ngx-translate/core": ">=14.0.0",
78
- "@alfresco/js-api": ">=8.0.0-alpha.9-13415789902",
79
- "@alfresco/adf-extensions": ">=7.0.0-alpha.9-13415789902",
78
+ "@alfresco/js-api": ">=8.0.0-alpha.9-13433112066",
79
+ "@alfresco/adf-extensions": ">=7.0.0-alpha.9-13433112066",
80
80
  "minimatch": ">=10.0.0",
81
81
  "pdfjs-dist": ">=3.3.122",
82
82
  "ts-morph": ">=20.0.0"
@@ -3,13 +3,13 @@
3
3
  "schematics": {
4
4
  "move-out-alfresco-api": {
5
5
  "description": "Update alfresco-api imports",
6
- "version": "7.0.0-alpha.9-13415789902",
6
+ "version": "7.0.0-alpha.9-13433112066",
7
7
  "factory": "./7_0_0/index#updateAlfrescoApiImports"
8
8
  }
9
9
  },
10
10
  "packageJsonUpdates": {
11
11
  "move-out-alfresco-api": {
12
- "version": "7.0.0-alpha.9-13415789902",
12
+ "version": "7.0.0-alpha.9-13433112066",
13
13
  "packages": {
14
14
  "ts-morph": {
15
15
  "version": "^20.0.0",
@@ -17,27 +17,27 @@
17
17
  "addToPackageJson": "devDependencies"
18
18
  },
19
19
  "@alfresco/adf-content-services": {
20
- "version": "7.0.0-alpha.9-13415789902",
20
+ "version": "7.0.0-alpha.9-13433112066",
21
21
  "alwaysAddToPackageJson": false
22
22
  },
23
23
  "@alfresco/adf-extensions": {
24
- "version": "7.0.0-alpha.9-13415789902",
24
+ "version": "7.0.0-alpha.9-13433112066",
25
25
  "alwaysAddToPackageJson": false
26
26
  },
27
27
  "@alfresco/adf-process-services-cloud": {
28
- "version": "7.0.0-alpha.9-13415789902",
28
+ "version": "7.0.0-alpha.9-13433112066",
29
29
  "alwaysAddToPackageJson": false
30
30
  },
31
31
  "@alfresco/adf-process-services": {
32
- "version": "7.0.0-alpha.9-13415789902",
32
+ "version": "7.0.0-alpha.9-13433112066",
33
33
  "alwaysAddToPackageJson": false
34
34
  },
35
35
  "@alfresco/eslint-plugin-eslint-angular": {
36
- "version": "7.0.0-alpha.9-13415789902",
36
+ "version": "7.0.0-alpha.9-13433112066",
37
37
  "alwaysAddToPackageJson": false
38
38
  },
39
39
  "@alfresco/js-api": {
40
- "version": "8.0.0-alpha.9-13415789902",
40
+ "version": "8.0.0-alpha.9-13433112066",
41
41
  "alwaysAddToPackageJson": false
42
42
  }
43
43
  }