@klippa/ngx-enhancy-forms 18.23.9 → 18.24.0

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.
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { AbstractControl, UntypedFormArray, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
2
+ import { AbstractControl, FormArray, FormGroup, UntypedFormArray, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
3
3
  import { FormElementComponent } from './form-element/form-element.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare const invalidFieldsSymbol: unique symbol;
@@ -15,12 +15,14 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
15
15
  readOnly: boolean;
16
16
  showErrorMessages: boolean;
17
17
  errorMessageLocation: 'belowCaption' | 'rightOfCaption';
18
- formGroup: UntypedFormGroup;
18
+ formGroup: FormGroup;
19
+ formArray: FormArray;
19
20
  warnings: Map<AbstractControl, string | TemplateRef<any>>;
20
21
  errors: Map<AbstractControl, string>;
21
22
  patchValueInterceptor: (values: any) => Promise<any>;
22
23
  allowSubmitOn: 'buttonAndEnter' | 'buttonOnly';
23
24
  onInjected: EventEmitter<Record<string, any>>;
25
+ private topLevelFormControl;
24
26
  private activeControls;
25
27
  constructor(parent: FormComponent, subFormPlaceholder: SubFormDirective);
26
28
  ngOnInit(): void;
@@ -44,5 +46,5 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
44
46
  private getRenderedFieldValuesFormArray;
45
47
  private setDisabledStatesForAllControls;
46
48
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "klp-form", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "showErrorMessages": { "alias": "showErrorMessages"; "required": false; }; "errorMessageLocation": { "alias": "errorMessageLocation"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "warnings": { "alias": "warnings"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "patchValueInterceptor": { "alias": "patchValueInterceptor"; "required": false; }; "allowSubmitOn": { "alias": "allowSubmitOn"; "required": false; }; }, { "onInjected": "onInjected"; }, never, ["*"], false, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "klp-form", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "showErrorMessages": { "alias": "showErrorMessages"; "required": false; }; "errorMessageLocation": { "alias": "errorMessageLocation"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "warnings": { "alias": "warnings"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "patchValueInterceptor": { "alias": "patchValueInterceptor"; "required": false; }; "allowSubmitOn": { "alias": "allowSubmitOn"; "required": false; }; }, { "onInjected": "onInjected"; }, never, ["*"], false, never>;
48
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klippa/ngx-enhancy-forms",
3
- "version": "18.23.9",
3
+ "version": "18.24.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },