();
constructor(injector: Injector) {
super(injector);
}
-
}
diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/form-input/form-input.component.ts b/npm/ng-packs/packages/theme-shared/src/lib/components/form-input/form-input.component.ts
index d7f1f48c9d..a901cc2f4e 100644
--- a/npm/ng-packs/packages/theme-shared/src/lib/components/form-input/form-input.component.ts
+++ b/npm/ng-packs/packages/theme-shared/src/lib/components/form-input/form-input.component.ts
@@ -6,17 +6,20 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
selector: 'abp-form-input',
template: `
-
+
+ [ngClass]="inputClass"
+ [ngStyle]="inputStyle"
+ (blur)="formBlur.next()"
+ (focus)="formFocus.next()"
+ [(ngModel)]="value"
+ />
`,
providers: [
@@ -25,22 +28,21 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
useExisting: forwardRef(() => FormInputComponent),
multi: true,
},
- ]
+ ],
})
export class FormInputComponent extends AbstractNgModelComponent {
@Input() inputId!: string;
- @Input() inputReadonly: boolean = false;
- @Input() label: string = '';
+ @Input() inputReadonly = false;
+ @Input() label = '';
@Input() labelClass = 'form-label';
- @Input() inputPlaceholder: string = '';
- @Input() inputType: string = 'text';
- @Input() inputStyle: string = '';
- @Input() inputClass: string = 'form-control';
- @Output() onBlur = new EventEmitter();
- @Output() onFocus = new EventEmitter();
+ @Input() inputPlaceholder = '';
+ @Input() inputType = 'text';
+ @Input() inputStyle = '';
+ @Input() inputClass = 'form-control';
+ @Output() formBlur = new EventEmitter();
+ @Output() formFocus = new EventEmitter();
constructor(injector: Injector) {
super(injector);
}
-
}