Skip to content

Commit fbb982e

Browse files
committed
fix(*): more lint fixes
1 parent ab3a17b commit fbb982e

15 files changed

+190
-121
lines changed

projects/igniteui-angular-wrappers/src/lib/igcombo/igcombo.component.ts

Lines changed: 116 additions & 70 deletions
Large diffs are not rendered by default.

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridfiltering.directive.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export class IgGridFilteringFeature extends Feature<IgGridFiltering> {
2424
public getFilteringMatchesCount(): number { return; }
2525

2626
/**
27-
* Toggle filter row when mode is simple or [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is true. Otherwise show/hide advanced dialog.
27+
* Toggle filter row when mode is simple or
28+
* [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is true. Otherwise show/hide advanced dialog.
2829
*
2930
* @param event Column key
3031
*/
@@ -34,15 +35,23 @@ export class IgGridFilteringFeature extends Feature<IgGridFiltering> {
3435
/**
3536
* Applies filtering programmatically and updates the UI by default.
3637
*
37-
* @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: } where fieldName is the key of the column, expr is the actual expression string with which we would like to filter, logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain", "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty", "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear", "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and undefined, as well as the empty string.
38+
* @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: }
39+
* where fieldName is the key of the column, expr is the actual expression string with which we would like to filter,
40+
* logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain",
41+
* "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty",
42+
* "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear",
43+
* "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and
44+
* undefined, as well as the empty string.
3845
* @param updateUI specifies whether the filter row should be also updated once the grid is filtered
39-
* @param addedFromAdvanced
46+
* @param addedFromAdvanced specifies whether the filter is added from advanced filtering
4047
*/
4148
/* istanbul ignore next */
4249
public filter(expressions: any[], updateUI?: boolean, addedFromAdvanced?: boolean): void { return; }
4350

4451
/**
45-
* Check whether filterCondition requires or not filtering expression - e.g. if filterCondition is "lastMonth", "thisMonth", "null", "notNull", "true", "false", etc. then filtering expression is NOT required
52+
* Check whether filterCondition requires or not filtering expression
53+
* e.g. if filterCondition is "lastMonth", "thisMonth", "null", "notNull", "true", "false", etc.
54+
* then filtering expression is NOT required
4655
*
4756
* @param filterCondition filtering condition - e.g. "true", "false", "yesterday", "empty", "null", etc.
4857
*/

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridgroupby.directive.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ElementRef, Directive } from '@angular/core';
22
import { Feature } from '../feature';
33

44
@Directive({
5+
// tslint:disable-next-line:directive-selector
56
selector: 'group-by',
67
inputs: ['disabled', 'create', 'groupByAreaVisibility', 'initialExpand', 'emptyGroupByAreaContent', 'emptyGroupByAreaContentSelectColumns', 'expansionIndicatorVisibility', 'groupByLabelWidth', 'labelDragHelperOpacity', 'indentation', 'defaultSortingDirection', 'groupedColumns', 'resultResponseKey', 'groupedRowTextTemplate', 'type', 'groupByUrlKey', 'groupByUrlKeyAscValue', 'groupByUrlKeyDescValue', 'summarySettings', 'columnSettings', 'expandTooltip', 'collapseTooltip', 'removeButtonTooltip', 'modalDialogGroupByOnClick', 'modalDialogGroupByButtonText', 'modalDialogCaptionButtonDesc', 'modalDialogCaptionButtonAsc', 'modalDialogCaptionButtonUngroup', 'modalDialogCaptionText', 'modalDialogDropDownLabel', 'modalDialogRootLevelHierarchicalGrid', 'modalDialogDropDownButtonCaption', 'modalDialogClearAllButtonLabel', 'emptyGroupByAreaContentSelectColumnsCaption', 'modalDialogDropDownWidth', 'modalDialogDropDownAreaWidth', 'modalDialogAnimationDuration', 'modalDialogWidth', 'modalDialogHeight', 'modalDialogButtonApplyText', 'modalDialogButtonCancelText', 'useGridColumnFormatter', 'persist', 'groupByDialogContainment', 'dialogWidget', 'inherit'],
78
outputs: ['groupedColumnsChanging', 'groupedColumnsChanged', 'modalDialogMoving', 'modalDialogClosing', 'modalDialogClosed', 'modalDialogOpening', 'modalDialogOpened', 'modalDialogContentsRendering', 'modalDialogContentsRendered', 'modalDialogButtonApplyClick', 'modalDialogButtonResetClick', 'modalDialogGroupingColumn', 'modalDialogGroupColumn', 'modalDialogUngroupingColumn', 'modalDialogUngroupColumn', 'modalDialogSortGroupedColumn']
@@ -51,7 +52,8 @@ export class IgGridGroupByFeature extends Feature<IgGridGroupBy> {
5152
public checkColumnIsGrouped(key: string, layout: string): void { return; }
5253

5354
/**
54-
* Get grouped data by value for the specific column. NOTE: Before calling this function the data(that is passed as an argument) should be sorted by colKey.
55+
* Get grouped data by value for the specific column.
56+
* NOTE: Before calling this function the data(that is passed as an argument) should be sorted by colKey.
5557
*
5658
* @param data data (sorted by colKey) that is used to get the records from.
5759
* @param colKey key of the column for which grouping will be applied.
@@ -70,7 +72,8 @@ export class IgGridGroupByFeature extends Feature<IgGridGroupBy> {
7072
* Groups by a column
7173
*
7274
* @param key Column Key - group by the column with the specified key
73-
* @param layout layout is an optional parameter. if set it means the grouped column is not in the root level but is a child layout column
75+
* @param layout layout is an optional parameter.
76+
* If set it means the grouped column is not in the root level but is a child layout column
7477
* @param sortingDirection if not set it is taken from option defaultSortingDirection
7578
*/
7679
/* istanbul ignore next */
@@ -80,7 +83,8 @@ export class IgGridGroupByFeature extends Feature<IgGridGroupBy> {
8083
* Removes the specified column from the group by columns list, executes the group by operation and updates the view.
8184
*
8285
* @param key Column Key - ungroup by the column with the specified key
83-
* @param layout Layout is an optional parameter. If set it means the grouped column is not in the root level but is a child layout column.
86+
* @param layout Layout is an optional parameter.
87+
* If set it means the grouped column is not in the root level but is a child layout column.
8488
*/
8589
/* istanbul ignore next */
8690
public ungroupByColumn(key: string, layout?: string): void { return; }

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridhiding.directive.ts

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,41 +31,51 @@ export class IgGridHidingFeature extends Feature<IgGridHiding> {
3131

3232
/**
3333
* Shows a hidden column. If the column is not hidden the method does nothing.
34-
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
34+
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel.
35+
* This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
3536
*
36-
* @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
37-
* @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string.
37+
* @param column An identifier for the column.
38+
* If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
39+
* @param isMultiColumnHeader If it is true then the column is of type multicolumnheader.
40+
* An identifier for the column should be of type string.
3841
* @param callback Specifies a custom function to be called when the column(s) is shown(optional)
3942
*/
4043
/* istanbul ignore next */
4144
public showColumn(column: object, isMultiColumnHeader?: boolean, callback?: () => void): void { return; }
4245

4346
/**
4447
* Hides a visible column. If the column is hidden the method does nothing.
45-
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
48+
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel.
49+
* This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
4650
*
47-
* @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
48-
* @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string.
51+
* @param column An identifier for the column.
52+
* If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
53+
* @param isMultiColumnHeader If it is true then the column is of type multicolumnheader.
54+
* An identifier for the column should be of type string.
4955
* @param callback Specifies a custom function to be called when the column is hidden(optional)
5056
*/
5157
/* istanbul ignore next */
5258
public hideColumn(column: object, isMultiColumnHeader?: boolean, callback?: () => void): void { return; }
5359

5460
/**
5561
* Hides visible columns specified by the array. If the column is hidden the method does nothing.
56-
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
62+
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel.
63+
* This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
5764
*
58-
* @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
65+
* @param columns An array of identifiers for the columns.
66+
* If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
5967
* @param callback Specifies a custom function to be called when all columns are hidden(optional)
6068
*/
6169
/* istanbul ignore next */
6270
public hideMultiColumns(columns: any[], callback?: () => void): void { return; }
6371

6472
/**
6573
* Show visible columns specified by the array. If the column is shown the method does nothing.
66-
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
74+
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel.
75+
* This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
6776
*
68-
* @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
77+
* @param columns An array of identifiers for the columns.
78+
* If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key.
6979
* @param callback Specifies a custom function to be called when all columns are shown(optional)
7080
*/
7181
/* istanbul ignore next */

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridmulticolumnheaders.directive.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Column } from '../column.directive';
44

55

66
@Directive({
7+
// tslint:disable-next-line:directive-selector
78
selector: 'multi-column-headers',
89
inputs: ['inherit'],
910
outputs: ['groupCollapsing', 'groupCollapsed', 'groupExpanding', 'groupExpanded']
@@ -21,13 +22,15 @@ export class IgGridMultiColumnHeadersFeature extends Feature<IgGridMultiColumnHe
2122

2223
/**
2324
* Collapses an expanded group. If the group is collapsed, the method does nothing.
24-
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
25+
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel.
26+
* This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
2527
*/
2628
/* istanbul ignore next */
2729
public collapseGroup(groupKey: string, callback?: () => void): void { return; }
2830
/**
2931
* Expands a collapsed group. If the group is expanded, the method does nothing.
30-
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
32+
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel.
33+
* This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
3134
*/
3235
/* istanbul ignore next */
3336
public expandGroup(groupKey: string, callback?: () => void): void { return; }
@@ -38,7 +41,8 @@ export class IgGridMultiColumnHeadersFeature extends Feature<IgGridMultiColumnHe
3841
public getMultiColumnHeaders(): Array<Column> { return; }
3942
/**
4043
* Toggles a collapsible group.
41-
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
44+
* Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel.
45+
* This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method.
4246
*/
4347
/* istanbul ignore next */
4448
public toggleGroup(groupKey: string, callback?: () => void): void { return; }

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridpaging.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export class IgGridPagingFeature extends Feature<IgGridPaging> {
2828
public pageSize(size?: number): number { return; }
2929

3030
/**
31-
* Destroys the igGridPaging feature by removing all elements in the pager area, unbinding events, and resetting data to discard data filtering on paging.
31+
* Destroys the igGridPaging feature by removing all elements in the pager area,
32+
* unbinding events, and resetting data to discard data filtering on paging.
3233
*/
3334
/* istanbul ignore next */
3435
public destroy(): void { return; }

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridresizing.directive.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ export class IgGridResizingFeature extends Feature<IgGridResizing> {
2020
/**
2121
* Resizes a column to a specified width in pixels, percents or auto if no width is specified.
2222
*
23-
* @param column An identifier for the column. If a number is provided it will be used as a columnIndex else if a strings is provided it will be used as a columnKey.
24-
* @param width Width of the column in pixels or percents. If no width or "*" is specified the column will be auto-sized to the width of the data in it (including header and footer cells).
23+
* @param column An identifier for the column.
24+
* If a number is provided it will be used as a columnIndex else if a strings is provided it will be used as a columnKey.
25+
* @param width Width of the column in pixels or percents.
26+
* If no width or "*" is specified the column will be auto-sized to the width of the data in it (including header and footer cells).
2527
*/
2628
/* istanbul ignore next */
2729
public resize(column: object, width?: object): void { return; }

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridrowselectors.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ElementRef, Directive } from '@angular/core';
22
import { Feature } from '../feature';
33

44
@Directive({
5+
// tslint:disable-next-line:directive-selector
56
selector: 'row-selectors',
67
inputs: ['disabled', 'create', 'enableRowNumbering', 'enableCheckBoxes', 'rowNumberingSeed', 'rowSelectorColumnWidth', 'requireSelection', 'showCheckBoxesOnFocus', 'inherit', 'enableSelectAllForPaging', 'selectAllForPagingTemplate', 'deselectAllForPagingTemplate'],
78
outputs: ['rowSelectorClicked', 'checkBoxStateChanging', 'checkBoxStateChanged']

projects/igniteui-angular-wrappers/src/lib/iggrid/iggridfeatures/iggridselection.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export class IgGridSelectionFeature extends Feature<IgGridSelection> {
9494
public deselectRowById(id: object): void { return; }
9595

9696
/**
97-
* Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } .
97+
* Returns an array of selected cells in arbitrary order where every objects has the format
98+
* { element: , row: , index: , rowIndex: , columnKey: } .
9899
*
99100
* If multiple selection is disabled the function will return null.
100101
*/

0 commit comments

Comments
 (0)