@elite.framework/ng.core 1.0.41 → 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.
|
@@ -4755,11 +4755,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
4755
4755
|
}] });
|
|
4756
4756
|
|
|
4757
4757
|
class RepeatTypeComponent extends FieldArrayType {
|
|
4758
|
+
cdr;
|
|
4758
4759
|
// Return columns of the first row (for table headers)
|
|
4759
4760
|
getFirstRowColumns() {
|
|
4760
4761
|
return this.field.fieldGroup?.[0]?.fieldGroup ?? [];
|
|
4761
4762
|
}
|
|
4762
|
-
|
|
4763
|
+
constructor(cdr) {
|
|
4764
|
+
super();
|
|
4765
|
+
this.cdr = cdr;
|
|
4766
|
+
}
|
|
4767
|
+
ngOnInit() {
|
|
4768
|
+
// Subscribe to each FormArray changes
|
|
4769
|
+
// if (this.formControl instanceof FormArray) {
|
|
4770
|
+
this.formControl.valueChanges.subscribe(() => {
|
|
4771
|
+
// Force Angular to detect changes
|
|
4772
|
+
this.cdr.detectChanges();
|
|
4773
|
+
});
|
|
4774
|
+
// }
|
|
4775
|
+
}
|
|
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 });
|
|
4763
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: `
|
|
4764
4778
|
<div class="overflow-auto bg-gray-100 border border-gray-300">
|
|
4765
4779
|
<table *ngIf="(field.fieldGroup ?? []).length > 0" class="table-auto w-full border border-gray-300">
|
|
@@ -4858,7 +4872,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
4858
4872
|
</div>
|
|
4859
4873
|
`,
|
|
4860
4874
|
}]
|
|
4861
|
-
}] });
|
|
4875
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] });
|
|
4862
4876
|
|
|
4863
4877
|
class TabsTypeComponent extends FieldType {
|
|
4864
4878
|
isValid(field) {
|