Skip to content

Commit 7a9d367

Browse files
authored
Merge branch '9.0.x' into mpopov/carousel/6518
2 parents fe2c232 + 88d0dcd commit 7a9d367

27 files changed

+946
-1138
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes for each version of this project will be documented in this file.
44

5+
## 9.0.1
6+
- **Breaking Changes**
7+
- Remove `$base-color` from igx-typography. The igx-typography class now inherits the parent color.
8+
59
## 9.0.0
610

711
### General

projects/igniteui-angular/migrations/migration-collection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@
6565
"version": "9.0.0",
6666
"description": "Updates Ignite UI for Angular from v8.2.x to v9.0.0",
6767
"factory": "./update-9_0_0"
68+
},
69+
"migration-14": {
70+
"version": "9.0.1",
71+
"description": "Updates Ignite UI for Angular from v9.0.0 to v9.0.1",
72+
"factory": "./update-9_0_1"
6873
}
6974
}
7075
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "../../common/schema/theme-props.schema.json",
3+
"changes": [
4+
{
5+
"name": "$base-color",
6+
"remove": true,
7+
"owner": "igx-typography"
8+
}
9+
]
10+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import * as path from 'path';
2+
3+
// tslint:disable:no-implicit-dependencies
4+
import { virtualFs } from '@angular-devkit/core';
5+
import { EmptyTree } from '@angular-devkit/schematics';
6+
// tslint:disable-next-line:no-submodule-imports
7+
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
8+
9+
describe('Update 9.0.1', () => {
10+
let appTree: UnitTestTree;
11+
const schematicRunner = new SchematicTestRunner('ig-migrate', path.join(__dirname, '../migration-collection.json'));
12+
const configJson = {
13+
defaultProject: 'testProj',
14+
projects: {
15+
testProj: {
16+
sourceRoot: '/testSrc'
17+
}
18+
},
19+
schematics: {
20+
'@schematics/angular:component': {
21+
prefix: 'appPrefix'
22+
}
23+
}
24+
};
25+
26+
beforeEach(() => {
27+
appTree = new UnitTestTree(new EmptyTree());
28+
appTree.create('/angular.json', JSON.stringify(configJson));
29+
});
30+
});
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import {
2+
Rule,
3+
SchematicContext,
4+
Tree
5+
} from '@angular-devkit/schematics';
6+
import { UpdateChanges } from '../common/UpdateChanges';
7+
8+
const version = '9.0.1';
9+
10+
export default function(): Rule {
11+
return (host: Tree, context: SchematicContext) => {
12+
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
13+
14+
const update = new UpdateChanges(__dirname, host, context);
15+
update.applyChanges();
16+
};
17+
}

projects/igniteui-angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
"@angular/forms": "^9.0.0",
7979
"web-animations-js": "^2.3.2"
8080
},
81-
"devDependencies": {
82-
"@igniteui/angular-schematics": "~9.0.500-rc.3"
81+
"igxDevDependencies": {
82+
"@igniteui/angular-schematics": "~9.0.500"
8383
},
8484
"ng-update": {
8585
"migrations": "./migrations/migration-collection.json"

projects/igniteui-angular/schematics/ng-add/index.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ describe('ng-add schematics', () => {
108108
runner.runSchematic('ng-add', { normalizeCss: false }, tree);
109109
const pkgJsonData = JSON.parse(tree.readContent('/package.json'));
110110

111-
expect(pkgJsonData.devDependencies['@igniteui/angular-schematics']).toBeTruthy();
111+
const version = require('../../package.json')['igxDevDependencies']['@igniteui/angular-schematics'];
112+
expect(pkgJsonData.devDependencies['@igniteui/angular-schematics']).toBe(version);
112113
expect(pkgJsonData.dependencies['@igniteui/angular-schematics']).toBeFalsy();
113114
});
114115

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function addDependencies(options: Options): Rule {
6767
}
6868
});
6969

70-
addPackageToPkgJson(tree, schematicsPackage, pkgJson.devDependencies[schematicsPackage], devDependencies);
70+
addPackageToPkgJson(tree, schematicsPackage, pkgJson.igxDevDependencies[schematicsPackage], devDependencies);
7171
return tree;
7272
};
7373
}

projects/igniteui-angular/src/lib/core/styles/base/utilities/_functions.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
/// @param {Color} $success [#4eb862] - The success color used throughout the application.
298298
/// @param {Color} $warn [#fbb13c] - The warning color used throughout the application.
299299
/// @param {Color} $error [#ff134a] - The error color used throughout the application.
300-
/// @param {Color} $grays [$igx-foreground-color] - The color used for generating the grayscale palette.
300+
/// @param {Color} $grays [#000 | $igx-foreground-color] - The color used for generating the grayscale palette.
301301
/// @param {Color} $surface [#fff] - The color used as a background in components, such as cards, sheets, and menus.
302302
/// @returns {Map} - A map consisting of 74 color variations, including the `primary`, `secondary`, `grays`,
303303
/// `info`, `success`, `warn`, and `error` colors.
@@ -309,7 +309,7 @@
309309
$success: #4eb862,
310310
$warn: #fbb13c,
311311
$error: #ff134a,
312-
$grays: if(global-variable-exists('igx-foreground-color'), $igx-foreground-color, #000),
312+
$grays: #000,
313313
$surface: #fff
314314
) {
315315
$saturations: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 'A100', 'A200', 'A400', 'A700');

projects/igniteui-angular/src/lib/core/styles/themes/_core.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,14 @@
8080
@mixin igx-core(
8181
$print-layout: true,
8282
$direction: ltr,
83-
$foreground-color: rgba(0, 0, 0, .87)
8483
) {
8584
@if $direction != ltr and $direction != rtl {
8685
$direction: ltr !global;
8786
} @else {
8887
$direction: $direction !global;
8988
}
9089

91-
$igx-foreground-color: $foreground-color !global;
92-
93-
@include igx-typography($base-color: $foreground-color);
90+
@include igx-typography();
9491
@include igx-vhelper();
9592

9693
@if $print-layout == true {

0 commit comments

Comments
 (0)