Skip to content

Commit 1aa382d

Browse files
committed
feat: angular v20 and NX v21
1 parent 6f19745 commit 1aa382d

File tree

297 files changed

+22652
-16081
lines changed

Some content is hidden

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

297 files changed

+22652
-16081
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ junit.xml
2222
**/.cache**/
2323

2424
.nx/cache
25-
.nx/workspace-data
25+
.nx/workspace-data
26+
.cursor/rules/nx-rules.mdc
27+
.github/instructions/nx.instructions.md

.global/integration-app.style.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ a {
5454
}
5555

5656
.dashboard__menu {
57-
background: rgb(24, 75, 170);
58-
color: #fff;
59-
width: 300px;
57+
--mat-sidenav-container-background-color: rgb(24, 75, 170);
58+
--mat-sidenav-container-text-color: #fff;
59+
--mat-sidenav-container-width: 300px;
6060
}
6161

6262
.title {
@@ -124,7 +124,7 @@ code {
124124
}
125125

126126
.mat-divider {
127-
border-top-color: rgba(241, 232, 232, 0.12);
127+
--mat-divider-color: rgba(241, 232, 232, 0.12);
128128
width: 80%;
129129
margin: 0 auto !important;
130130
}

apps/cdk-demo/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {enableProdMode} from '@angular/core';
2-
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
2+
import {platformBrowser} from '@angular/platform-browser';
33

44
import {environment} from './environments/environment';
55
import {AppModule} from './src/app.module';
@@ -8,6 +8,6 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
platformBrowserDynamic()
11+
platformBrowser()
1212
.bootstrapModule(AppModule, {ngZoneEventCoalescing: true})
13-
.catch((error: Error): void => console.error(error));
13+
.catch((error: unknown): void => console.error(error));

apps/cdk-demo/project.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,59 +6,59 @@
66
"tags": ["apps"],
77
"targets": {
88
"build": {
9-
"executor": "@angular-devkit/build-angular:browser",
9+
"executor": "@angular/build:application",
1010
"options": {
11-
"outputPath": "dist/cdk-demo",
12-
"tsConfig": "apps/cdk-demo/tsconfig.app.json",
13-
"main": "apps/cdk-demo/main.ts",
11+
"outputPath": {
12+
"base": "dist/cdk-demo",
13+
"browser": ""
14+
},
1415
"index": "apps/cdk-demo/index.html",
16+
"browser": "apps/cdk-demo/main.ts",
17+
"tsConfig": "apps/cdk-demo/tsconfig.app.json",
18+
"polyfills": ["apps/cdk-demo/polyfills.ts"],
19+
"inlineStyleLanguage": "scss",
1520
"assets": ["apps/cdk-demo/assets"],
16-
"polyfills": "apps/cdk-demo/polyfills.ts",
1721
"styles": [".global/integration-app.style.scss", "apps/cdk-demo/styles.scss"],
18-
"aot": false,
19-
"vendorChunk": true,
20-
"extractLicenses": false,
21-
"buildOptimizer": false,
22-
"sourceMap": true,
23-
"optimization": false,
24-
"namedChunks": true
22+
"scripts": [],
23+
"stylePreprocessorOptions": {
24+
"includePaths": ["./src"],
25+
"sass": {
26+
"silenceDeprecations": ["import"]
27+
}
28+
}
2529
},
2630
"configurations": {
2731
"production": {
28-
"fileReplacements": [
32+
"budgets": [
2933
{
30-
"replace": "apps/cdk-demo/environments/environment.ts",
31-
"with": "apps/cdk-demo/environments/environment.prod.ts"
34+
"type": "initial",
35+
"maximumWarning": "1mb",
36+
"maximumError": "2mb"
37+
},
38+
{
39+
"type": "anyComponentStyle",
40+
"maximumWarning": "6kb"
3241
}
3342
],
34-
"optimization": true,
3543
"outputHashing": "all",
36-
"sourceMap": false,
37-
"namedChunks": false,
38-
"aot": true,
39-
"extractLicenses": true,
40-
"buildOptimizer": true
41-
},
42-
"development": {
4344
"fileReplacements": [
4445
{
4546
"replace": "apps/cdk-demo/environments/environment.ts",
4647
"with": "apps/cdk-demo/environments/environment.prod.ts"
4748
}
48-
],
49+
]
50+
},
51+
"development": {
4952
"optimization": false,
50-
"outputHashing": "all",
51-
"aot": true
53+
"extractLicenses": false,
54+
"sourceMap": true
5255
}
5356
},
5457
"defaultConfiguration": "production",
55-
"outputs": ["{projectRoot}/dist/cdk-demo"]
58+
"outputs": ["{options.outputPath}"]
5659
},
5760
"serve": {
58-
"executor": "@angular-devkit/build-angular:dev-server",
59-
"options": {
60-
"buildTarget": "cdk-demo:build"
61-
},
61+
"executor": "@angular/build:dev-server",
6262
"configurations": {
6363
"production": {
6464
"buildTarget": "cdk-demo:build:production"

apps/cdk-demo/src/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {ChangeDetectionStrategy, Component} from '@angular/core';
22

33
@Component({
4+
standalone: false,
45
selector: 'app-root',
56
templateUrl: './app.component.html',
67
changeDetection: ChangeDetectionStrategy.OnPush,

apps/cdk-demo/src/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {HttpClientModule} from '@angular/common/http';
1+
import {provideHttpClient} from '@angular/common/http';
22
import {NgModule} from '@angular/core';
33
import {MatListModule} from '@angular/material/list';
44
import {MatSidenavModule} from '@angular/material/sidenav';
@@ -15,13 +15,13 @@ import {AppRoutingModule} from './app-routing.module';
1515
AppRoutingModule,
1616
BrowserAnimationsModule,
1717
BrowserModule,
18-
HttpClientModule,
1918
MatListModule,
2019
MatSidenavModule,
2120
MatToolbarModule,
2221
AmountFormatModule.forRoot(),
2322
],
2423
declarations: [AppComponent],
24+
providers: [provideHttpClient()],
2525
bootstrap: [AppComponent],
2626
})
2727
export class AppModule {}

apps/cdk-demo/src/samples/guide/guide.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {FormBuilder, FormControl, FormGroup} from '@angular/forms';
44
import {REG_EXP_ONLY_NUMBERS} from './properties/constants';
55

66
@Component({
7+
standalone: false,
78
selector: 'guide',
89
templateUrl: './guide.component.html',
910
styleUrls: ['./guide.component.scss'],

apps/cdk-demo/src/samples/guide/guide.module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ import {REG_EXP_ONLY_NUMBERS} from './properties/constants';
1313
@NgModule({
1414
imports: [
1515
AmountFormatModule,
16-
RouterModule.forChild([
17-
{
18-
path: '',
19-
component: GuideComponent,
20-
},
21-
]),
2216
CommonModule,
2317
MatIconModule,
2418
MatInputModule,
@@ -27,6 +21,12 @@ import {REG_EXP_ONLY_NUMBERS} from './properties/constants';
2721
InputFilterModule.forChild({
2822
default: REG_EXP_ONLY_NUMBERS,
2923
}),
24+
RouterModule.forChild([
25+
{
26+
path: '',
27+
component: GuideComponent,
28+
},
29+
]),
3030
],
3131
declarations: [GuideComponent],
3232
})

apps/cdk-demo/tsconfig.app.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["main.ts", "polyfills.ts"]
3+
"compilerOptions": {
4+
"types": []
5+
},
6+
"include": ["main.ts", "polyfills.ts"],
7+
"angularCompilerOptions": {
8+
"compilationMode": "full"
9+
}
410
}

apps/excel-demo/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {enableProdMode} from '@angular/core';
2-
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
2+
import {platformBrowser} from '@angular/platform-browser';
33

44
import {environment} from './environments/environment';
55
import {AppModule} from './src/app.module';
@@ -8,6 +8,6 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
platformBrowserDynamic()
11+
platformBrowser()
1212
.bootstrapModule(AppModule)
13-
.catch((error: Error): void => console.error(error));
13+
.catch((error: unknown): void => console.error(error));

0 commit comments

Comments
 (0)