Skip to content

Commit 127ea8f

Browse files
committed
chore(migrations): move migrations to 19.1.1
1 parent b5d053a commit 127ea8f

File tree

6 files changed

+67
-7
lines changed

6 files changed

+67
-7
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@
211211
"version": "19.1.0",
212212
"description": "Updates Ignite UI for Angular from v18.2.3 to v19.1.0",
213213
"factory": "./update-19_1_0"
214+
},
215+
"migration-43": {
216+
"version": "19.1.1",
217+
"description": "Updates Ignite UI for Angular from v19.1.0 to v19.1.1",
218+
"factory": "./update-19_1_1"
214219
}
215220
}
216221
}

projects/igniteui-angular/migrations/update-19_1_0/changes/theme-changes.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@
120120
"owner": "color-classes",
121121
"remove": true,
122122
"type": "property"
123-
},
124-
{
125-
"name": "$progress-circle-color",
126-
"replaceWith": "$fill-color-default",
127-
"owner": "circular-theme",
128-
"type": "property"
129123
}
130124
]
131125
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "../../common/schema/theme-changes.schema.json",
3+
"changes": [
4+
{
5+
"name": "$progress-circle-color",
6+
"replaceWith": "$fill-color-default",
7+
"owner": "circular-theme",
8+
"type": "property"
9+
}
10+
]
11+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import * as path from 'path';
2+
3+
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
4+
import { setupTestTree } from '../common/setup.spec';
5+
6+
const version = '19.1.1';
7+
const themes = [
8+
'circular-theme'
9+
];
10+
const testFilePath = '/testSrc/appPrefix/component/${theme}.component.scss';
11+
12+
describe(`Update to ${version}`, () => {
13+
let appTree: UnitTestTree;
14+
const schematicRunner = new SchematicTestRunner('ig-migrate', path.join(__dirname, '../migration-collection.json'));
15+
16+
beforeEach(() => {
17+
appTree = setupTestTree();
18+
});
19+
20+
const migrationName = 'migration-43';
21+
22+
themes.forEach(theme => {
23+
it('should rename the progress circle color property of the circular progress', async () => {
24+
appTree.create(
25+
testFilePath,
26+
`$custom-${theme}: ${theme}($progress-circle-color: red);`
27+
);
28+
29+
const tree = await schematicRunner.runSchematic(migrationName, {}, appTree);
30+
31+
expect(tree.readContent(testFilePath)).toEqual(
32+
`$custom-${theme}: ${theme}($fill-color-default: red);`
33+
);
34+
});
35+
});
36+
});
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type {
2+
Rule,
3+
SchematicContext,
4+
Tree
5+
} from '@angular-devkit/schematics';
6+
import { UpdateChanges } from '../common/UpdateChanges';
7+
8+
const version = '19.1.1';
9+
10+
export default (): Rule => async (host: Tree, context: SchematicContext) => {
11+
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
12+
const update = new UpdateChanges(__dirname, host, context);
13+
update.applyChanges();
14+
};

src/app/circular-progress-showcase/circular-progress-showcase.sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class CircularProgressSampleComponent {
6969
}
7070
},
7171
variant: {
72-
label: 'Variant (WebComponents)',
72+
label: 'Variant',
7373
control: {
7474
type: 'select',
7575
options: ['primary', 'info', 'success', 'warning', 'danger'],

0 commit comments

Comments
 (0)