Skip to content

Commit 72cbc34

Browse files
Upgrade Angular from v18 to v19
Co-authored-by: michaelschoenbaechler <49410646+michaelschoenbaechler@users.noreply.github.com>
1 parent 620e25d commit 72cbc34

File tree

22 files changed

+2553
-1898
lines changed

22 files changed

+2553
-1898
lines changed

package-lock.json

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

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
},
1818
"private": true,
1919
"dependencies": {
20-
"@angular/common": "^18.2.5",
21-
"@angular/core": "^18.2.5",
22-
"@angular/forms": "^18.2.5",
23-
"@angular/platform-browser": "^18.2.5",
24-
"@angular/platform-browser-dynamic": "^18.2.5",
25-
"@angular/router": "^18.2.5",
20+
"@angular/common": "^19.2.14",
21+
"@angular/core": "^19.2.14",
22+
"@angular/forms": "^19.2.14",
23+
"@angular/platform-browser": "^19.2.14",
24+
"@angular/platform-browser-dynamic": "^19.2.14",
25+
"@angular/router": "^19.2.14",
2626
"@capacitor/app": "^6.0.0",
2727
"@capacitor/browser": "^6.0.0",
2828
"@capacitor/core": "^6.0.0",
@@ -41,18 +41,18 @@
4141
"rxjs": "~7.8.1",
4242
"swissparl": "^0.6.2",
4343
"tslib": "^2.2.0",
44-
"zone.js": "~0.14.10"
44+
"zone.js": "~0.15.1"
4545
},
4646
"devDependencies": {
47-
"@angular-devkit/build-angular": "^18.2.5",
47+
"@angular-devkit/build-angular": "^19.2.15",
4848
"@angular-eslint/builder": "~18.3.1",
4949
"@angular-eslint/eslint-plugin": "~18.3.1",
5050
"@angular-eslint/eslint-plugin-template": "~18.3.1",
5151
"@angular-eslint/template-parser": "~18.3.1",
52-
"@angular/cli": "^18.2.5",
53-
"@angular/compiler": "^18.2.5",
54-
"@angular/compiler-cli": "^18.2.5",
55-
"@angular/language-service": "^18.2.5",
52+
"@angular/cli": "^19.2.15",
53+
"@angular/compiler": "^19.2.14",
54+
"@angular/compiler-cli": "^19.2.14",
55+
"@angular/language-service": "^19.2.14",
5656
"@capacitor/cli": "^6.0.0",
5757
"@commitlint/cli": "^18.4.4",
5858
"@commitlint/config-conventional": "^18.4.4",

src/app/app.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { Component } from '@angular/core';
22
import { IonicModule } from '@ionic/angular';
33

44
@Component({
5-
selector: 'app-root',
6-
templateUrl: 'app.component.html',
7-
styleUrls: ['app.component.scss'],
8-
standalone: true,
9-
imports: [IonicModule]
5+
selector: 'app-root',
6+
templateUrl: 'app.component.html',
7+
styleUrls: ['app.component.scss'],
8+
imports: [IonicModule]
109
})
1110
export class AppComponent {
1211
constructor() {}

src/app/business/components/business-card/business-card.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { TextCardComponent } from '../../../shared/components/text-card/text-car
44
import { ODataDateTimePipe } from '../../../shared/pipes/o-data-date-time.pipe';
55

66
@Component({
7-
selector: 'app-business-card',
8-
templateUrl: './business-card.component.html',
9-
styleUrls: ['./business-card.component.scss'],
10-
standalone: true,
11-
imports: [TextCardComponent, ODataDateTimePipe]
7+
selector: 'app-business-card',
8+
templateUrl: './business-card.component.html',
9+
styleUrls: ['./business-card.component.scss'],
10+
imports: [TextCardComponent, ODataDateTimePipe]
1211
})
1312
export class BusinessCardComponent {
1413
@Input() business: Business;

src/app/business/components/business-detail-text/business-detail-text.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { TranslocoDirective } from '@jsverse/transloco';
66
import { TextCardComponent } from '../../../shared/components/text-card/text-card.component';
77

88
@Component({
9-
selector: 'app-business-detail-text',
10-
templateUrl: './business-detail-text.component.html',
11-
styleUrls: ['./business-detail-text.component.scss'],
12-
standalone: true,
13-
imports: [IonicModule, TextCardComponent, TranslocoDirective]
9+
selector: 'app-business-detail-text',
10+
templateUrl: './business-detail-text.component.html',
11+
styleUrls: ['./business-detail-text.component.scss'],
12+
imports: [IonicModule, TextCardComponent, TranslocoDirective]
1413
})
1514
export class BusinessDetailTextComponent {
1615
@Input() business: Business;

src/app/business/components/business-filter-form/business-filter-form.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ import { TranslocoDirective } from '@jsverse/transloco';
1111
import { BusinessStore } from '../../business.store';
1212

1313
@Component({
14-
selector: 'app-business-filter-form',
15-
templateUrl: './business-filter-form.component.html',
16-
styleUrls: ['./business-filter-form.component.scss'],
17-
standalone: true,
18-
imports: [FormsModule, IonicModule, ReactiveFormsModule, TranslocoDirective]
14+
selector: 'app-business-filter-form',
15+
templateUrl: './business-filter-form.component.html',
16+
styleUrls: ['./business-filter-form.component.scss'],
17+
imports: [FormsModule, IonicModule, ReactiveFormsModule, TranslocoDirective]
1918
})
2019
export class BusinessFilterFormComponent {
2120
readonly store = inject(BusinessStore);

src/app/business/containers/business-detail/business-detail.page.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@ import { ErrorScreenComponent } from '../../../shared/components/error-screen/er
99
import { BusinessStore } from '../../business.store';
1010

1111
@Component({
12-
selector: 'app-business-detail',
13-
templateUrl: './business-detail.page.html',
14-
styleUrls: ['./business-detail.page.scss'],
15-
standalone: true,
16-
imports: [
17-
IonicModule,
18-
BusinessCardComponent,
19-
BusinessDetailTextComponent,
20-
LoadingScreenComponent,
21-
ErrorScreenComponent,
22-
RouterLink,
23-
TranslocoDirective
24-
]
12+
selector: 'app-business-detail',
13+
templateUrl: './business-detail.page.html',
14+
styleUrls: ['./business-detail.page.scss'],
15+
imports: [
16+
IonicModule,
17+
BusinessCardComponent,
18+
BusinessDetailTextComponent,
19+
LoadingScreenComponent,
20+
ErrorScreenComponent,
21+
RouterLink,
22+
TranslocoDirective
23+
]
2524
})
2625
export class BusinessDetailPage implements OnInit {
2726
readonly store = inject(BusinessStore);

src/app/business/containers/business-list/business-list.page.ts

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,21 @@ import { BusinessFilterFormComponent } from '../../components/business-filter-fo
2727
import { SearchSuggestions } from './search-suggestions';
2828

2929
@Component({
30-
selector: 'app-business-list',
31-
templateUrl: './business-list.page.html',
32-
styleUrls: ['./business-list.page.scss'],
33-
standalone: true,
34-
imports: [
35-
IonicModule,
36-
ReactiveFormsModule,
37-
BusinessCardComponent,
38-
LoadingScreenComponent,
39-
ErrorScreenComponent,
40-
NoContentScreenComponent,
41-
HideKeyboardOnEnterDirective,
42-
BusinessFilterFormComponent,
43-
TranslocoDirective
44-
],
45-
changeDetection: ChangeDetectionStrategy.OnPush
30+
selector: 'app-business-list',
31+
templateUrl: './business-list.page.html',
32+
styleUrls: ['./business-list.page.scss'],
33+
imports: [
34+
IonicModule,
35+
ReactiveFormsModule,
36+
BusinessCardComponent,
37+
LoadingScreenComponent,
38+
ErrorScreenComponent,
39+
NoContentScreenComponent,
40+
HideKeyboardOnEnterDirective,
41+
BusinessFilterFormComponent,
42+
TranslocoDirective
43+
],
44+
changeDetection: ChangeDetectionStrategy.OnPush
4645
})
4746
export class BusinessListPage implements OnInit {
4847
@ViewChild('searchBar', { static: false }) searchBar: IonSearchbar;

src/app/council-member/components/council-member-card/council-member-card.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { MemberCouncil } from 'swissparl';
33
import { LowerCasePipe } from '@angular/common';
44

55
@Component({
6-
selector: 'app-council-member-card',
7-
templateUrl: './council-member-card.component.html',
8-
styleUrls: ['./council-member-card.component.scss'],
9-
standalone: true,
10-
imports: [LowerCasePipe]
6+
selector: 'app-council-member-card',
7+
templateUrl: './council-member-card.component.html',
8+
styleUrls: ['./council-member-card.component.scss'],
9+
imports: [LowerCasePipe]
1110
})
1211
export class CouncilMemberCardComponent {
1312
councilMember = input<MemberCouncil>();

src/app/council-member/components/council-member-filter-form/council-member-filter-form.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ export type CouncilMemberFilterForm = {
1616
};
1717

1818
@Component({
19-
selector: 'app-council-member-filter-form',
20-
templateUrl: './council-member-filter-form.component.html',
21-
styleUrls: ['./council-member-filter-form.component.scss'],
22-
imports: [IonicModule, ReactiveFormsModule, TranslocoDirective],
23-
standalone: true
19+
selector: 'app-council-member-filter-form',
20+
templateUrl: './council-member-filter-form.component.html',
21+
styleUrls: ['./council-member-filter-form.component.scss'],
22+
imports: [IonicModule, ReactiveFormsModule, TranslocoDirective]
2423
})
2524
export class CouncilMemberFilterFormComponent implements OnInit {
2625
preset = input<CouncilMemberFilterForm>();

0 commit comments

Comments
 (0)