@ngx-formly/core 7.0.0-alpha.0 → 7.0.0-alpha.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/esm2022/json-schema/formly-json-schema.service.mjs +4 -4
- package/esm2022/lib/components/formly.field.mjs +9 -9
- package/esm2022/lib/components/formly.form.mjs +8 -8
- package/esm2022/lib/components/formly.template.mjs +8 -8
- package/esm2022/lib/core.module.mjs +4 -4
- package/esm2022/lib/extensions/core/core.mjs +1 -1
- package/esm2022/lib/extensions/field-expression/field-expression.mjs +1 -1
- package/esm2022/lib/extensions/field-expression/utils.mjs +1 -1
- package/esm2022/lib/extensions/field-form/field-form.mjs +1 -1
- package/esm2022/lib/extensions/field-form/utils.mjs +1 -1
- package/esm2022/lib/extensions/field-validation/field-validation.mjs +1 -1
- package/esm2022/lib/services/formly.builder.mjs +6 -6
- package/esm2022/lib/services/formly.config.mjs +4 -4
- package/esm2022/lib/templates/field-array.type.mjs +4 -4
- package/esm2022/lib/templates/field-template.type.mjs +5 -5
- package/esm2022/lib/templates/field.type.mjs +3 -3
- package/esm2022/lib/templates/field.wrapper.mjs +3 -3
- package/esm2022/lib/templates/formly.attributes.mjs +6 -6
- package/esm2022/lib/templates/formly.group.mjs +3 -3
- package/esm2022/lib/templates/formly.validation-message.mjs +5 -5
- package/esm2022/lib/utils.mjs +1 -1
- package/esm2022/preset/preset-substitution.extension.mjs +1 -1
- package/esm2022/preset/preset.module.mjs +4 -4
- package/esm2022/select/select-options.pipe.mjs +4 -4
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/testing/component-factory.mjs +5 -5
- package/fesm2022/ngx-formly-core-json-schema.mjs +13 -13
- package/fesm2022/ngx-formly-core-json-schema.mjs.map +1 -1
- package/fesm2022/ngx-formly-core-preset.mjs +6 -6
- package/fesm2022/ngx-formly-core-preset.mjs.map +1 -1
- package/fesm2022/ngx-formly-core-select.mjs +7 -7
- package/fesm2022/ngx-formly-core-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-core-testing.mjs +4 -4
- package/fesm2022/ngx-formly-core-testing.mjs.map +1 -1
- package/fesm2022/ngx-formly-core.mjs +61 -61
- package/fesm2022/ngx-formly-core.mjs.map +1 -1
- package/lib/services/formly.config.d.ts +1 -3
- package/lib/utils.d.ts +2 -2
- package/package.json +1 -1
- package/testing/component-factory.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Type, TemplateRef, ComponentRef, ChangeDetectorRef, ɵNoopNgZone, VERSION,
|
|
2
|
+
import { Type, TemplateRef, ComponentRef, ChangeDetectorRef, ɵNoopNgZone as _NoopNgZone, VERSION, Input, ViewChildren, Directive, ChangeDetectionStrategy, Component, Injectable, ViewContainerRef, ViewChild, Optional, InjectionToken, Inject, EventEmitter, ContentChildren, Output, NgModule } from '@angular/core';
|
|
3
3
|
import { isObservable, Observable, Subject, of, merge } from 'rxjs';
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
5
5
|
import { AbstractControl, UntypedFormArray, UntypedFormGroup, FormControl, UntypedFormControl, Validators, NgControl } from '@angular/forms';
|
|
@@ -299,7 +299,7 @@ function markFieldForCheck(field) {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
function isNoopNgZone(ngZone) {
|
|
302
|
-
return ngZone instanceof
|
|
302
|
+
return ngZone instanceof _NoopNgZone;
|
|
303
303
|
}
|
|
304
304
|
function isHiddenField(field) {
|
|
305
305
|
const isHidden = (f) => f.hide || f.expressions?.hide || f.hideExpression;
|
|
@@ -1130,10 +1130,10 @@ class FieldType {
|
|
|
1130
1130
|
get formState() {
|
|
1131
1131
|
return this.options?.formState || {};
|
|
1132
1132
|
}
|
|
1133
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1134
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FieldType, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1134
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FieldType, inputs: { field: "field" }, viewQueries: [{ propertyName: "_formlyControls", predicate: NgControl, descendants: true }], ngImport: i0 }); }
|
|
1135
1135
|
}
|
|
1136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FieldType, decorators: [{
|
|
1137
1137
|
type: Directive
|
|
1138
1138
|
}], propDecorators: { _formlyControls: [{
|
|
1139
1139
|
type: ViewChildren,
|
|
@@ -1160,17 +1160,17 @@ class FormlyTemplateType extends FieldType {
|
|
|
1160
1160
|
this.sanitizer = sanitizer;
|
|
1161
1161
|
this.innerHtml = {};
|
|
1162
1162
|
}
|
|
1163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1164
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyTemplateType, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1164
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyTemplateType, selector: "formly-template", usesInheritance: true, ngImport: i0, template: `<div [innerHtml]="template"></div>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1165
1165
|
}
|
|
1166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyTemplateType, decorators: [{
|
|
1167
1167
|
type: Component,
|
|
1168
1168
|
args: [{
|
|
1169
1169
|
selector: 'formly-template',
|
|
1170
1170
|
template: `<div [innerHtml]="template"></div>`,
|
|
1171
1171
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1172
1172
|
}]
|
|
1173
|
-
}], ctorParameters:
|
|
1173
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }] });
|
|
1174
1174
|
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Maintains list of formly config options. This can be used to register new field type.
|
|
@@ -1390,10 +1390,10 @@ class FormlyConfig {
|
|
|
1390
1390
|
this.types[name].wrappers = extendedType.wrappers;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1394
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1394
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyConfig, providedIn: 'root' }); }
|
|
1395
1395
|
}
|
|
1396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyConfig, decorators: [{
|
|
1397
1397
|
type: Injectable,
|
|
1398
1398
|
args: [{ providedIn: 'root' }]
|
|
1399
1399
|
}] });
|
|
@@ -1405,22 +1405,22 @@ class FormlyTemplate {
|
|
|
1405
1405
|
ngOnChanges() {
|
|
1406
1406
|
this.name = this.name || 'formly-group';
|
|
1407
1407
|
}
|
|
1408
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1409
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1408
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyTemplate, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1409
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FormlyTemplate, selector: "[formlyTemplate]", inputs: { name: ["formlyTemplate", "name"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1410
1410
|
}
|
|
1411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyTemplate, decorators: [{
|
|
1412
1412
|
type: Directive,
|
|
1413
1413
|
args: [{ selector: '[formlyTemplate]' }]
|
|
1414
|
-
}], ctorParameters:
|
|
1414
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { name: [{
|
|
1415
1415
|
type: Input,
|
|
1416
1416
|
args: ['formlyTemplate']
|
|
1417
1417
|
}] } });
|
|
1418
1418
|
// workarround for https://github.com/angular/angular/issues/43227#issuecomment-904173738
|
|
1419
1419
|
class FormlyFieldTemplates {
|
|
1420
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1421
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldTemplates, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1421
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldTemplates }); }
|
|
1422
1422
|
}
|
|
1423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldTemplates, decorators: [{
|
|
1424
1424
|
type: Injectable
|
|
1425
1425
|
}] });
|
|
1426
1426
|
|
|
@@ -1685,38 +1685,38 @@ class FormlyField {
|
|
|
1685
1685
|
templateFieldsSubs.forEach((unsubscribe) => unsubscribe());
|
|
1686
1686
|
};
|
|
1687
1687
|
}
|
|
1688
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1689
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1688
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyField, deps: [{ token: FormlyConfig }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: FormlyFieldTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1689
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyField, isStandalone: true, selector: "formly-field", inputs: { field: "field" }, viewQueries: [{ propertyName: "viewContainerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: '<ng-template #container></ng-template>', isInline: true, styles: [":host:empty{display:none}\n"] }); }
|
|
1690
1690
|
}
|
|
1691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyField, decorators: [{
|
|
1692
1692
|
type: Component,
|
|
1693
1693
|
args: [{ selector: 'formly-field', template: '<ng-template #container></ng-template>', standalone: true, styles: [":host:empty{display:none}\n"] }]
|
|
1694
|
-
}], ctorParameters:
|
|
1694
|
+
}], ctorParameters: () => [{ type: FormlyConfig }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: FormlyFieldTemplates, decorators: [{
|
|
1695
1695
|
type: Optional
|
|
1696
|
-
}] }]
|
|
1696
|
+
}] }], propDecorators: { field: [{
|
|
1697
1697
|
type: Input
|
|
1698
1698
|
}], viewContainerRef: [{
|
|
1699
1699
|
type: ViewChild,
|
|
1700
1700
|
args: ['container', { read: ViewContainerRef, static: true }]
|
|
1701
1701
|
}] } });
|
|
1702
1702
|
class LegacyFormlyField extends FormlyField {
|
|
1703
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1704
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LegacyFormlyField, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1704
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: LegacyFormlyField, selector: "formly-field", usesInheritance: true, ngImport: i0, template: '<ng-template #container></ng-template>', isInline: true, styles: [":host:empty{display:none}\n"] }); }
|
|
1705
1705
|
}
|
|
1706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LegacyFormlyField, decorators: [{
|
|
1707
1707
|
type: Component,
|
|
1708
1708
|
args: [{ selector: 'formly-field', template: '<ng-template #container></ng-template>', standalone: false, styles: [":host:empty{display:none}\n"] }]
|
|
1709
1709
|
}] });
|
|
1710
1710
|
|
|
1711
1711
|
/** @ignore */
|
|
1712
1712
|
class FormlyGroup extends FieldType {
|
|
1713
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1714
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1713
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1714
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyGroup, selector: "formly-group", host: { properties: { "class": "field.fieldGroupClassName || \"\"" } }, usesInheritance: true, ngImport: i0, template: `
|
|
1715
1715
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
1716
1716
|
<ng-content></ng-content>
|
|
1717
1717
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1718
1718
|
}
|
|
1719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyGroup, decorators: [{
|
|
1720
1720
|
type: Component,
|
|
1721
1721
|
args: [{
|
|
1722
1722
|
selector: 'formly-group',
|
|
@@ -1835,13 +1835,13 @@ class FormlyFormBuilder {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1839
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1838
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFormBuilder, deps: [{ token: FormlyConfig }, { token: i0.Injector }, { token: i0.ViewContainerRef, optional: true }, { token: i2.FormGroupDirective, optional: true }, { token: FORMLY_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1839
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFormBuilder, providedIn: 'root' }); }
|
|
1840
1840
|
}
|
|
1841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFormBuilder, decorators: [{
|
|
1842
1842
|
type: Injectable,
|
|
1843
1843
|
args: [{ providedIn: 'root' }]
|
|
1844
|
-
}], ctorParameters:
|
|
1844
|
+
}], ctorParameters: () => [{ type: FormlyConfig }, { type: i0.Injector }, { type: i0.ViewContainerRef, decorators: [{
|
|
1845
1845
|
type: Optional
|
|
1846
1846
|
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1847
1847
|
type: Optional
|
|
@@ -1850,7 +1850,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1850
1850
|
}, {
|
|
1851
1851
|
type: Inject,
|
|
1852
1852
|
args: [FORMLY_CONFIG]
|
|
1853
|
-
}] }]
|
|
1853
|
+
}] }] });
|
|
1854
1854
|
|
|
1855
1855
|
/**
|
|
1856
1856
|
* The `<form-form>` component is the main container of the form,
|
|
@@ -1961,10 +1961,10 @@ class FormlyForm {
|
|
|
1961
1961
|
Object.keys(field).forEach((p) => (this.field[p] = field[p]));
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1965
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1964
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyForm, deps: [{ token: FormlyFormBuilder }, { token: FormlyConfig }, { token: i0.NgZone }, { token: FormlyFieldTemplates }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1965
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyForm, isStandalone: true, selector: "formly-form", inputs: { form: "form", model: "model", fields: "fields", options: "options" }, outputs: { modelChange: "modelChange" }, providers: [FormlyFormBuilder, FormlyFieldTemplates], queries: [{ propertyName: "templates", predicate: FormlyTemplate }], usesOnChanges: true, ngImport: i0, template: '<formly-field [field]="field"></formly-field>', isInline: true, dependencies: [{ kind: "component", type: FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1966
1966
|
}
|
|
1967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyForm, decorators: [{
|
|
1968
1968
|
type: Component,
|
|
1969
1969
|
args: [{
|
|
1970
1970
|
selector: 'formly-form',
|
|
@@ -1974,7 +1974,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1974
1974
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1975
1975
|
standalone: true,
|
|
1976
1976
|
}]
|
|
1977
|
-
}], ctorParameters:
|
|
1977
|
+
}], ctorParameters: () => [{ type: FormlyFormBuilder }, { type: FormlyConfig }, { type: i0.NgZone }, { type: FormlyFieldTemplates }], propDecorators: { form: [{
|
|
1978
1978
|
type: Input
|
|
1979
1979
|
}], model: [{
|
|
1980
1980
|
type: Input
|
|
@@ -1989,10 +1989,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1989
1989
|
args: [FormlyTemplate]
|
|
1990
1990
|
}] } });
|
|
1991
1991
|
class LegacyFormlyForm extends FormlyForm {
|
|
1992
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1993
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1992
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LegacyFormlyForm, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1993
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: LegacyFormlyForm, selector: "formly-form", providers: [FormlyFormBuilder, FormlyFieldTemplates], usesInheritance: true, ngImport: i0, template: '<formly-field [field]="field"></formly-field>', isInline: true, dependencies: [{ kind: "component", type: LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1994
1994
|
}
|
|
1995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LegacyFormlyForm, decorators: [{
|
|
1996
1996
|
type: Component,
|
|
1997
1997
|
args: [{
|
|
1998
1998
|
selector: 'formly-form',
|
|
@@ -2165,10 +2165,10 @@ class FormlyAttributes {
|
|
|
2165
2165
|
removeAttribute(attr) {
|
|
2166
2166
|
this.renderer.removeAttribute(this.elementRef.nativeElement, attr);
|
|
2167
2167
|
}
|
|
2168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2169
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyAttributes, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2169
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FormlyAttributes, selector: "[formlyAttributes]", inputs: { field: ["formlyAttributes", "field"], id: "id" }, host: { listeners: { "change": "onHostChange($event)" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
2170
2170
|
}
|
|
2171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyAttributes, decorators: [{
|
|
2172
2172
|
type: Directive,
|
|
2173
2173
|
args: [{
|
|
2174
2174
|
selector: '[formlyAttributes]',
|
|
@@ -2176,10 +2176,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2176
2176
|
'(change)': 'onHostChange($event)',
|
|
2177
2177
|
},
|
|
2178
2178
|
}]
|
|
2179
|
-
}], ctorParameters:
|
|
2179
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
2180
2180
|
type: Inject,
|
|
2181
2181
|
args: [DOCUMENT]
|
|
2182
|
-
}] }]
|
|
2182
|
+
}] }], propDecorators: { field: [{
|
|
2183
2183
|
type: Input,
|
|
2184
2184
|
args: ['formlyAttributes']
|
|
2185
2185
|
}], id: [{
|
|
@@ -2233,17 +2233,17 @@ class FormlyValidationMessage {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
return undefined;
|
|
2235
2235
|
}
|
|
2236
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2237
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyValidationMessage, deps: [{ token: FormlyConfig }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2237
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyValidationMessage, selector: "formly-validation-message", inputs: { field: "field" }, usesOnChanges: true, ngImport: i0, template: '{{ errorMessage$ | async }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2238
2238
|
}
|
|
2239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyValidationMessage, decorators: [{
|
|
2240
2240
|
type: Component,
|
|
2241
2241
|
args: [{
|
|
2242
2242
|
selector: 'formly-validation-message',
|
|
2243
2243
|
template: '{{ errorMessage$ | async }}',
|
|
2244
2244
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2245
2245
|
}]
|
|
2246
|
-
}], ctorParameters:
|
|
2246
|
+
}], ctorParameters: () => [{ type: FormlyConfig }], propDecorators: { field: [{
|
|
2247
2247
|
type: Input
|
|
2248
2248
|
}] } });
|
|
2249
2249
|
|
|
@@ -2318,10 +2318,10 @@ class FieldArrayType extends FieldType {
|
|
|
2318
2318
|
this.options._hiddenFieldsForCheck.push({ field: f });
|
|
2319
2319
|
}
|
|
2320
2320
|
}
|
|
2321
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2322
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2321
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FieldArrayType, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2322
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FieldArrayType, usesInheritance: true, ngImport: i0 }); }
|
|
2323
2323
|
}
|
|
2324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FieldArrayType, decorators: [{
|
|
2325
2325
|
type: Directive
|
|
2326
2326
|
}] });
|
|
2327
2327
|
|
|
@@ -2330,10 +2330,10 @@ class FieldWrapper extends FieldType {
|
|
|
2330
2330
|
set _staticContent(content) {
|
|
2331
2331
|
this.fieldComponent = content;
|
|
2332
2332
|
}
|
|
2333
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2334
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2333
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FieldWrapper, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2334
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FieldWrapper, viewQueries: [{ propertyName: "fieldComponent", first: true, predicate: ["fieldComponent"], descendants: true, read: ViewContainerRef }, { propertyName: "_staticContent", first: true, predicate: ["fieldComponent"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0 }); }
|
|
2335
2335
|
}
|
|
2336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FieldWrapper, decorators: [{
|
|
2337
2337
|
type: Directive
|
|
2338
2338
|
}], propDecorators: { fieldComponent: [{
|
|
2339
2339
|
type: ViewChild,
|
|
@@ -2365,8 +2365,8 @@ class FormlyModule {
|
|
|
2365
2365
|
],
|
|
2366
2366
|
};
|
|
2367
2367
|
}
|
|
2368
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2369
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2368
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2369
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyModule, declarations: [FormlyTemplate,
|
|
2370
2370
|
LegacyFormlyForm,
|
|
2371
2371
|
LegacyFormlyField,
|
|
2372
2372
|
FormlyAttributes,
|
|
@@ -2378,9 +2378,9 @@ class FormlyModule {
|
|
|
2378
2378
|
FormlyAttributes,
|
|
2379
2379
|
FormlyGroup,
|
|
2380
2380
|
FormlyValidationMessage] }); }
|
|
2381
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2381
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyModule, imports: [CommonModule] }); }
|
|
2382
2382
|
}
|
|
2383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyModule, decorators: [{
|
|
2384
2384
|
type: NgModule,
|
|
2385
2385
|
args: [{
|
|
2386
2386
|
declarations: [
|