@ngx-formly/core 7.0.0 → 7.0.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/README.md +12 -12
- package/esm2022/json-schema/formly-json-schema.service.mjs +2 -2
- package/esm2022/lib/components/formly.form.mjs +10 -4
- package/esm2022/lib/components/formly.template.mjs +11 -3
- package/esm2022/lib/core.config.mjs +17 -3
- package/esm2022/lib/core.mjs +2 -2
- package/esm2022/lib/core.module.mjs +9 -9
- package/esm2022/preset/preset-substitution.extension.mjs +2 -2
- package/fesm2022/ngx-formly-core-json-schema.mjs +1 -1
- package/fesm2022/ngx-formly-core-json-schema.mjs.map +1 -1
- package/fesm2022/ngx-formly-core-preset.mjs +1 -1
- package/fesm2022/ngx-formly-core-preset.mjs.map +1 -1
- package/fesm2022/ngx-formly-core.mjs +41 -13
- package/fesm2022/ngx-formly-core.mjs.map +1 -1
- package/lib/components/formly.form.d.ts +3 -2
- package/lib/components/formly.template.d.ts +5 -1
- package/lib/core.d.ts +1 -1
- package/lib/core.module.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export declare class FormlyForm implements DoCheck, OnChanges, OnDestroy {
|
|
|
14
14
|
private builder;
|
|
15
15
|
private config;
|
|
16
16
|
private ngZone;
|
|
17
|
-
|
|
17
|
+
protected fieldTemplates: FormlyFieldTemplates;
|
|
18
18
|
/** The form instance which allow to track model value and validation status. */
|
|
19
19
|
set form(form: UntypedFormGroup | UntypedFormArray);
|
|
20
20
|
get form(): UntypedFormGroup | UntypedFormArray;
|
|
@@ -44,6 +44,7 @@ export declare class FormlyForm implements DoCheck, OnChanges, OnDestroy {
|
|
|
44
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyForm, "formly-form", never, { "form": { "alias": "form"; "required": false; }; "model": { "alias": "model"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "modelChange": "modelChange"; }, ["templates"], never, true, never>;
|
|
45
45
|
}
|
|
46
46
|
export declare class LegacyFormlyForm extends FormlyForm {
|
|
47
|
+
set templates(templates: QueryList<FormlyTemplate>);
|
|
47
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<LegacyFormlyForm, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyFormlyForm, "formly-form", never, {}, {},
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyFormlyForm, "formly-form", never, {}, {}, ["templates"], never, false, never>;
|
|
49
50
|
}
|
|
@@ -6,7 +6,11 @@ export declare class FormlyTemplate implements OnChanges {
|
|
|
6
6
|
constructor(ref: TemplateRef<any>);
|
|
7
7
|
ngOnChanges(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyTemplate, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormlyTemplate, "[formlyTemplate]", never, { "name": { "alias": "formlyTemplate"; "required": false; }; }, {}, never, never,
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormlyTemplate, "[formlyTemplate]", never, { "name": { "alias": "formlyTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
export declare class LegacyFormlyTemplate extends FormlyTemplate {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LegacyFormlyTemplate, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LegacyFormlyTemplate, "[formlyTemplate]", never, {}, {}, never, never, false, never>;
|
|
10
14
|
}
|
|
11
15
|
export declare class FormlyFieldTemplates {
|
|
12
16
|
templates: QueryList<FormlyTemplate>;
|
package/lib/core.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { FormlyFieldConfig, FormlyTemplateOptions, FormlyFormOptions, FormlyFiel
|
|
|
4
4
|
export { LegacyFormlyField, FormlyField } from './components/formly.field';
|
|
5
5
|
export { LegacyFormlyAttributes, FormlyAttributes } from './templates/formly.attributes';
|
|
6
6
|
export { FormlyGroup as ɵFormlyGroup } from './templates/formly.group';
|
|
7
|
-
export { FormlyTemplate as ɵFormlyTemplate } from './components/formly.template';
|
|
7
|
+
export { FormlyTemplate, LegacyFormlyTemplate as ɵFormlyTemplate } from './components/formly.template';
|
|
8
8
|
export { LegacyFormlyValidationMessage, FormlyValidationMessage } from './templates/formly.validation-message';
|
|
9
9
|
export { FormlyConfig } from './services/formly.config';
|
|
10
10
|
export { FormlyFormBuilder } from './services/formly.builder';
|
package/lib/core.module.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export declare class FormlyModule {
|
|
|
13
13
|
static forRoot(config?: ConfigOption): ModuleWithProviders<FormlyModule>;
|
|
14
14
|
static forChild(config?: ConfigOption): ModuleWithProviders<FormlyModule>;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyModule, [typeof i1.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyModule, [typeof i1.LegacyFormlyTemplate, typeof i2.LegacyFormlyForm, typeof i3.LegacyFormlyField, typeof i4.LegacyFormlyAttributes, typeof i5.LegacyFormlyValidationMessage, typeof i6.FormlyGroup, typeof i7.FormlyTemplateType], [typeof i8.CommonModule], [typeof i1.LegacyFormlyTemplate, typeof i2.LegacyFormlyForm, typeof i3.LegacyFormlyField, typeof i4.LegacyFormlyAttributes, typeof i5.LegacyFormlyValidationMessage, typeof i6.FormlyGroup]>;
|
|
17
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyModule>;
|
|
18
18
|
}
|