Skip to content

Commit

Permalink
fix(): rename angular autofucs directive to BalAutoFocus
Browse files Browse the repository at this point in the history
  • Loading branch information
nobilo committed Oct 21, 2022
1 parent dcc7428 commit fbf2eb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/components-angular/src/focus.directive.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { AfterViewInit, Directive, ElementRef } from '@angular/core'

@Directive({
selector: 'autofocus',
selector: 'balAutofocus',
})
export class AutoFocus implements AfterViewInit {
export class BalAutoFocus implements AfterViewInit {
constructor(private elementRef: ElementRef) {}

ngAfterViewInit() {
Expand Down
2 changes: 1 addition & 1 deletion packages/components-angular/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export { CheckboxValueAccessor } from './directives/checkbox-value-accessor'
export { NumericValueAccessor } from './directives/number-value-accessor'
export { SelectValueAccessor } from './directives/select-value-accessor'
export { TextValueAccessor } from './directives/text-value-accessor'
export { AutoFocus } from './focus.directive'
export { BalAutoFocus } from './focus.directive'

// SERVICES
export { BalToastService } from './overlays/toast.service'
Expand Down
4 changes: 2 additions & 2 deletions packages/components-angular/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { SelectValueAccessor } from './directives/select-value-accessor'
import { CheckboxValueAccessor } from './directives/checkbox-value-accessor'
import { NumericValueAccessor } from './directives/number-value-accessor'

import { AutoFocus } from './focus.directive'
import { BalAutoFocus } from './focus.directive'

const DECLARATIONS = [
// directives
AutoFocus,
BalAutoFocus,

// ngModel accessors
CheckboxValueAccessor,
Expand Down

0 comments on commit fbf2eb4

Please sign in to comment.