-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(es6): resolve es6+ compile errors and most circular deps #3011
Use base class or a token/interface combo for DI child components to avoid Circular dependency warnings and compilation errors in targets es2015 and newer. Added explicit constructors in extending classes as DI metadata doesn't get added otherwise (subject to fixes in ng compiler) Also resolved some general circular refs and updated tests that wouldn't work with es6. Affected: list, calendar, combo, input-group, drop-down, expansion-panel, grids, tabs, time-picker
- Loading branch information
1 parent
7e57898
commit f5f025b
Showing
50 changed files
with
1,188 additions
and
985 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './calendar'; | ||
export * from './calendar.directives'; | ||
export * from './calendar.component'; | ||
export * from './calendar.directives'; | ||
export * from './calendar.module'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { ElementRef, EventEmitter, QueryList } from '@angular/core'; | ||
import { CancelableEventArgs } from '../core/utils'; | ||
import { IFilteringExpression } from '../data-operations/filtering-expression.interface'; | ||
import { IgxDropDownItemBase } from '../drop-down/drop-down.base'; | ||
|
||
export const IGX_COMBO_COMPONENT = 'IgxComboComponentToken'; | ||
|
||
/** @hidden @internal TODO: Evaluate */ | ||
export interface IgxComboBase { | ||
id: string; | ||
children: QueryList<IgxDropDownItemBase>; | ||
data: any[]; | ||
valueKey: string; | ||
groupKey: string; | ||
isRemote: boolean; | ||
filteredData: any[]; | ||
filteringExpressions: IFilteringExpression[]; | ||
totalItemCount: number; | ||
itemsMaxHeight: number; | ||
itemHeight: number; | ||
searchValue: string; | ||
searchInput: ElementRef<HTMLInputElement>; | ||
comboInput: ElementRef<HTMLInputElement>; | ||
onOpened: EventEmitter<void>; | ||
onOpening: EventEmitter<CancelableEventArgs>; | ||
onClosing: EventEmitter<CancelableEventArgs>; | ||
onClosed: EventEmitter<void>; | ||
|
||
triggerCheck(); | ||
setSelectedItem(itemID: any, select?: boolean); | ||
isItemSelected(item: any): boolean; | ||
addItemToCollection(); | ||
isAddButtonVisible(): boolean; | ||
handleInputChange(event?); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.