@elite.framework/ng.core 1.0.42 → 1.0.43
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Output, Input, Component, InjectionToken, inject, Inject, Injectable, ViewChild, ChangeDetectionStrategy, NgModule, Directive, Pipe, PLATFORM_ID, Optional } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
|
-
import { FormGroup, FormsModule, ReactiveFormsModule, UntypedFormGroup,
|
|
4
|
+
import { FormGroup, FormsModule, ReactiveFormsModule, UntypedFormGroup, UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import * as i1$8 from '@ngx-formly/core';
|
|
6
6
|
import { FormlyForm, FieldType, FormlyAttributes, FormlyModule, FormlyField, FieldWrapper, FieldArrayType, provideFormlyCore } from '@ngx-formly/core';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
@@ -4766,12 +4766,12 @@ class RepeatTypeComponent extends FieldArrayType {
|
|
|
4766
4766
|
}
|
|
4767
4767
|
ngOnInit() {
|
|
4768
4768
|
// Subscribe to each FormArray changes
|
|
4769
|
-
if (this.formControl instanceof FormArray) {
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
}
|
|
4769
|
+
// if (this.formControl instanceof FormArray) {
|
|
4770
|
+
this.formControl.valueChanges.subscribe(() => {
|
|
4771
|
+
// Force Angular to detect changes
|
|
4772
|
+
this.cdr.detectChanges();
|
|
4773
|
+
});
|
|
4774
|
+
// }
|
|
4775
4775
|
}
|
|
4776
4776
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RepeatTypeComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4777
4777
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: RepeatTypeComponent, isStandalone: true, selector: "formly-repeat-section", usesInheritance: true, ngImport: i0, template: `
|