Skip to content

Commit

Permalink
fix: removed whitespaces for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
edskeizer authored Nov 27, 2019
1 parent a4de144 commit cd0faae
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/app/lib/ngx-select/ngx-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import {
Component, ElementRef, EventEmitter, forwardRef, HostListener, IterableDiffer, IterableDiffers, ChangeDetectorRef, ContentChild,
TemplateRef, Optional, Inject, InjectionToken, ChangeDetectionStrategy, OnDestroy
} from '@angular/core';
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
import {DomSanitizer, SafeHtml} from '@angular/platform-browser';
import {Observable, Subject, BehaviorSubject, EMPTY, of, from, merge, combineLatest} from 'rxjs';
import {tap, filter, map, share, flatMap, toArray, distinctUntilChanged} from 'rxjs/operators';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { Observable, Subject, BehaviorSubject, EMPTY, of, from, merge, combineLatest } from 'rxjs';
import { tap, filter, map, share, flatMap, toArray, distinctUntilChanged } from 'rxjs/operators';
import * as lodashNs from 'lodash';
import * as escapeStringNs from 'escape-string-regexp';
import {NgxSelectOptGroup, NgxSelectOption, TSelectOption} from './ngx-select.classes';
import {NgxSelectOptionDirective, NgxSelectOptionNotFoundDirective, NgxSelectOptionSelectedDirective} from './ngx-templates.directive';
import {INgxOptionNavigated, INgxSelectOption, INgxSelectOptions} from './ngx-select.interfaces';
import { NgxSelectOptGroup, NgxSelectOption, TSelectOption } from './ngx-select.classes';
import { NgxSelectOptionDirective, NgxSelectOptionNotFoundDirective, NgxSelectOptionSelectedDirective } from './ngx-templates.directive';
import { INgxOptionNavigated, INgxSelectOption, INgxSelectOptions } from './ngx-select.interfaces';

const _ = lodashNs;
const escapeString = escapeStringNs;
Expand Down Expand Up @@ -85,16 +85,16 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess
@Output() public navigated = new EventEmitter<INgxOptionNavigated>();
@Output() public selectionChanges = new EventEmitter<INgxSelectOption[]>();

@ViewChild('main', {static: true}) protected mainElRef: ElementRef;
@ViewChild('input', {static: false}) public inputElRef: ElementRef;
@ViewChild('choiceMenu', {static: false}) protected choiceMenuElRef: ElementRef;
@ViewChild('main', { static: true }) protected mainElRef: ElementRef;
@ViewChild('input', { static: false }) public inputElRef: ElementRef;
@ViewChild('choiceMenu', { static: false }) protected choiceMenuElRef: ElementRef;

@ContentChild(NgxSelectOptionDirective, {read: TemplateRef, static: true}) templateOption: NgxSelectOptionDirective;
@ContentChild(NgxSelectOptionDirective, { read: TemplateRef, static: true }) templateOption: NgxSelectOptionDirective;

@ContentChild(NgxSelectOptionSelectedDirective, {read: TemplateRef, static: true})
@ContentChild(NgxSelectOptionSelectedDirective, { read: TemplateRef, static: true })
templateSelectedOption: NgxSelectOptionSelectedDirective;

@ContentChild(NgxSelectOptionNotFoundDirective, {read: TemplateRef, static: true})
@ContentChild(NgxSelectOptionNotFoundDirective, { read: TemplateRef, static: true })
templateOptionNotFound: NgxSelectOptionNotFoundDirective;

public optionsOpened = false;
Expand Down Expand Up @@ -249,7 +249,7 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess
}

public setBtnSize() {
return {'btn-sm': this.size === 'small', 'btn-lg': this.size === 'large'};
return { 'btn-sm': this.size === 'small', 'btn-lg': this.size === 'large' };
}

public get optionsSelected(): NgxSelectOption[] {
Expand Down Expand Up @@ -298,7 +298,7 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess
private navigateOption(navigation: ENavigation) {
this.optionsFilteredFlat().pipe(
map<NgxSelectOption[], INgxOptionNavigated>((options: NgxSelectOption[]) => {
const navigated: INgxOptionNavigated = {index: -1, activeOption: null, filteredOptionList: options};
const navigated: INgxOptionNavigated = { index: -1, activeOption: null, filteredOptionList: options };
let newActiveIdx;
switch (navigation) {
case ENavigation.first:
Expand Down Expand Up @@ -362,9 +362,9 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess

}
}

public ngOnDestroy(): void {
this.cd.detach();
this.cd.detach();
}

public canClearNotMultiple(): boolean {
Expand Down

0 comments on commit cd0faae

Please sign in to comment.