@ngx-formly/core 9.0.0 → 10.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 +20 -0
- package/fesm2022/ngx-formly-core-json-schema.mjs +8 -6
- package/fesm2022/ngx-formly-core-json-schema.mjs.map +1 -1
- package/fesm2022/ngx-formly-core-preset.mjs +4 -4
- package/fesm2022/ngx-formly-core-select.mjs +10 -10
- package/fesm2022/ngx-formly-core-testing.mjs +3 -3
- package/fesm2022/ngx-formly-core.mjs +141 -77
- package/fesm2022/ngx-formly-core.mjs.map +1 -1
- package/package.json +9 -8
- package/{json-schema/index.d.ts → types/ngx-formly-core-json-schema.d.ts} +5 -0
- package/{index.d.ts → types/ngx-formly-core.d.ts} +7 -2
- /package/{preset/index.d.ts → types/ngx-formly-core-preset.d.ts} +0 -0
- /package/{select/index.d.ts → types/ngx-formly-core-select.d.ts} +0 -0
- /package/{testing/index.d.ts → types/ngx-formly-core-testing.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngx-formly/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/forms": ">=
|
|
9
|
+
"@angular/forms": ">=21.0.0",
|
|
10
10
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
11
11
|
},
|
|
12
12
|
"module": "fesm2022/ngx-formly-core.mjs",
|
|
13
|
-
"typings": "
|
|
13
|
+
"typings": "types/ngx-formly-core.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": {
|
|
16
16
|
"default": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
".": {
|
|
19
|
-
"types": "./
|
|
19
|
+
"types": "./types/ngx-formly-core.d.ts",
|
|
20
20
|
"default": "./fesm2022/ngx-formly-core.mjs"
|
|
21
21
|
},
|
|
22
22
|
"./json-schema": {
|
|
23
|
-
"types": "./json-schema
|
|
23
|
+
"types": "./types/ngx-formly-core-json-schema.d.ts",
|
|
24
24
|
"default": "./fesm2022/ngx-formly-core-json-schema.mjs"
|
|
25
25
|
},
|
|
26
26
|
"./preset": {
|
|
27
|
-
"types": "./preset
|
|
27
|
+
"types": "./types/ngx-formly-core-preset.d.ts",
|
|
28
28
|
"default": "./fesm2022/ngx-formly-core-preset.mjs"
|
|
29
29
|
},
|
|
30
30
|
"./select": {
|
|
31
|
-
"types": "./select
|
|
31
|
+
"types": "./types/ngx-formly-core-select.d.ts",
|
|
32
32
|
"default": "./fesm2022/ngx-formly-core-select.mjs"
|
|
33
33
|
},
|
|
34
34
|
"./testing": {
|
|
35
|
-
"types": "./testing
|
|
35
|
+
"types": "./types/ngx-formly-core-testing.d.ts",
|
|
36
36
|
"default": "./fesm2022/ngx-formly-core-testing.mjs"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
|
+
"type": "module",
|
|
40
41
|
"homepage": "https://github.com/ngx-formly/ngx-formly#readme",
|
|
41
42
|
"description": "Formly is a dynamic (JSON powered) form library for Angular that bring unmatched maintainability to your application's forms.",
|
|
42
43
|
"repository": {
|
|
@@ -3,6 +3,11 @@ import { JSONSchema7 } from 'json-schema';
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
|
|
5
5
|
interface FormlyJsonschemaOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Leave required strings without a schema default undefined instead of defaulting to ''.
|
|
8
|
+
* Defaults to false. Explicit schema defaults and other types are unaffected.
|
|
9
|
+
*/
|
|
10
|
+
ignoreImplicitStringDefaults?: boolean;
|
|
6
11
|
/**
|
|
7
12
|
* allows to intercept the mapping, taking the already mapped
|
|
8
13
|
* formly field and the original JSONSchema source from which it
|
|
@@ -476,6 +476,7 @@ declare class FormlyFormBuilder {
|
|
|
476
476
|
private injector;
|
|
477
477
|
private viewContainerRef;
|
|
478
478
|
private parentForm;
|
|
479
|
+
private readonly initializedForms;
|
|
479
480
|
constructor(config: FormlyConfig, injector: Injector, viewContainerRef: ViewContainerRef, parentForm: FormGroupDirective, configs?: ConfigOption[]);
|
|
480
481
|
buildForm(form: UntypedFormGroup | UntypedFormArray, fieldGroup: FormlyFieldConfig[], model: any, options: FormlyFormOptions): void;
|
|
481
482
|
build(field: FormlyFieldConfig): void;
|
|
@@ -527,8 +528,12 @@ declare class FormlyForm implements DoCheck, OnChanges, OnDestroy {
|
|
|
527
528
|
get options(): FormlyFormOptions;
|
|
528
529
|
/** Event that is emitted when the model value is changed */
|
|
529
530
|
modelChange: EventEmitter<any>;
|
|
531
|
+
/** Emits a build event asynchronously when the fields or form input changes. */
|
|
532
|
+
fieldChange: EventEmitter<FormlyValueChangeEvent>;
|
|
530
533
|
set templates(templates: QueryList<FormlyTemplate>);
|
|
531
534
|
field: FormlyFieldConfigCache;
|
|
535
|
+
private readonly destroyRef;
|
|
536
|
+
private readonly pendingTasks;
|
|
532
537
|
private _modelChangeValue;
|
|
533
538
|
private valueChangesUnsubscribe;
|
|
534
539
|
constructor(builder: FormlyFormBuilder, config: FormlyConfig, ngZone: NgZone, fieldTemplates: FormlyFieldTemplates);
|
|
@@ -539,7 +544,7 @@ declare class FormlyForm implements DoCheck, OnChanges, OnDestroy {
|
|
|
539
544
|
private valueChanges;
|
|
540
545
|
private setField;
|
|
541
546
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyForm, never>;
|
|
542
|
-
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>;
|
|
547
|
+
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"; "fieldChange": "fieldChange"; }, ["templates"], never, true, never>;
|
|
543
548
|
}
|
|
544
549
|
declare class LegacyFormlyForm extends FormlyForm {
|
|
545
550
|
set templates(templates: QueryList<FormlyTemplate>);
|
|
@@ -737,4 +742,4 @@ interface IObserveTarget<T> {
|
|
|
737
742
|
declare function observe<T = any>(o: IObserveTarget<T>, paths: string[], setFn?: IObserveFn<T>): IObserver<T>;
|
|
738
743
|
|
|
739
744
|
export { FORMLY_CONFIG, FieldArrayType, FieldType, FieldWrapper, FormlyAttributes, FormlyConfig, FormlyField, FormlyForm, FormlyFormBuilder, FormlyModule, FormlyTemplate, FormlyValidationMessage, LegacyFormlyAttributes, LegacyFormlyField, LegacyFormlyForm, LegacyFormlyValidationMessage, provideFormlyConfig, provideFormlyCore, withFormlyFieldExpression, FormlyGroup as ɵFormlyGroup, LegacyFormlyTemplate as ɵFormlyTemplate, clone as ɵclone, defineHiddenProp as ɵdefineHiddenProp, getFieldValue as ɵgetFieldValue, hasKey as ɵhasKey, observe as ɵobserve, reverseDeepMerge as ɵreverseDeepMerge };
|
|
740
|
-
export type { ConfigOption, FieldArrayTypeConfig, FieldGroupTypeConfig, FieldTypeConfig, FormlyAttributeEvent, FormlyExtension, FormlyFieldConfig, FormlyFieldConfigPresetProvider, FormlyFieldProps, FormlyFormOptions, FormlyTemplateOptions, ValidationMessageOption };
|
|
745
|
+
export type { ConfigOption, FieldArrayTypeConfig, FieldGroupTypeConfig, FieldTypeConfig, FormlyAttributeEvent, FormlyExtension, FormlyFieldConfig, FormlyFieldConfigPresetProvider, FormlyFieldProps, FormlyFormOptions, FormlyTemplateOptions, FormlyValueChangeEvent, ValidationMessageOption };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|