@abp/ng.core 5.3.0-rc.1 → 5.3.0-rc.2
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/esm2020/lib/directives/form-submit.directive.mjs +8 -3
- package/fesm2015/abp-ng.core.mjs +7 -2
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +7 -2
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/directives/form-submit.directive.d.ts +2 -1
- package/package.json +2 -2
package/fesm2020/abp-ng.core.mjs
CHANGED
|
@@ -1822,12 +1822,15 @@ class FormSubmitDirective {
|
|
|
1822
1822
|
this.cdRef = cdRef;
|
|
1823
1823
|
this.subscription = subscription;
|
|
1824
1824
|
this.debounce = 200;
|
|
1825
|
+
this.markAsDirtyWhenSubmit = true;
|
|
1825
1826
|
this.ngSubmit = new EventEmitter();
|
|
1826
1827
|
this.executedNgSubmit = false;
|
|
1827
1828
|
}
|
|
1828
1829
|
ngOnInit() {
|
|
1829
1830
|
this.subscription.addOne(this.formGroupDirective.ngSubmit, () => {
|
|
1830
|
-
this.
|
|
1831
|
+
if (this.markAsDirtyWhenSubmit) {
|
|
1832
|
+
this.markAsDirty();
|
|
1833
|
+
}
|
|
1831
1834
|
this.executedNgSubmit = true;
|
|
1832
1835
|
});
|
|
1833
1836
|
const keyup$ = fromEvent(this.host.nativeElement, 'keyup').pipe(debounceTime(this.debounce), filter(event => !(event.target instanceof HTMLTextAreaElement)), filter((event) => event && event.key === 'Enter'));
|
|
@@ -1846,7 +1849,7 @@ class FormSubmitDirective {
|
|
|
1846
1849
|
}
|
|
1847
1850
|
}
|
|
1848
1851
|
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormSubmitDirective, deps: [{ token: i1$2.FormGroupDirective, self: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1849
|
-
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1852
|
+
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit", markAsDirtyWhenSubmit: "markAsDirtyWhenSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1850
1853
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
1851
1854
|
type: Directive,
|
|
1852
1855
|
args: [{
|
|
@@ -1860,6 +1863,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImpor
|
|
|
1860
1863
|
type: Input
|
|
1861
1864
|
}], notValidateOnSubmit: [{
|
|
1862
1865
|
type: Input
|
|
1866
|
+
}], markAsDirtyWhenSubmit: [{
|
|
1867
|
+
type: Input
|
|
1863
1868
|
}], ngSubmit: [{
|
|
1864
1869
|
type: Output
|
|
1865
1870
|
}] } });
|