Skip to content

Commit 2cb9b60

Browse files
committed
chore(*): migrating to angular 21
1 parent c0c007c commit 2cb9b60

File tree

10 files changed

+5291
-3751
lines changed

10 files changed

+5291
-3751
lines changed

package-lock.json

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

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -59,42 +59,42 @@
5959
},
6060
"private": true,
6161
"dependencies": {
62-
"@angular/animations": "^20.3.6",
63-
"@angular/common": "^20.3.6",
64-
"@angular/compiler": "^20.3.6",
65-
"@angular/core": "^20.3.6",
66-
"@angular/elements": "^20.3.6",
67-
"@angular/forms": "^20.3.6",
68-
"@angular/platform-browser": "^20.3.6",
69-
"@angular/platform-browser-dynamic": "^20.3.6",
70-
"@angular/platform-server": "^20.3.6",
71-
"@angular/router": "^20.3.6",
72-
"@angular/ssr": "^20.3.6",
62+
"@angular/animations": "^21.0.0",
63+
"@angular/common": "^21.0.0",
64+
"@angular/compiler": "^21.0.0",
65+
"@angular/core": "^21.0.0",
66+
"@angular/elements": "^21.0.0",
67+
"@angular/forms": "^21.0.0",
68+
"@angular/platform-browser": "^21.0.0",
69+
"@angular/platform-browser-dynamic": "^21.0.0",
70+
"@angular/platform-server": "^21.0.0",
71+
"@angular/router": "^21.0.0",
72+
"@angular/ssr": "^21.0.0",
7373
"@igniteui/material-icons-extended": "^3.1.0",
7474
"@lit-labs/ssr-dom-shim": "^1.3.0",
7575
"@types/source-map": "0.5.2",
7676
"express": "^5.1.0",
7777
"fflate": "^0.8.1",
78-
"igniteui-theming": "^23.0.0",
78+
"igniteui-theming": "^23.1.1",
7979
"igniteui-trial-watermark": "^3.1.0",
8080
"lodash-es": "^4.17.21",
8181
"rxjs": "^7.8.2",
8282
"tslib": "^2.3.0",
83-
"zone.js": "~0.15.0"
83+
"zone.js": "~0.15.1"
8484
},
8585
"devDependencies": {
86-
"@angular-devkit/schematics": "^20.3.6",
87-
"@angular-eslint/builder": "^20.4.0",
88-
"@angular-eslint/eslint-plugin": "^20.4.0",
89-
"@angular-eslint/eslint-plugin-template": "^20.4.0",
90-
"@angular-eslint/schematics": "^20.4.0",
91-
"@angular-eslint/template-parser": "^20.4.0",
92-
"@angular/build": "^20.3.6",
93-
"@angular/cli": "^20.3.9",
94-
"@angular/compiler-cli": "^20.3.6",
95-
"@angular/language-service": "^20.3.6",
86+
"@angular-devkit/schematics": "^21.0.0",
87+
"@angular-eslint/builder": "^20.6.0",
88+
"@angular-eslint/eslint-plugin": "^20.6.0",
89+
"@angular-eslint/eslint-plugin-template": "^20.6.0",
90+
"@angular-eslint/schematics": "^20.6.0",
91+
"@angular-eslint/template-parser": "^20.6.0",
92+
"@angular/build": "^21.0.0",
93+
"@angular/cli": "^21.0.0",
94+
"@angular/compiler-cli": "^21.0.0",
95+
"@angular/language-service": "^21.0.0",
9696
"@angularclass/hmr": "^3.0.0",
97-
"@microsoft/signalr": "^7.0.12",
97+
"@microsoft/signalr": "^10.0.0",
9898
"@types/estree": "^1.0.0",
9999
"@types/express": "^5.0.0",
100100
"@types/hammerjs": "^2.0.46",
@@ -119,9 +119,9 @@
119119
"hammer-simulator": "0.0.1",
120120
"hammerjs": "^2.0.8",
121121
"ig-typedoc-theme": "^7.0.0",
122-
"igniteui-dockmanager": "^1.17.0",
122+
"igniteui-dockmanager": "^1.18.1",
123123
"igniteui-sassdoc-theme": "^2.1.0",
124-
"igniteui-webcomponents": "6.2.1",
124+
"igniteui-webcomponents": "6.3.6",
125125
"jasmine": "^5.6.0",
126126
"jasmine-core": "^5.6.0",
127127
"karma": "^6.4.4",
@@ -132,11 +132,11 @@
132132
"karma-parallel": "^0.3.1",
133133
"karma-spec-reporter": "^0.0.36",
134134
"lit-html": "^3.2.1",
135-
"ng-packagr": "^20.0.0",
135+
"ng-packagr": "^21.0.0",
136136
"postcss": "^8.5.1",
137137
"postcss-scss": "^4.0.6",
138138
"prettier": "^3.3.3",
139-
"puppeteer": "^24.5.0",
139+
"puppeteer": "^24.30.0",
140140
"sass-embedded": "^1.92.1",
141141
"sass-true": "^8.1.0",
142142
"sassdoc": "^2.7.4",
@@ -148,6 +148,6 @@
148148
"ts-node": "^10.8.1",
149149
"typedoc": "^0.28.14",
150150
"typedoc-plugin-localization": "^3.1.0",
151-
"typescript": "5.8.3"
151+
"typescript": "5.9.3"
152152
}
153153
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { provideZoneChangeDetection } from "@angular/core";
12
import { bootstrapApplication, BootstrapContext } from '@angular/platform-browser';
23
import { AppComponent } from './app/app.component';
34
import { config } from './app/app.config.server';
45

5-
const bootstrap = (context: BootstrapContext) => bootstrapApplication(AppComponent, config, context);
6+
const bootstrap = (context: BootstrapContext) => bootstrapApplication(AppComponent, {...config, providers: [provideZoneChangeDetection(), ...config.providers]}, context);
67

78
export default bootstrap;

projects/bundle-test/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { provideZoneChangeDetection } from "@angular/core";
12
import { AppComponent } from './app/app.component';
23
import { bootstrapApplication } from '@angular/platform-browser';
34
import { appConfig } from './app/app.config';
45

56

6-
bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));
7+
bootstrapApplication(AppComponent, {...appConfig, providers: [provideZoneChangeDetection(), ...appConfig.providers]}).catch(err => console.error(err));

projects/igniteui-angular/date-picker/src/date-range-picker/predefined-ranges/predefined-ranges-area.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, EventEmitter, Input, Output, ChangeDetectionStrategy } from '@angular/core';
2-
import { CommonModule } from '@angular/common';
2+
33
import { IgxChipComponent } from 'igniteui-angular/chips';
44
import { CalendarDay, CustomDateRange, DateRange, DateRangePickerResourceStringsEN, IDateRangePickerResourceStrings } from 'igniteui-angular/core';
55

@@ -9,7 +9,7 @@ type PredefinedRangeKey = 'last7Days' | 'currentMonth' | 'last30Days' | 'yearToD
99
@Component({
1010
selector: 'igx-predefined-ranges-area',
1111
standalone: true,
12-
imports: [CommonModule, IgxChipComponent],
12+
imports: [IgxChipComponent],
1313
templateUrl: './predefined-ranges-area-component.html',
1414
styles: [`
1515
:host { display:block; }

projects/igniteui-angular/directives/src/directives/tooltip/tooltip-close-button.component.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ import { CommonModule } from '@angular/common';
55
@Component({
66
selector: 'igx-tooltip-close-button',
77
template: `
8-
<ng-container *ngIf="customTemplate; else defaultTemplate">
9-
<ng-container *ngTemplateOutlet="customTemplate"></ng-container>
10-
</ng-container>
11-
<ng-template #defaultTemplate>
12-
<igx-icon aria-hidden="true" family="default" name="close"></igx-icon>
13-
</ng-template>
14-
`,
8+
@if (customTemplate) {
9+
<ng-container *ngTemplateOutlet="customTemplate"></ng-container>
10+
} @else {
11+
<igx-icon aria-hidden="true" family="default" name="close"></igx-icon>
12+
}
13+
`,
1514
imports: [IgxIconComponent, CommonModule],
1615
})
1716
export class IgxTooltipCloseButtonComponent {

projects/igniteui-angular/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@
7373
"tslib": "^2.3.0",
7474
"igniteui-trial-watermark": "^3.1.0",
7575
"lodash-es": "^4.17.21",
76-
"igniteui-theming": "^23.0.0",
76+
"igniteui-theming": "^23.1.1",
7777
"@igniteui/material-icons-extended": "^3.1.0"
7878
},
7979
"peerDependencies": {
80-
"@angular/common": "20",
81-
"@angular/core": "20",
82-
"@angular/animations": "20",
83-
"@angular/forms": "20",
80+
"@angular/common": "21",
81+
"@angular/core": "21",
82+
"@angular/animations": "21",
83+
"@angular/forms": "21",
8484
"hammerjs": "^2.0.8",
8585
"@types/hammerjs": "^2.0.40"
8686
},

src/main.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { provideZoneChangeDetection } from "@angular/core";
12
import { bootstrapApplication, BootstrapContext } from '@angular/platform-browser';
23
import { AppComponent } from './app/app.component';
34
import { config } from './app/app.config.server';
45

5-
const bootstrap = (context: BootstrapContext) => bootstrapApplication(AppComponent, config, context);
6+
const bootstrap = (context: BootstrapContext) => bootstrapApplication(AppComponent, {...config, providers: [provideZoneChangeDetection(), ...config.providers]}, context);
67

78
export default bootstrap;

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { provideZoneChangeDetection } from "@angular/core";
12
import { registerLocaleData } from '@angular/common';
23
import localeFr from '@angular/common/locales/fr';
34
import localeDe from '@angular/common/locales/de';
@@ -14,4 +15,4 @@ registerLocaleData(localeJa);
1415
registerLocaleData(localeBb);
1516
registerLocaleData(localeZh);
1617

17-
bootstrapApplication(AppComponent, appConfig).catch(err => console.log(err));
18+
bootstrapApplication(AppComponent, {...appConfig, providers: [provideZoneChangeDetection(), ...appConfig.providers]}).catch(err => console.log(err));

tsconfig.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
"typeRoots": [
1717
"node_modules/@types"
1818
],
19-
"lib": [
20-
"es2022",
21-
"dom"
22-
],
2319
"paths": {
2420
"igniteui-angular": [
2521
"projects/igniteui-angular/src/public_api.ts"

0 commit comments

Comments
 (0)