@ngx-formly/core 11.0.0 → 11.1.0-rc.0
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/package.json
CHANGED
|
@@ -420,6 +420,7 @@ interface FormlyFormOptionsCache extends FormlyFormOptions {
|
|
|
420
420
|
_initialModel?: any;
|
|
421
421
|
_formControlsForCheck?: Set<FormlyFieldConfigCache>;
|
|
422
422
|
_detectChanges?: (field: FormlyFieldConfig) => void;
|
|
423
|
+
_afterBuild?: Set<() => void>;
|
|
423
424
|
}
|
|
424
425
|
/**
|
|
425
426
|
* Maintains list of formly config options. This can be used to register new field type.
|
|
@@ -535,7 +536,10 @@ export declare class FormlyForm implements DoCheck, OnChanges, OnDestroy {
|
|
|
535
536
|
/** The form instance which allow to track model value and validation status. */
|
|
536
537
|
set form(form: UntypedFormGroup | UntypedFormArray);
|
|
537
538
|
get form(): UntypedFormGroup | UntypedFormArray;
|
|
538
|
-
/**
|
|
539
|
+
/**
|
|
540
|
+
* The model to be represented by the form.
|
|
541
|
+
* The form sets a `WritableSignal` to a copy of the model after each change.
|
|
542
|
+
*/
|
|
539
543
|
set model(model: any);
|
|
540
544
|
get model(): any;
|
|
541
545
|
/** The field configurations for building the form. */
|
|
@@ -552,8 +556,13 @@ export declare class FormlyForm implements DoCheck, OnChanges, OnDestroy {
|
|
|
552
556
|
field: FormlyFieldConfigCache;
|
|
553
557
|
private readonly destroyRef;
|
|
554
558
|
private readonly pendingTasks;
|
|
559
|
+
private readonly injector;
|
|
555
560
|
private _modelChangeValue;
|
|
561
|
+
private modelSignal?;
|
|
562
|
+
private modelSignalValue;
|
|
563
|
+
private modelSignalEffect?;
|
|
556
564
|
private valueChangesUnsubscribe;
|
|
565
|
+
private readonly afterBuild;
|
|
557
566
|
constructor(builder: FormlyFormBuilder, config: FormlyConfig, ngZone: NgZone, fieldTemplates: FormlyFieldTemplates);
|
|
558
567
|
ngDoCheck(): void;
|
|
559
568
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -561,6 +570,10 @@ export declare class FormlyForm implements DoCheck, OnChanges, OnDestroy {
|
|
|
561
570
|
private checkExpressionChange;
|
|
562
571
|
private valueChanges;
|
|
563
572
|
private setField;
|
|
573
|
+
private build;
|
|
574
|
+
private bindModelSignal;
|
|
575
|
+
private syncModelSignal;
|
|
576
|
+
private useSignalValue;
|
|
564
577
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyForm, never>;
|
|
565
578
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyForm, "formly-form", never, {
|
|
566
579
|
"form": {
|
|
@@ -807,6 +820,7 @@ declare function objAndSameType(obj1: any, obj2: any): boolean;
|
|
|
807
820
|
declare function isObject(x: any): boolean;
|
|
808
821
|
declare function isPromise(obj: any): obj is Promise<any>;
|
|
809
822
|
declare function clone(value: any): any;
|
|
823
|
+
declare function isEqualValue(a: any, b: any): boolean;
|
|
810
824
|
declare function defineHiddenProp(field: any, prop: string, defaultValue: any): void;
|
|
811
825
|
type IObserveFn<T> = (change: {
|
|
812
826
|
currentValue: T;
|