@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.
- package/esm2020/json-schema/formly-json-schema.service.mjs +40 -12
- package/esm2020/lib/components/formly.field.mjs +2 -2
- package/esm2020/lib/extensions/field-form/field-form.mjs +15 -2
- package/esm2020/lib/extensions/field-validation/field-validation.mjs +6 -8
- package/esm2020/lib/models/fieldconfig.mjs +1 -1
- package/esm2020/lib/services/formly.builder.mjs +7 -8
- package/esm2020/lib/templates/field-array.type.mjs +6 -5
- package/esm2020/lib/templates/field.type.mjs +4 -4
- package/esm2020/lib/templates/field.wrapper.mjs +2 -1
- package/fesm2015/ngx-formly-core-json-schema.mjs +39 -11
- package/fesm2015/ngx-formly-core-json-schema.mjs.map +1 -1
- package/fesm2015/ngx-formly-core.mjs +37 -21
- package/fesm2015/ngx-formly-core.mjs.map +1 -1
- package/fesm2020/ngx-formly-core-json-schema.mjs +39 -11
- package/fesm2020/ngx-formly-core-json-schema.mjs.map +1 -1
- package/fesm2020/ngx-formly-core.mjs +35 -23
- package/fesm2020/ngx-formly-core.mjs.map +1 -1
- package/lib/extensions/field-form/field-form.d.ts +1 -0
- package/lib/extensions/field-validation/field-validation.d.ts +0 -1
- package/lib/models/fieldconfig.d.ts +1 -1
- package/lib/templates/field.type.d.ts +1 -1
- package/lib/templates/field.wrapper.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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
|
|
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>;
|