Skip to content

Commit adbe8ae

Browse files
author
Konstantin Dinev
authored
Merge branch 'vNext' into kdinev-patch-2
2 parents 96f21a2 + e94ffb5 commit adbe8ae

9 files changed

Lines changed: 2490 additions & 2193 deletions

File tree

package-lock.json

Lines changed: 2437 additions & 2171 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"domino": "^2.1.4",
6363
"file-saver": "^2.0.2",
6464
"hammerjs": "^2.0.8",
65-
"igniteui-angular": "^13.2.0-beta.0",
65+
"igniteui-angular": "^13.2.0-rc.0",
6666
"igniteui-angular-charts": "^12.1.1",
6767
"igniteui-angular-core": "^12.1.1",
6868
"igniteui-angular-i18n": "^12.2.4",
@@ -118,4 +118,4 @@
118118
"typescript": "4.4.4",
119119
"webpack-bundle-analyzer": "^4.5.0"
120120
}
121-
}
121+
}

src/app/grid/grid-groupby-custom-sample/grid-groupby-custom-sample.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</igx-column>
1313
<igx-column field="ShipCountry" header="Ship Country" width="200px" [groupable]="true">
1414
</igx-column>
15-
<igx-column field="OrderDate" header="Order Date" width="200px" [groupable]="true">
15+
<igx-column field="OrderDate" header="Order Date" width="200px" [groupable]="true" dataType="date">
1616
<ng-template igxCell let-value>
1717
{{ value | date:'shortDate' }}
1818
</ng-template>

src/app/grid/grid-sorting-sample/grid-sorting-sample.component.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99
Clear Grouped columns
1010
</button>
1111
<igx-grid-toolbar-actions>
12-
<igx-select (closed)="grid1.sortingExpressions = []">
13-
<label igxLabel>Select Sorting Type</label>
14-
<igx-select-item (click)="sortingOptions = type.toLocaleLowerCase() ==='single' ? {mode: 'single'} : {mode: 'multiple'}" *ngFor="let type of sortingTypes" [value]="type">
15-
{{type}}
16-
</igx-select-item>
17-
</igx-select>
12+
<igx-simple-combo #comboItem
13+
[data]="sortingTypes"
14+
[displayKey]="'mode'"
15+
[(ngModel)]="sortingOptions"
16+
(keydown)="handleSearchResults($event)">
17+
<ng-template igxComboClearIcon></ng-template>
18+
<ng-template igxComboItem let-item>
19+
<div>{{ item.mode | uppercase }}</div>
20+
</ng-template>
21+
</igx-simple-combo>
1822
</igx-grid-toolbar-actions>
1923
</igx-grid-toolbar>
2024

src/app/grid/grid-sorting-sample/grid-sorting-sample.component.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ export class SortingSampleComponent implements OnInit {
1313
@ViewChild('grid1', { read: IgxGridComponent, static: true })
1414
public grid1: IgxGridComponent;
1515
public data: any[];
16-
public sortingTypes = ['SINGLE', 'MULTIPLE'];
17-
public sortingOptions: ISortingOptions = {mode: 'multiple'};
16+
public sortingTypes: ISortingOptions[] = [
17+
{
18+
mode: 'single'
19+
}, {
20+
mode: 'multiple'
21+
}
22+
];
23+
public sortingOptions: ISortingOptions = this.sortingTypes[1];
1824

1925
constructor() { }
2026

@@ -31,4 +37,8 @@ export class SortingSampleComponent implements OnInit {
3137
public formatDate(val: Date) {
3238
return new Intl.DateTimeFormat('en-US').format(val);
3339
}
40+
41+
handleSearchResults(event: KeyboardEvent) {
42+
event.preventDefault();
43+
}
3444
}

src/app/grid/grids.module.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
IgxActionStripModule, IgxAvatarModule, IgxBadgeModule, IgxBannerModule, IgxButtonGroupModule, IgxButtonModule, IgxCardModule,
99
IgxCheckboxModule, IgxChipsModule, IgxComboModule,
1010
IgxDatePickerModule, IgxDialogModule, IgxDividerModule, IgxExpansionPanelModule, IgxFocusModule,
11-
IgxGridModule, IgxIconModule, IgxInputGroupModule, IgxListModule, IgxProgressBarModule, IgxRadioModule, IgxRippleModule, IgxSelectModule, IgxSliderModule,
11+
IgxGridModule, IgxIconModule, IgxInputGroupModule, IgxListModule, IgxProgressBarModule, IgxRadioModule, IgxRippleModule, IgxSelectModule, IgxSimpleComboModule, IgxSliderModule,
1212
IgxSnackbarModule, IgxSwitchModule, IgxTabsModule, IgxToastModule, IgxToggleModule, IgxTooltipModule
1313
} from 'igniteui-angular';
1414
import { IgxPreventDocumentScrollModule } from '../directives/prevent-scroll.directive';
@@ -287,7 +287,8 @@ import { GridSummaryTemplateComponent } from './grid-summary-template/grid-summa
287287
IgxCardModule,
288288
IgxDividerModule,
289289
IgxActionStripModule,
290-
IgxListModule
290+
IgxListModule,
291+
IgxSimpleComboModule
291292
]
292293
})
293294
export class GridsModule { }

src/app/tree-grid/tree-grid-sorting-sample/tree-grid-sorting-sample.component.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@
1010
Clear Grouped columns
1111
</button>
1212
<igx-grid-toolbar-actions>
13-
<igx-select (selectionChanging)="treegrid1.sortingExpressions = []">
14-
<label igxLabel>Select Sorting Type</label>
15-
<igx-select-item (click)="sortingOptions = type.toLocaleLowerCase() ==='single' ? {mode: 'single'} : {mode: 'multiple'}" *ngFor="let type of sortingTypes" [value]="type">
16-
{{type}}
17-
</igx-select-item>
18-
</igx-select>
13+
<igx-simple-combo #comboItem
14+
[data]="sortingTypes"
15+
[displayKey]="'mode'"
16+
[(ngModel)]="sortingOptions"
17+
(keydown)="handleSearchResults($event)">
18+
<ng-template igxComboClearIcon></ng-template>
19+
<ng-template igxComboItem let-item>
20+
<div>{{ item.mode | uppercase }}</div>
21+
</ng-template>
22+
</igx-simple-combo>
1923
</igx-grid-toolbar-actions>
2024
</igx-grid-toolbar>
2125

src/app/tree-grid/tree-grid-sorting-sample/tree-grid-sorting-sample.component.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ export class TreeGridSortingSampleComponent implements OnInit {
1616
public contextmenuX = 0;
1717
public contextmenuY = 0;
1818
public clickedCell = null;
19-
public sortingOptions: ISortingOptions = {mode: 'multiple'};
20-
public sortingTypes = ['SINGLE', 'MULTIPLE'];
19+
public sortingTypes: ISortingOptions[] = [
20+
{
21+
mode: 'single'
22+
}, {
23+
mode: 'multiple'
24+
}
25+
];
26+
public sortingOptions: ISortingOptions = this.sortingTypes[1];
2127

2228
constructor() { }
2329

@@ -44,4 +50,8 @@ export class TreeGridSortingSampleComponent implements OnInit {
4450
public disableContextMenu() {
4551
this.contextmenu = false;
4652
}
53+
54+
handleSearchResults(event: KeyboardEvent) {
55+
event.preventDefault();
56+
}
4757
}

src/app/tree-grid/tree-grid.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
IgxRadioModule,
1717
IgxRippleModule,
1818
IgxSelectModule,
19+
IgxSimpleComboModule,
1920
IgxSliderModule,
2021
IgxSnackbarModule,
2122
IgxSwitchModule,
@@ -241,7 +242,8 @@ import { TreeGridSummaryTemplateComponent } from './treegrid-summary-template/tr
241242
IgxBannerModule,
242243
IgxSnackbarModule,
243244
IgxTooltipModule,
244-
IgxListModule
245+
IgxListModule,
246+
IgxSimpleComboModule
245247
],
246248
providers: [RemoteFilteringService]
247249
})

0 commit comments

Comments
 (0)