diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/checkbox/checkbox.component.ts b/npm/ng-packs/packages/theme-shared/src/lib/components/checkbox/checkbox.component.ts index 1d7435a8a2..e298dc7443 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/components/checkbox/checkbox.component.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/components/checkbox/checkbox.component.ts @@ -1,6 +1,6 @@ import { AbstractNgModelComponent } from '@abp/ng.core'; import { Component, EventEmitter, forwardRef, Injector, Input, Output } from '@angular/core'; -import { CheckboxControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; +import { NG_VALUE_ACCESSOR } from '@angular/forms'; @Component({ selector: 'abp-checkbox', @@ -9,19 +9,18 @@ import { CheckboxControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' providers: [ { provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef(() => CheckboxComponent), + useExisting: forwardRef(() => FormCheckboxComponent), multi: true, }, ] }) -export class CheckboxComponent extends AbstractNgModelComponent { +export class FormCheckboxComponent extends AbstractNgModelComponent { - @Input() label: string; + @Input() label?: string; @Input() checkboxId!: string; - @Input() formControl!: string; - @Input() checkboxStyle: string = ''; - @Input() checkboxClass: string = ''; - @Input() checkboxReadonly: boolean = false; + @Input() checkboxStyle = ''; + @Input() checkboxClass = ''; + @Input() checkboxReadonly = false; @Output() onBlur = new EventEmitter(); @Output() onFocus = new EventEmitter(); diff --git a/npm/ng-packs/packages/theme-shared/src/lib/enums/form.ts b/npm/ng-packs/packages/theme-shared/src/lib/enums/form.ts index 17218e0a50..9ccbb93655 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/enums/form.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/enums/form.ts @@ -1,4 +1,4 @@ export enum eFormComponets { FormInputComponent = 'FormInputComponent', - FormCheckboxComponent = 'CheckboxComponent', + FormCheckboxComponent = 'FormCheckboxComponent', }