@ngx-formly/core 6.1.8 → 6.2.1

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.
@@ -6,5 +6,6 @@ export declare class FieldFormExtension implements FormlyExtension {
6
6
  postPopulate(field: FormlyFieldConfigCache): void;
7
7
  private addFormControl;
8
8
  private setValidators;
9
+ private hasValidators;
9
10
  private mergeValidators;
10
11
  }
@@ -7,6 +7,5 @@ export declare class FieldValidationExtension implements FormlyExtension {
7
7
  private initFieldValidation;
8
8
  private getPredefinedFieldValidation;
9
9
  private wrapNgValidatorFn;
10
- private handleAsyncResult;
11
10
  private handleResult;
12
11
  }
@@ -200,7 +200,7 @@ export interface FormlyFieldProps {
200
200
  }
201
201
  export declare type FormlyHookFn = (field: FormlyFieldConfig) => void;
202
202
  export interface FormlyHookConfig {
203
- onInit?: FormlyHookFn;
203
+ onInit?: FormlyHookFn | ((field: FormlyFieldConfig) => Observable<any>);
204
204
  onChanges?: FormlyHookFn;
205
205
  afterContentInit?: FormlyHookFn;
206
206
  afterViewInit?: FormlyHookFn;
@@ -11,7 +11,7 @@ export interface FieldGroupTypeConfig<T = FormlyFieldConfig['props']> extends Fo
11
11
  props: NonNullable<T>;
12
12
  }
13
13
  export declare abstract class FieldType<F extends FormlyFieldConfig = FormlyFieldConfig> {
14
- set controls(controls: QueryList<NgControl>);
14
+ set _formlyControls(controls: QueryList<NgControl>);
15
15
  field: F;
16
16
  defaultOptions?: Partial<F>;
17
17
  get model(): any;
@@ -1,8 +1,10 @@
1
- import { ViewContainerRef } from '@angular/core';
1
+ import { ViewContainerRef, QueryList } from '@angular/core';
2
2
  import { FieldType } from './field.type';
3
3
  import { FormlyFieldConfig } from '../models';
4
+ import { NgControl } from '@angular/forms';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare abstract class FieldWrapper<F extends FormlyFieldConfig = FormlyFieldConfig> extends FieldType<F> {
7
+ set _formlyControls(_: QueryList<NgControl>);
6
8
  fieldComponent: ViewContainerRef;
7
9
  set _staticContent(content: ViewContainerRef);
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldWrapper<any>, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-formly/core",
3
- "version": "6.1.8",
3
+ "version": "6.2.1",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"