@alfresco/adf-core 8.4.0-17915058223 → 8.4.0-17917598952

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.
@@ -17,6 +17,11 @@
17
17
  import { ComponentRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
18
18
  import { FormFieldModel } from '../widgets/core/form-field.model';
19
19
  import * as i0 from "@angular/core";
20
+ /**
21
+ * Component is a wrapper for widget components.
22
+ * It is responsible for instantiating the correct widget component
23
+ * based on the field type.
24
+ */
20
25
  export declare class FormFieldComponent implements OnInit, OnDestroy {
21
26
  container: ViewContainerRef;
22
27
  /**
@@ -14,6 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
+ import { MaybeReactiveFormWidget, ReactiveFormWidget } from '../reactive-widget.interface';
17
18
  export declare class FormFieldTypes {
18
19
  static CONTAINER: string;
19
20
  static GROUP: string;
@@ -54,6 +55,7 @@ export declare class FormFieldTypes {
54
55
  static isReadOnlyType(type: string): boolean;
55
56
  static isValidatableType(type: string): boolean;
56
57
  static isReactiveType(type: string): boolean;
58
+ static isReactiveWidget(instance: MaybeReactiveFormWidget): instance is ReactiveFormWidget;
57
59
  static isConstantValueType(type: string): boolean;
58
60
  static isContainerType(type: string): boolean;
59
61
  static isSectionType(type: string): boolean;
@@ -15,7 +15,11 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { FormService } from '../../services/form.service';
18
+ import { FormFieldModel } from './core/form-field.model';
19
+ import { WidgetComponent } from './widget.component';
18
20
  export interface ReactiveFormWidget {
19
21
  updateReactiveFormControl(): void;
20
22
  formService: FormService;
23
+ field: FormFieldModel;
21
24
  }
25
+ export type MaybeReactiveFormWidget = WidgetComponent | ReactiveFormWidget;
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-17915058223",
4
+ "version": "8.4.0-17917598952",
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-17915058223",
67
- "@alfresco/adf-extensions": ">=8.4.0-17915058223",
66
+ "@alfresco/js-api": ">=9.4.0-17917598952",
67
+ "@alfresco/adf-extensions": ">=8.4.0-17917598952",
68
68
  "minimatch": ">=10.0.0",
69
69
  "pdfjs-dist": ">=3.3.122"
70
70
  },