Skip to content

Commit 509f5a6

Browse files
authored
chore(demos): strict templates, import warnings, update dock manager demo (#14587)
1 parent 65dd162 commit 509f5a6

36 files changed

+129
-91
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666
fi
6767
- name: Test Elements
6868
run: npm run test:elements
69+
- name: Build Demos
70+
run: npm run build
6971
- name: Bundle Tree-Shake & SSR Test
7072
run: npm run build:bundletest
7173
- name: Publish to coveralls.io

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"sourceMap": true,
3939
"optimization": false,
4040
"namedChunks": true,
41-
"aot": false,
4241
"stylePreprocessorOptions": {
4342
"includePaths": [
4443
"node_modules"

src/app/action-strip/action-strip.sample.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h5>Grid Pinning Action</h5>
3232
</igx-action-strip>
3333
</igx-grid>
3434
</div>
35-
<button igxButton="outlined" (click)="this.grid1.transactions.commit(this.grid1.data)">Commit</button>
35+
<button igxButton="outlined" (click)="grid1.transactions.commit(grid1.data)">Commit</button>
3636

3737
<div class="sample-column">
3838
<h5>Grid Pinning and Editing Actions</h5>

src/app/action-strip/action-strip.sample.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
IgxActionStripComponent,
88
IgxActionStripMenuItemDirective,
99
IgxButtonDirective,
10-
IgxButtonGroupComponent,
1110
IgxCellTemplateDirective,
1211
IgxColumnComponent,
1312
IgxGridComponent,
@@ -65,7 +64,6 @@ class User {
6564
imports: [
6665
NgIf,
6766
NgFor,
68-
IgxButtonGroupComponent,
6967
IgxButtonDirective,
7068
IgxActionStripComponent,
7169
IgxIconComponent,

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class AppComponent implements OnInit {
292292
name: 'Grid Auto Size'
293293
},
294294
{
295-
link: '/gridDocManager',
295+
link: '/gridDockManager',
296296
icon: 'view_column',
297297
name: 'Grid in DockManager'
298298
},

src/app/app.routes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ import { GridValidationSampleComponent } from './grid-validation/grid-validation
138138
import { GridExportComponent } from './grid-export/grid-export.sample';
139139
import { DividerComponent } from './divider/divider.component';
140140
import { MonthPickerSampleComponent } from './month-picker/month-picker.sample';
141-
import { GridDocManagerSampleComponent } from './docmanager-grid/docmanager-grid.sample';
141+
import { GridDockManagerSampleComponent } from './dockmanager-grid/dockmanager-grid.sample';
142142
import { HoundComponent } from './hound/hound.component';
143143
import { LabelSampleComponent } from "./label/label.sample";
144144
import { GridRecreateSampleComponent } from './grid-re-create/grid-re-create.sample';
@@ -614,8 +614,8 @@ export const appRoutes: Routes = [
614614
component: GridAutoSizeSampleComponent
615615
},
616616
{
617-
path: 'gridDocManager',
618-
component: GridDocManagerSampleComponent
617+
path: 'gridDockManager',
618+
component: GridDockManagerSampleComponent
619619
},
620620
{
621621
path: 'gridFlex',

src/app/button/button.sample.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
22
import { Router } from '@angular/router';
3-
import { IgxButtonDirective, IgxButtonGroupComponent, IgxIconButtonDirective, IgxIconComponent, IgxIconService, IgxRippleDirective } from 'igniteui-angular';
3+
import { IgxButtonDirective, IgxIconButtonDirective, IgxIconComponent, IgxIconService } from 'igniteui-angular';
44
import { SizeSelectorComponent } from '../size-selector/size-selector.component';
55

66
@Component({
77
selector: 'app-button-sample',
88
styleUrls: ['button.sample.scss'],
99
templateUrl: 'button.sample.html',
1010
encapsulation: ViewEncapsulation.None,
11-
imports: [IgxButtonDirective, IgxIconComponent, IgxButtonGroupComponent, IgxIconButtonDirective, IgxRippleDirective, SizeSelectorComponent]
11+
imports: [IgxButtonDirective, IgxIconComponent, IgxIconButtonDirective, SizeSelectorComponent]
1212
})
1313
export class ButtonSampleComponent implements OnInit {
1414
@ViewChild('inactive', { read: IgxIconButtonDirective, static: true })

src/app/calendar-views/calendar-views.sample.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ChangeDetectionStrategy, Component, OnInit, ViewChild } from '@angular/core';
22
import { FormsModule } from '@angular/forms';
3-
import { DateRangeType, IgxButtonDirective, IgxCardComponent, IgxDaysViewComponent, IgxMonthsViewComponent, IgxRippleDirective, IgxYearsViewComponent } from 'igniteui-angular';
3+
import { DateRangeType, IgxButtonDirective, IgxDaysViewComponent, IgxMonthsViewComponent, IgxRippleDirective, IgxYearsViewComponent } from 'igniteui-angular';
44

55

66
@Component({
@@ -10,7 +10,6 @@ import { DateRangeType, IgxButtonDirective, IgxCardComponent, IgxDaysViewCompone
1010
changeDetection: ChangeDetectionStrategy.OnPush,
1111
imports: [
1212
FormsModule,
13-
IgxCardComponent,
1413
IgxMonthsViewComponent,
1514
IgxYearsViewComponent,
1615
IgxDaysViewComponent,

src/app/calendar/calendar.sample.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ import {
1414
IgxDateRangePickerModule,
1515
IgxCalendarComponent,
1616
IgxCalendarView,
17-
IgxCardComponent,
1817
IgxHintDirective,
1918
IgxIconComponent,
2019
IgxInputDirective,
2120
IgxInputGroupComponent,
22-
IgxLabelDirective,
23-
IgxRippleDirective,
2421
IgxSwitchComponent,
2522
IViewDateChangeEventArgs,
2623
DateRange,
@@ -72,13 +69,10 @@ defineComponents(IgcCalendarComponent);
7269
],
7370
imports: [
7471
IgxButtonDirective,
75-
IgxRippleDirective,
7672
IgxDateRangePickerModule,
77-
IgxCardComponent,
7873
IgxCalendarComponent,
7974
IgxButtonGroupComponent,
8075
IgxInputGroupComponent,
81-
IgxLabelDirective,
8276
IgxInputDirective,
8377
IgxHintDirective,
8478
FormsModule,

src/app/carousel/carousel.sample.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Component, ViewChild } from '@angular/core';
2-
import { NgFor, NgIf } from '@angular/common';
2+
import { NgFor } from '@angular/common';
33
import { FormsModule } from '@angular/forms';
4-
import { CarouselIndicatorsOrientation, IgxButtonDirective, IgxCarouselComponent, IgxCarouselIndicatorDirective, IgxDropDownComponent, IgxDropDownItemComponent, IgxDropDownItemNavigationDirective, IgxSlideComponent, IgxSwitchComponent, IgxToggleActionDirective } from 'igniteui-angular';
4+
import { CarouselIndicatorsOrientation, IGX_CAROUSEL_DIRECTIVES, IgxButtonDirective, IgxCarouselComponent, IgxDropDownComponent, IgxDropDownItemComponent, IgxDropDownItemNavigationDirective, IgxSwitchComponent, IgxToggleActionDirective } from 'igniteui-angular';
55

66

77
@Component({
88
selector: 'app-carousel-sample',
99
styleUrls: ['carousel.sample.scss'],
1010
templateUrl: 'carousel.sample.html',
11-
imports: [IgxSwitchComponent, FormsModule, IgxButtonDirective, IgxToggleActionDirective, IgxDropDownItemNavigationDirective, IgxDropDownComponent, NgFor, IgxDropDownItemComponent, IgxCarouselComponent, IgxSlideComponent, IgxCarouselIndicatorDirective, NgIf]
11+
imports: [IgxSwitchComponent, FormsModule, IgxButtonDirective, IgxToggleActionDirective, IgxDropDownItemNavigationDirective, IgxDropDownComponent, NgFor, IgxDropDownItemComponent, IGX_CAROUSEL_DIRECTIVES]
1212
})
1313
export class CarouselSampleComponent {
1414
@ViewChild('car', { static: true })

0 commit comments

Comments
 (0)