Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions libs/design/form-field/src/form-field/form-field.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import { DaffFormFieldControl } from '../form-field-control';

let daffFormFieldId = 0;

export type DaffFormFieldApperanace = 'fluid' | 'fixed';
export type DaffFormFieldAppearance = 'fluid' | 'fixed';

enum DaffFormFieldApperanaceEnum {
enum DaffFormFieldAppearanceEnum {
Fluid = 'fluid',
Fixed = 'fixed',
}
Expand Down Expand Up @@ -174,15 +174,15 @@ export class DaffFormFieldComponent implements AfterContentInit, AfterContentChe
/**
* The appearance of the form field. Defaults to `fluid`.
*/
appearance = input(DaffFormFieldApperanaceEnum.Fluid, {
transform: (value: DaffFormFieldApperanace | '' | null | undefined) =>
value || DaffFormFieldApperanaceEnum.Fluid,
appearance = input(DaffFormFieldAppearanceEnum.Fluid, {
transform: (value: DaffFormFieldAppearance | '' | null | undefined) =>
value || DaffFormFieldAppearanceEnum.Fluid,
});

/**
* @docs-private
*/
isFixed = computed(() => this.appearance() === DaffFormFieldApperanaceEnum.Fixed);
isFixed = computed(() => this.appearance() === DaffFormFieldAppearanceEnum.Fixed);

/**
* The unique id of the form field. Defaults to an autogenerated value. When using this,
Expand Down
4 changes: 2 additions & 2 deletions libs/design/form-field/src/specs/usage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { DaffInputComponent } from '@daffodil/design/input';
import { DaffNativeSelectComponent } from '@daffodil/design/native-select';
import { patchElementFocus } from '@daffodil/design/testing';

import { DaffFormFieldApperanace } from '../form-field/form-field.component';
import { DaffFormFieldAppearance } from '../form-field/form-field.component';

@Component({ template: `
<daff-form-field [id]="id()" [appearance]="appearance()">
Expand All @@ -41,7 +41,7 @@ imports: [
class WrapperComponent {
formControl = new UntypedFormControl('', Validators.required);
id = signal<string>(undefined);
appearance = signal<DaffFormFieldApperanace>('fixed');
appearance = signal<DaffFormFieldAppearance>('fixed');
}

describe('@daffodil/design | DaffFormFieldComponent | Usage', () => {
Expand Down
Loading