@recursyve/nice-ui-kit.v2 14.0.0-beta.96 → 14.0.0-beta.97
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/components/base-form/base-form.component.mjs +14 -3
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +11 -1
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +11 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/base-form/base-form.component.d.ts +1 -0
- package/package.json +2 -2
|
@@ -3211,6 +3211,13 @@ class NiceBaseFormComponent {
|
|
|
3211
3211
|
this.unsubscribeAll$ = new Subject();
|
|
3212
3212
|
this.propagate = () => { };
|
|
3213
3213
|
}
|
|
3214
|
+
onChange(event) {
|
|
3215
|
+
if (event) {
|
|
3216
|
+
if (event.code === KeyboardCodes.Enter) {
|
|
3217
|
+
this.clickSubmit();
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3214
3221
|
ngOnInit() {
|
|
3215
3222
|
this.formGroup.valueChanges.pipe(takeUntil(this.unsubscribeAll$)).subscribe(() => {
|
|
3216
3223
|
this.onValueChange(this.formGroup.getRawValue());
|
|
@@ -3271,7 +3278,7 @@ class NiceBaseFormComponent {
|
|
|
3271
3278
|
}
|
|
3272
3279
|
}
|
|
3273
3280
|
NiceBaseFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceBaseFormComponent, deps: [{ token: i1$4.GeneratedFormGroup }], target: i0.ɵɵFactoryTarget.Component });
|
|
3274
|
-
NiceBaseFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: NiceBaseFormComponent, selector: "ng-component", inputs: { loading: "loading" }, outputs: { submit: "submit" }, viewQueries: [{ propertyName: "stepper", first: true, predicate: CdkStepper, descendants: true }], ngImport: i0, template: ``, isInline: true });
|
|
3281
|
+
NiceBaseFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: NiceBaseFormComponent, selector: "ng-component", inputs: { loading: "loading" }, outputs: { submit: "submit" }, host: { listeners: { "keyup": "onChange($event)" } }, viewQueries: [{ propertyName: "stepper", first: true, predicate: CdkStepper, descendants: true }], ngImport: i0, template: ``, isInline: true });
|
|
3275
3282
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceBaseFormComponent, decorators: [{
|
|
3276
3283
|
type: Component,
|
|
3277
3284
|
args: [{
|
|
@@ -3284,6 +3291,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
3284
3291
|
type: Input
|
|
3285
3292
|
}], submit: [{
|
|
3286
3293
|
type: Output
|
|
3294
|
+
}], onChange: [{
|
|
3295
|
+
type: HostListener,
|
|
3296
|
+
args: ["keyup", ["$event"]]
|
|
3287
3297
|
}] } });
|
|
3288
3298
|
|
|
3289
3299
|
class NiceFormSubmitDirective {
|