@elite.framework/ng.core 1.0.14 → 1.0.15
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.
|
@@ -3729,6 +3729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
3729
3729
|
class GenericSelectorTypeComponent extends FieldType {
|
|
3730
3730
|
svc;
|
|
3731
3731
|
injector;
|
|
3732
|
+
cdr;
|
|
3732
3733
|
autoComp;
|
|
3733
3734
|
options_ = [];
|
|
3734
3735
|
selectedItem;
|
|
@@ -3737,10 +3738,11 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
3737
3738
|
api;
|
|
3738
3739
|
dialog;
|
|
3739
3740
|
valueChangeSubscription; // Add a subscription to manage the observable
|
|
3740
|
-
constructor(svc, injector) {
|
|
3741
|
+
constructor(svc, injector, cdr) {
|
|
3741
3742
|
super();
|
|
3742
3743
|
this.svc = svc;
|
|
3743
3744
|
this.injector = injector;
|
|
3745
|
+
this.cdr = cdr;
|
|
3744
3746
|
}
|
|
3745
3747
|
onSelectionChange(val) {
|
|
3746
3748
|
this.selectedItem = val;
|
|
@@ -3830,6 +3832,7 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
3830
3832
|
else {
|
|
3831
3833
|
if (this.props.change) {
|
|
3832
3834
|
this.props.change(this.field, { item: this.selectedItem });
|
|
3835
|
+
this.cdr.detectChanges();
|
|
3833
3836
|
}
|
|
3834
3837
|
}
|
|
3835
3838
|
}
|
|
@@ -3854,6 +3857,7 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
3854
3857
|
else {
|
|
3855
3858
|
if (this.props.change) {
|
|
3856
3859
|
this.props.change(this.field, { item: this.selectedItem });
|
|
3860
|
+
this.cdr.detectChanges();
|
|
3857
3861
|
}
|
|
3858
3862
|
}
|
|
3859
3863
|
});
|
|
@@ -3871,6 +3875,7 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
3871
3875
|
else {
|
|
3872
3876
|
if (this.props.change) {
|
|
3873
3877
|
this.props.change(this.field, { item: this.selectedItem });
|
|
3878
|
+
this.cdr.detectChanges();
|
|
3874
3879
|
}
|
|
3875
3880
|
}
|
|
3876
3881
|
});
|
|
@@ -3945,7 +3950,7 @@ class GenericSelectorTypeComponent extends FieldType {
|
|
|
3945
3950
|
return Array.isArray(this.selectedItem) &&
|
|
3946
3951
|
this.selectedItem.some((sel) => sel[vf] === item[vf]);
|
|
3947
3952
|
}
|
|
3948
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, deps: [{ token: BaseService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3953
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GenericSelectorTypeComponent, deps: [{ token: BaseService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3949
3954
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: GenericSelectorTypeComponent, isStandalone: true, selector: "formly-generic-selector", providers: [DialogService, BaseService], viewQueries: [{ propertyName: "autoComp", first: true, predicate: ["autoComp"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3950
3955
|
<p-autoComplete
|
|
3951
3956
|
#autoComp
|
|
@@ -4027,7 +4032,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
4027
4032
|
CheckboxModule
|
|
4028
4033
|
]
|
|
4029
4034
|
}]
|
|
4030
|
-
}], ctorParameters: () => [{ type: BaseService }, { type: i0.Injector }], propDecorators: { autoComp: [{
|
|
4035
|
+
}], ctorParameters: () => [{ type: BaseService }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }], propDecorators: { autoComp: [{
|
|
4031
4036
|
type: ViewChild,
|
|
4032
4037
|
args: ['autoComp']
|
|
4033
4038
|
}] } });
|