Skip to content

Commit b51cec1

Browse files
authored
Merge branch 'master' into ibarakov/fix-8162-master
2 parents caa3f67 + 614dfd0 commit b51cec1

File tree

88 files changed

+1830
-596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1830
-596
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,17 @@ All notable changes for each version of this project will be documented in this
3030
- `onOpening` and `onClosing` events are emitting now arguments of `ToggleViewCancelableEventArgs` type.
3131
- `IgxSelect`
3232
- Added `aria-labelledby` property for the items list container(marked as `role="listbox"`). This will ensure the users of assistive technologies will also know what the list items container is used for, upon opening.
33-
- `IgxDatePicker`
33+
- `IgxDatePicker`
3434
- **Breaking Change** - Deprecated the `label` property.
3535
- Added `aria-labelledby` property for the input field. This will ensure the users of assistive technologies will also know what component is used for, upon input focus.
3636
- `igxNavigationDrawer`
3737
- Added `disableAnimation` property which enables/disables the animation, when toggling the drawer. Set to `false` by default.
3838
- `igxTabs`
3939
- Added `disableAnimation` property which enables/disables the transition animation of the tabs' content. Set to `false` by default.
4040
- `IgxExpansionPanel`
41-
- `IExpansionPanelEventArgs.panel` - Deprecated. Usе `owner` property to get a reference to the panel.
41+
- `IExpansionPanelEventArgs.panel` - Deprecated. Usе `owner` property to get a reference to the panel.
42+
- `IgxCalendarComponent`, `IgxMonthsViewComponent` and `IgxYearsViewComponent`
43+
- `tabIndex` property was removed in order to improve on page navigation and to be compliant with W3 accessability recommendations; Also the date grid in the calendar is now only one tab stop, the same approach is applied and in the `IgxMonthsViewComponent` and `IgxYearsViewComponent`;
4244

4345
### New Features
4446
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@angular/platform-browser": "^10.1.0",
5353
"@angular/platform-browser-dynamic": "^10.1.0",
5454
"@angular/router": "^10.1.0",
55-
"@igniteui/material-icons-extended": "^2.3.0",
55+
"@igniteui/material-icons-extended": "^2.4.0",
5656
"@types/hammerjs": "^2.0.36",
5757
"@types/source-map": "0.5.2",
5858
"classlist.js": "^1.1.20150312",

projects/igniteui-angular/migrations/common/tsUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export function getTypeDefinitionAtPosition(langServ: tss.LanguageService, entry
236236
.filter(<(a: ts.Statement) => a is ts.ClassDeclaration>(m => m.kind === ts.SyntaxKind.ClassDeclaration))
237237
.find(m => m.name.getText() === definition.containerName);
238238
const member: ts.ClassElement = classDeclaration
239-
.members
239+
?.members
240240
.find(m => m.name.getText() === definition.name);
241241
if (!member || !member.name) { return null; }
242242
typeDefs = langServ.getTypeDefinitionAtPosition(definition.fileName, member.name.getStart() + 1);

projects/igniteui-angular/migrations/update-10_2_0/changes/members.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,58 @@
99
"IgxTreeGridComponent",
1010
"IgxHierarchicalGridComponent"
1111
]
12+
},
13+
{
14+
"member": "onRowEditEnter",
15+
"replaceWith": "rowEditEnter",
16+
"definedIn": [
17+
"IgxGridComponent",
18+
"IgxTreeGridComponent",
19+
"IgxHierarchicalGridComponent"
20+
]
21+
},
22+
{
23+
"member": "onCellEditEnter",
24+
"replaceWith": "cellEditEnter",
25+
"definedIn": [
26+
"IgxGridComponent",
27+
"IgxTreeGridComponent",
28+
"IgxHierarchicalGridComponent"
29+
]
30+
},
31+
{
32+
"member": "onCellEdit",
33+
"replaceWith": "cellEdit",
34+
"definedIn": [
35+
"IgxGridComponent",
36+
"IgxTreeGridComponent",
37+
"IgxHierarchicalGridComponent"
38+
]
39+
},
40+
{
41+
"member": "onCellEditCancel",
42+
"replaceWith": "cellEditExit",
43+
"definedIn": [
44+
"IgxGridComponent",
45+
"IgxTreeGridComponent",
46+
"IgxHierarchicalGridComponent"
47+
]
48+
},
49+
{
50+
"member": "onRowEditCancel",
51+
"replaceWith": "rowEditExit",
52+
"definedIn": [
53+
"IgxGridComponent",
54+
"IgxTreeGridComponent",
55+
"IgxHierarchicalGridComponent"
56+
]
57+
},
58+
{
59+
"member": "panel",
60+
"replaceWith": "owner",
61+
"definedIn": [
62+
"IExpansionPanelEventArgs"
63+
]
1264
}
1365
]
1466
}

projects/igniteui-angular/migrations/update-10_2_0/index.spec.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,51 @@ describe('Update 10.2.0', () => {
5050
it('should replace selectedRows() with selectedRows in ts files', async () => {
5151
pending('set up tests for migrations through lang service');
5252
});
53+
54+
it('Should remove references to deprecated `pane` property of `IExpansionPanelEventArgs`', async () => {
55+
pending('set up tests for migrations through lang service');
56+
appTree.create(
57+
'/testSrc/appPrefix/component/expansion-test.component.ts',
58+
`import { Component, ViewChild } from '@angular/core';
59+
import { IExpansionPanelEventArgs, IgxExpansionPanelComponent } from 'igniteui-angular';
60+
61+
@Component({
62+
selector: 'app-expansion-test',
63+
templateUrl: './expansion-test.component.html',
64+
styleUrls: ['./expansion-test.component.scss']
65+
})
66+
export class ExpansionTestComponent {
67+
68+
@ViewChild(IgxExpansionPanelComponent, { static: true })
69+
public panel: IgxExpansionPanelComponent;
70+
71+
public onPanelOpened(event: IExpansionPanelEventArgs) {
72+
console.log(event.panel);
73+
}
74+
}`
75+
);
76+
const tree = await schematicRunner
77+
.runSchematicAsync('migration-17', {}, appTree)
78+
.toPromise();
79+
const expectedContent = `import { Component, ViewChild } from '@angular/core';
80+
import { IExpansionPanelEventArgs, IgxExpansionPanelComponent } from 'igniteui-angular';
81+
82+
@Component({
83+
selector: 'app-expansion-test',
84+
templateUrl: './expansion-test.component.html',
85+
styleUrls: ['./expansion-test.component.scss']
86+
})
87+
export class ExpansionTestComponent {
88+
89+
@ViewChild(IgxExpansionPanelComponent, { static: true })
90+
public panel: IgxExpansionPanelComponent;
91+
92+
public onPanelOpened(event: IExpansionPanelEventArgs) {
93+
console.log(event.owner);
94+
}
95+
}`;
96+
expect(
97+
tree.readContent('/testSrc/appPrefix/component/expansion-test.component.ts')
98+
).toEqual(expectedContent);
99+
});
53100
});

projects/igniteui-angular/ng-package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"resize-observer-polyfill",
1313
"igniteui-trial-watermark",
1414
"lodash.merge",
15-
"uuid"
15+
"uuid",
16+
"@igniteui/material-icons-extended"
1617
]
1718
}

projects/igniteui-angular/ng-package.prod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"resize-observer-polyfill",
1515
"igniteui-trial-watermark",
1616
"lodash.merge",
17-
"uuid"
17+
"uuid",
18+
"@igniteui/material-icons-extended"
1819
]
1920
}

projects/igniteui-angular/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373
"resize-observer-polyfill": "^1.5.1",
7474
"igniteui-trial-watermark": "^1.0.3",
7575
"lodash.merge": "^4.6.2",
76-
"uuid": "^8.3.0"
76+
"uuid": "^8.3.0",
77+
"@igniteui/material-icons-extended": "^2.4.0"
7778
},
7879
"peerDependencies": {
7980
"@angular/common": "^10.0.0",

projects/igniteui-angular/schematics/utils/dependency-handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ export const DEPENDENCIES_MAP: PackageEntry[] = [
3131
{ name: 'igniteui-trial-watermark', target: PackageTarget.NONE },
3232
{ name: 'lodash.merge', target: PackageTarget.NONE },
3333
{ name: 'uuid', target: PackageTarget.NONE },
34+
{ name: 'web-animations-js', target: PackageTarget.REGULAR },
35+
{ name: '@igniteui/material-icons-extended', target: PackageTarget.REGULAR },
3436
// peerDependencies
3537
{ name: '@angular/forms', target: PackageTarget.NONE },
3638
{ name: '@angular/common', target: PackageTarget.NONE },
3739
{ name: '@angular/core', target: PackageTarget.NONE },
3840
{ name: '@angular/animations', target: PackageTarget.NONE },
39-
{ name: 'web-animations-js', target: PackageTarget.REGULAR },
4041
// igxDevDependencies
4142
{ name: '@igniteui/angular-schematics', target: PackageTarget.DEV }
4243
];

0 commit comments

Comments
 (0)