Skip to content

Commit 243a2f2

Browse files
refactor(GridCellAPISampleComponent): fix dependencies warnings
1 parent d537904 commit 243a2f2

File tree

5 files changed

+12
-20
lines changed

5 files changed

+12
-20
lines changed

projects/igniteui-angular/src/lib/carousel/carousel.component.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
317317
*
318318
* @memberOf IgxCarouselComponent
319319
*/
320-
@Output() public onSlideChanged = new EventEmitter<ISlideEventArgs>();
320+
@Output() public SlideChanged = new EventEmitter<ISlideEventArgs>();
321321

322322
/**
323323
* An event that is emitted after a slide has been added to the carousel.
@@ -328,7 +328,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
328328
*
329329
* @memberOf IgxCarouselComponent
330330
*/
331-
@Output() public onSlideAdded = new EventEmitter<ISlideEventArgs>();
331+
@Output() public SlideAdded = new EventEmitter<ISlideEventArgs>();
332332

333333
/**
334334
* An event that is emitted after a slide has been removed from the carousel.
@@ -339,7 +339,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
339339
*
340340
* @memberOf IgxCarouselComponent
341341
*/
342-
@Output() public onSlideRemoved = new EventEmitter<ISlideEventArgs>();
342+
@Output() public SlideRemoved = new EventEmitter<ISlideEventArgs>();
343343

344344
/**
345345
* An event that is emitted after the carousel has been paused.
@@ -350,7 +350,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
350350
*
351351
* @memberOf IgxCarouselComponent
352352
*/
353-
@Output() public onCarouselPaused = new EventEmitter<IgxCarouselComponent>();
353+
@Output() public CarouselPaused = new EventEmitter<IgxCarouselComponent>();
354354

355355
/**
356356
* An event that is emitted after the carousel has resumed transitioning between `slides`.
@@ -815,7 +815,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
815815
public stop() {
816816
if (this.pause) {
817817
this.playing = false;
818-
this.onCarouselPaused.emit(this);
818+
this.CarouselPaused.emit(this);
819819
this.resetInterval();
820820
}
821821
}
@@ -944,7 +944,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
944944
} else {
945945
this.currentItem = slide;
946946
}
947-
this.onSlideChanged.emit({ carousel: this, slide });
947+
this.SlideChanged.emit({ carousel: this, slide });
948948
this.restartInterval();
949949
}
950950
}
@@ -967,7 +967,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
967967
diff.forEachAddedItem((record: IterableChangeRecord<IgxSlideComponent>) => {
968968
const slide = record.item;
969969
slide.total = this.total;
970-
this.onSlideAdded.emit({ carousel: this, slide });
970+
this.SlideAdded.emit({ carousel: this, slide });
971971
if (slide.active) {
972972
this.currentItem = slide;
973973
}
@@ -976,7 +976,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
976976

977977
diff.forEachRemovedItem((record: IterableChangeRecord<IgxSlideComponent>) => {
978978
const slide = record.item;
979-
this.onSlideRemoved.emit({ carousel: this, slide });
979+
this.SlideRemoved.emit({ carousel: this, slide });
980980
if (slide.active) {
981981
slide.active = false;
982982
this.currentItem = this.get(slide.index < this.total ? slide.index : this.total - 1);

src/app/grid-cell-api/grid-cell-api.sample.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import {
44
IgxTreeGridComponent,
55
IgxHierarchicalGridComponent,
66
CellType,
7-
IgxGridTransaction,
8-
IgxTransactionService
97
} from 'igniteui-angular';
108
import { HIERARCHICAL_SAMPLE_DATA } from '../shared/sample-data';
119

src/app/grid-row-api/grid-row-api.sample.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ export class GridRowAPISampleComponent implements OnInit {
179179
public togglePinning(grid: IgxGridComponent | IgxTreeGridComponent | IgxHierarchicalGridComponent,
180180
byIndex: boolean, index: number, key: any) {
181181
const row: RowType = byIndex ? grid.getRowByIndex(index) : grid.getRowByKey(key);
182-
const index2: number = row.index;
183182
if (row.pinned) {
184183
row.unpin();
185184
} else {
@@ -308,11 +307,10 @@ export class GridRowAPISampleComponent implements OnInit {
308307
}
309308
}
310309

311-
public onEnter(args) {
310+
public onEnter() {
312311
this.dragIcon = 'add';
313312
}
314313
public onRowDragStart(args: IRowDragStartEventArgs) {
315-
const row = args.dragData;
316314
const count = this.grid.selectedRows.length || 1;
317315
this.countIcon = `filter_${count > 9 ? '9_plus' : `${count}`}`;
318316
}

src/app/tree-grid-groupby/tree-grid-groupby.sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class TreeGridGroupBySampleComponent implements OnInit {
5959
this.density = this.displayDensities[event.index].label;
6060
}
6161

62-
public cellEditDone(event: any) {
62+
public cellEditDone() {
6363
this.groupingExpressions = [...this.groupingExpressions]; // will trigger grouping pipe
6464
}
6565
}

src/app/tree/tree.sample.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,14 @@ export class TreeSampleComponent implements AfterViewInit, OnDestroy {
188188

189189
public ngAfterViewInit() {
190190
this.tree.nodes.toArray().forEach(node => {
191-
node.selectedChange.subscribe((ev) => {
192-
// console.log(ev);
193-
});
191+
node.selectedChange.subscribe(() => { });
194192
});
195193
}
196194

197195
public ngOnDestroy() {
198196
}
199197

200-
public toggleSelectionMode(args) {
201-
// this.tree.selection = this.selectionModes[args.index].selectMode;
202-
}
198+
public toggleSelectionMode() { }
203199

204200
public changeDensity(args) {
205201
this.density = this.displayDensities[args.index].selectMode;

0 commit comments

Comments
 (0)