@3kles/kles-material-dynamicforms 22.0.3 → 22.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3kles/kles-material-dynamicforms",
3
- "version": "22.0.3",
3
+ "version": "22.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/3kles-lab/klesmaterialdynamicforms"
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnInit, OnDestroy, Type, PipeTransform, ViewContainerRef, Provider, StaticProvider, Signal, OnChanges, EventEmitter, ChangeDetectorRef, SimpleChanges, ComponentRef, Injector, ApplicationRef, AfterViewInit, InjectionToken } from '@angular/core';
3
3
  import * as _angular_forms from '@angular/forms';
4
- import { UntypedFormGroup, ValidatorFn, AsyncValidatorFn, UntypedFormBuilder, FormGroup, ControlValueAccessor, UntypedFormArray, AbstractControl, FormControl, UntypedFormControl, FormGroupDirective, NgForm } from '@angular/forms';
4
+ import { UntypedFormGroup, ValidatorFn, AsyncValidatorFn, UntypedFormBuilder, FormGroup, ControlValueAccessor, AbstractControl, FormArray, UntypedFormArray, FormControl, UntypedFormControl, FormGroupDirective, NgForm } from '@angular/forms';
5
5
  import { Subject, Observable } from 'rxjs';
6
6
  import * as i30 from '@angular/material/core';
7
7
  import { ThemePalette, DateAdapter, MatDateFormats, ErrorStateMatcher } from '@angular/material/core';
@@ -658,9 +658,9 @@ declare class MatErrorMessageDirective implements AfterViewInit {
658
658
  }
659
659
 
660
660
  declare class MatErrorFormDirective {
661
- readonly form: i0.InputSignal<UntypedFormGroup>;
662
- readonly validations: i0.InputSignal<IKlesValidator<ValidatorFn>[]>;
663
- readonly asyncValidations: i0.InputSignal<IKlesValidator<AsyncValidatorFn>[]>;
661
+ readonly form: i0.InputSignal<AbstractControl<any, any, any>>;
662
+ readonly validations: i0.InputSignal<IKlesValidator<ValidatorFn>[] | undefined>;
663
+ readonly asyncValidations: i0.InputSignal<IKlesValidator<AsyncValidatorFn>[] | undefined>;
664
664
  readonly validationsKeys: i0.Signal<_3kles_kles_material_dynamicforms.KlesValidationKey[]>;
665
665
  readonly asyncValidationsKeys: i0.Signal<_3kles_kles_material_dynamicforms.KlesValidationKey[]>;
666
666
  readonly formErrors: i0.Signal<_angular_forms.ValidationErrors | null>;
@@ -700,7 +700,10 @@ declare class KlesDynamicFormIntl {
700
700
  selectAll: string;
701
701
  clearSearch: string;
702
702
  search: string;
703
+ add: string;
704
+ delete: string;
703
705
  copy: string;
706
+ empty: string;
704
707
  imageUploadChange: string;
705
708
  imageUploadDelete: string;
706
709
  imageUploadInvalidType: string;
@@ -822,16 +825,18 @@ declare class KlesFormCheckboxComponent extends KlesFieldAbstract implements OnI
822
825
  }
823
826
 
824
827
  declare class KlesFormListFieldComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
825
- formArray: UntypedFormArray;
828
+ readonly intl: KlesDynamicFormIntl;
829
+ formArray: FormArray<FormGroup<Record<string, AbstractControl>>>;
826
830
  readonly collections: i0.WritableSignal<IKlesFieldConfig[][]>;
827
- private fb;
831
+ constructor();
828
832
  ngOnInit(): void;
829
- private createFormGroup;
833
+ get hasLayout(): boolean;
834
+ get fieldsDirection(): 'column' | 'row' | 'grid' | 'inline-grid';
830
835
  deleteField(index: number): void;
831
836
  addField(): void;
832
- private bindValidations;
833
- private bindAsyncValidations;
834
837
  ngOnDestroy(): void;
838
+ getGridColumn(field: IKlesFieldConfig): string;
839
+ getGridRow(field: IKlesFieldConfig): string | undefined;
835
840
  static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormListFieldComponent, never>;
836
841
  static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormListFieldComponent, "kles-form-listfield", never, {}, {}, never, never, true, never>;
837
842
  }