Skip to content

Commit d7f261c

Browse files
committed
chore(deps)!: upgrade to Angular 19
1 parent 0561b26 commit d7f261c

File tree

61 files changed

+851
-1641
lines changed

Some content is hidden

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

61 files changed

+851
-1641
lines changed

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,31 @@
6363
"rxjs": "^7.8.2"
6464
},
6565
"peerDependencies": {
66-
"@angular/core": ">=18.0.0"
66+
"@angular/core": ">=19.0.0"
6767
},
6868
"devDependencies": {
6969
"@4tw/cypress-drag-drop": "^2.3.0",
7070
"@analogjs/platform": "^1.15.0",
7171
"@analogjs/vite-plugin-angular": "^1.15.0",
7272
"@analogjs/vitest-angular": "^1.15.0",
73-
"@angular-devkit/build-angular": "^18.2.16",
73+
"@angular-devkit/build-angular": "^19.2.5",
7474
"@angular-eslint/builder": "^18.4.3",
7575
"@angular-eslint/eslint-plugin": "^18.4.3",
7676
"@angular-eslint/eslint-plugin-template": "^18.4.3",
7777
"@angular-eslint/schematics": "^18.4.3",
7878
"@angular-eslint/template-parser": "^18.4.3",
79-
"@angular/animations": "^18.2.13",
80-
"@angular/build": "18.2.16",
81-
"@angular/cli": "^18.2.16",
82-
"@angular/common": "^18.2.13",
83-
"@angular/compiler": "^18.2.13",
84-
"@angular/compiler-cli": "^18.2.13",
85-
"@angular/core": "^18.2.13",
86-
"@angular/forms": "^18.2.13",
87-
"@angular/language-service": "^18.2.13",
88-
"@angular/platform-browser": "^18.2.13",
89-
"@angular/platform-browser-dynamic": "^18.2.13",
90-
"@angular/router": "^18.2.13",
79+
"@angular/animations": "^19.2.4",
80+
"@angular/build": "19.2.5",
81+
"@angular/cli": "^19.2.5",
82+
"@angular/common": "^19.2.4",
83+
"@angular/compiler": "^19.2.4",
84+
"@angular/compiler-cli": "^19.2.4",
85+
"@angular/core": "^19.2.4",
86+
"@angular/forms": "^19.2.4",
87+
"@angular/language-service": "^19.2.4",
88+
"@angular/platform-browser": "^19.2.4",
89+
"@angular/platform-browser-dynamic": "^19.2.4",
90+
"@angular/router": "^19.2.4",
9191
"@faker-js/faker": "^9.6.0",
9292
"@fnando/sparkline": "^0.3.10",
9393
"@formkit/tempo": "^0.1.2",
@@ -119,7 +119,7 @@
119119
"eslint-plugin-n": "^17.17.0",
120120
"jsdom": "^26.0.0",
121121
"native-copyfiles": "^0.3.2",
122-
"ng-packagr": "^18.2.1",
122+
"ng-packagr": "^19.2.0",
123123
"ngx-bootstrap": "^18.1.3",
124124
"npm-run-all2": "^7.0.2",
125125
"prettier": "^3.5.3",

src/app/app.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { debounceTime, filter } from 'rxjs';
66
selector: 'app-root',
77
templateUrl: './app.component.html',
88
styleUrls: ['./app.component.scss'],
9+
standalone: false,
910
})
1011
export class AppComponent implements OnInit {
1112
constructor(private router: Router) {}

src/app/app.module.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BrowserModule } from '@angular/platform-browser';
22
import { FormsModule } from '@angular/forms';
33
import { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
4-
import { Injector, APP_INITIALIZER, NgModule } from '@angular/core';
4+
import { Injector, NgModule, inject, provideAppInitializer } from '@angular/core';
55
import { LOCATION_INITIALIZED } from '@angular/common';
66
import { NgSelectModule } from '@ng-select/ng-select';
77
import { TabsModule } from 'ngx-bootstrap/tabs';
@@ -187,12 +187,10 @@ export function appInitializerFactory(translate: TranslateService, injector: Inj
187187
}),
188188
],
189189
providers: [
190-
{
191-
provide: APP_INITIALIZER,
192-
useFactory: appInitializerFactory,
193-
deps: [TranslateService, Injector],
194-
multi: true,
195-
},
190+
provideAppInitializer(() => {
191+
const initializerFn = appInitializerFactory(inject(TranslateService), inject(Injector));
192+
return initializerFn();
193+
}),
196194
provideHttpClient(withInterceptorsFromDi()),
197195
],
198196
})

src/app/examples/custom-buttonFormatter.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Component } from '@angular/core';
22

33
@Component({
44
template: `<button (click)="sayHello(item?.title)">{{ item?.title }}</button>`,
5+
standalone: false,
56
})
67
export class CustomButtonFormatterComponent {
78
item: any;

src/app/examples/custom-titleFormatter.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Component } from '@angular/core';
22

33
@Component({
44
template: `<b>{{ item?.assignee?.name }}</b>`,
5+
standalone: false,
56
})
67
export class CustomTitleFormatterComponent {
78
item: any;

src/app/examples/editor-ng-select.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { Subject } from 'rxjs';
1919
{{ item?.name }}
2020
</ng-template>
2121
</ng-select>`,
22+
standalone: false,
2223
})
2324
export class EditorNgSelectComponent {
2425
selectedId = '';

src/app/examples/filter-ng-select.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { Subject } from 'rxjs';
1818
{{ item?.name }}
1919
</ng-template>
2020
</ng-select>`,
21+
standalone: false,
2122
})
2223
export class FilterNgSelectComponent {
2324
selectedId = '';

src/app/examples/grid-additem.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
styles: ['.duration-bg { background-color: #e9d4f1 !important }'],
1717
encapsulation: ViewEncapsulation.None,
1818
templateUrl: './grid-additem.component.html',
19+
standalone: false,
1920
})
2021
export class GridAddItemComponent implements OnInit {
2122
title = 'Example 11: Add / Update / Highlight a Datagrid Item';

src/app/examples/grid-angular.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const NB_ITEMS = 100;
2727
styleUrls: ['./grid-angular.component.scss'],
2828
encapsulation: ViewEncapsulation.None,
2929
providers: [AngularUtilService],
30+
standalone: false,
3031
})
3132
export class GridAngularComponent implements OnInit {
3233
title = 'Example 22: Use of Angular Components';

src/app/examples/grid-autoheight.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
encapsulation: ViewEncapsulation.None,
1515
styleUrls: ['./grid-autoheight.component.scss'],
1616
templateUrl: './grid-autoheight.component.html',
17+
standalone: false,
1718
})
1819
export class GridAutoHeightComponent implements OnInit {
1920
title = 'Example 23: Grid AutoHeight';

src/app/examples/grid-base-row-editing.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const NB_ITEMS = 20;
1111
encapsulation: ViewEncapsulation.None,
1212
styleUrls: ['./grid-base-row-editing.component.scss'],
1313
templateUrl: './grid-base-row-editing.component.html',
14+
standalone: false,
1415
})
1516
export class GridBaseRowEditingComponent implements OnInit {
1617
private subscriptions: Subscription[] = [];

src/app/examples/grid-basic.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const NB_ITEMS = 995;
66

77
@Component({
88
templateUrl: './grid-basic.component.html',
9+
standalone: false,
910
})
1011
export class GridBasicComponent implements OnDestroy, OnInit {
1112
private _darkModeGrid1 = false;

src/app/examples/grid-clientside.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const URL_SAMPLE_COLLECTION_DATA = 'assets/data/collection_500_numbers.json';
2525

2626
@Component({
2727
templateUrl: './grid-clientside.component.html',
28+
standalone: false,
2829
})
2930
export class GridClientSideComponent implements OnInit {
3031
title = 'Example 4: Client Side Sort/Filter';

src/app/examples/grid-colspan.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { AngularGridInstance, Column, FieldType, GridOption, ItemMetadata } from
66
@Component({
77
templateUrl: './grid-colspan.component.html',
88
styleUrls: ['./grid-colspan.component.scss'],
9+
standalone: false,
910
})
1011
export class GridColspanComponent implements OnInit {
1112
title = 'Example 15: Column Span & Header Grouping';

src/app/examples/grid-composite-editor.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const myCustomTitleValidator = (value: any, args: any) => {
8686
templateUrl: './grid-composite-editor.component.html',
8787
styleUrls: ['./grid-composite-editor.component.scss'],
8888
encapsulation: ViewEncapsulation.None,
89+
standalone: false,
8990
})
9091
export class GridCompositeEditorComponent implements OnDestroy, OnInit {
9192
private _darkMode = false;

src/app/examples/grid-contextmenu.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const taskTranslateFormatter: Formatter = (row, cell, value, columnDef, dataCont
6262
templateUrl: './grid-contextmenu.component.html',
6363
styleUrls: ['./grid-contextmenu.component.scss'],
6464
encapsulation: ViewEncapsulation.None,
65+
standalone: false,
6566
})
6667
export class GridContextMenuComponent implements OnInit, OnDestroy {
6768
title = 'Example 26: Cell Menu & Context Menu Plugins';

src/app/examples/grid-custom-pager.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import type {
1212
@Component({
1313
templateUrl: './grid-custom-pager.component.html',
1414
styleUrls: ['./grid-custom-pager.component.scss'],
15+
standalone: false,
1516
})
1617
export class CustomPagerComponent implements BasePaginationComponent {
1718
protected _paginationElement!: HTMLDivElement;

src/app/examples/grid-custom-pagination.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function randomBetween(min: number, max: number): number {
2222
@Component({
2323
templateUrl: './grid-custom-pagination.component.html',
2424
providers: [AngularUtilService],
25+
standalone: false,
2526
})
2627
export class GridCustomPaginationComponent implements OnInit {
2728
pageSize = 50;

src/app/examples/grid-custom-tooltip.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const NB_ITEMS = 500;
2222
templateUrl: './grid-custom-tooltip.component.html',
2323
styleUrls: ['./grid-custom-tooltip.component.scss'],
2424
encapsulation: ViewEncapsulation.None,
25+
standalone: false,
2526
})
2627
export class GridCustomTooltipComponent implements OnInit {
2728
title = 'Example 32: Regular & Custom Tooltips';

src/app/examples/grid-drag-recycle.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
templateUrl: './grid-drag-recycle.component.html',
1313
styleUrls: ['./grid-drag-recycle.component.scss'],
1414
encapsulation: ViewEncapsulation.None,
15+
standalone: false,
1516
})
1617
export class GridDragRecycleComponent implements OnInit {
1718
angularGrid!: AngularGridInstance;

src/app/examples/grid-draggrouping.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121

2222
@Component({
2323
templateUrl: './grid-draggrouping.component.html',
24+
standalone: false,
2425
})
2526
export class GridDraggableGroupingComponent implements OnInit, OnDestroy {
2627
private _darkMode = false;

src/app/examples/grid-editor.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const taskFormatter: Formatter = (_row, _cell, value) => {
6262
};
6363
@Component({
6464
templateUrl: './grid-editor.component.html',
65+
standalone: false,
6566
})
6667
export class GridEditorComponent implements OnInit {
6768
title = 'Example 3: Editors / Delete';

src/app/examples/grid-excel-formula.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export class CustomSumAggregator implements Aggregator {
9898
templateUrl: './grid-excel-formula.component.html',
9999
styleUrls: ['./grid-excel-formula.component.scss'],
100100
encapsulation: ViewEncapsulation.None,
101+
standalone: false,
101102
})
102103
export class GridExcelFormulaComponent implements OnInit {
103104
columnDefinitions: Column<GroceryItem>[] = [];

src/app/examples/grid-footer-totals.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const NB_ITEMS = 100;
1212

1313
@Component({
1414
templateUrl: './grid-footer-totals.component.html',
15+
standalone: false,
1516
})
1617
export class GridFooterTotalsComponent implements OnDestroy, OnInit {
1718
private _darkMode = false;

src/app/examples/grid-formatter.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const customEnableButtonFormatter: Formatter<DataItem> = (_row: number, _cell: n
3232

3333
@Component({
3434
templateUrl: './grid-formatter.component.html',
35+
standalone: false,
3536
})
3637
export class GridFormatterComponent implements OnInit {
3738
title = 'Example 2: Grid with Formatters';

src/app/examples/grid-frozen.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
templateUrl: './grid-frozen.component.html',
1717
styleUrls: ['./grid-frozen.component.scss'],
1818
encapsulation: ViewEncapsulation.None,
19+
standalone: false,
1920
})
2021
export class GridFrozenComponent implements OnInit, OnDestroy {
2122
title = 'Example 20: Pinned (frozen) Columns/Rows';

src/app/examples/grid-graphql-nopage.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export interface Country {
3434
templateUrl: './grid-graphql-nopage.component.html',
3535
styleUrls: ['./grid-graphql-nopage.component.scss'],
3636
encapsulation: ViewEncapsulation.None,
37+
standalone: false,
3738
})
3839
export class GridGraphqlWithoutPaginationComponent implements OnInit {
3940
title = 'Example 27: GraphQL Basic API without Pagination';

src/app/examples/grid-graphql.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const FAKE_SERVER_DELAY = 250;
2626

2727
@Component({
2828
templateUrl: './grid-graphql.component.html',
29+
standalone: false,
2930
})
3031
export class GridGraphqlComponent implements OnInit, OnDestroy {
3132
title = 'Example 6: Grid connected to Backend Server with GraphQL';

src/app/examples/grid-grouping.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919

2020
@Component({
2121
templateUrl: './grid-grouping.component.html',
22+
standalone: false,
2223
})
2324
export class GridGroupingComponent implements OnInit {
2425
title = 'Example 14: Grouping & Aggregators';

src/app/examples/grid-header-footer.component.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const NB_ITEMS = 995;
77
template: `<button (click)="clickMe()">I'm a button from an Angular component (click me)</button>
88
<div *ngIf="clickedTimes">You've clicked me {{ clickedTimes }} time(s)</div>`,
99
selector: 'custom-footer',
10+
standalone: false,
1011
})
1112
export class CustomFooterComponent {
1213
clickedTimes = 0;
@@ -18,6 +19,7 @@ export class CustomFooterComponent {
1819

1920
@Component({
2021
templateUrl: './grid-header-footer.component.html',
22+
standalone: false,
2123
})
2224
export class GridHeaderFooterComponent implements OnInit {
2325
title = 'Example 34: Custom header & footer Templates';

src/app/examples/grid-headerbutton.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ let columns2WithHighlightingById: any = {};
1010
styleUrls: ['./grid-headerbutton.component.scss'],
1111
encapsulation: ViewEncapsulation.None,
1212
templateUrl: './grid-headerbutton.component.html',
13+
standalone: false,
1314
})
1415
export class GridHeaderButtonComponent implements OnInit {
1516
title = 'Example 7: Header Button Plugin';

src/app/examples/grid-headermenu.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Subscription } from 'rxjs';
77
templateUrl: './grid-headermenu.component.html',
88
styleUrls: ['./grid-headermenu.component.scss'],
99
encapsulation: ViewEncapsulation.None,
10+
standalone: false,
1011
})
1112
export class GridHeaderMenuComponent implements OnInit, OnDestroy {
1213
title = 'Example 8: Header Menu Plugin';

src/app/examples/grid-infinite-graphql.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function unescapeAndLowerCase(val: string) {
2828
styleUrls: ['./grid-infinite-graphql.component.scss'],
2929
encapsulation: ViewEncapsulation.None,
3030
templateUrl: './grid-infinite-graphql.component.html',
31+
standalone: false,
3132
})
3233
export class GridInfiniteGraphqlComponent implements OnInit, OnDestroy {
3334
private subscriptions: Subscription[] = [];

src/app/examples/grid-infinite-json.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const FETCH_SIZE = 50;
1818

1919
@Component({
2020
templateUrl: './grid-infinite-json.component.html',
21+
standalone: false,
2122
})
2223
export class GridInfiniteJsonComponent implements OnInit {
2324
angularGrid!: AngularGridInstance;

src/app/examples/grid-infinite-odata.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const PERCENT_HTML_ESCAPED = '%25';
2222
styleUrls: ['./grid-infinite-odata.component.scss'],
2323
encapsulation: ViewEncapsulation.None,
2424
templateUrl: './grid-infinite-odata.component.html',
25+
standalone: false,
2526
})
2627
export class GridInfiniteOdataComponent implements OnInit {
2728
angularGrid!: AngularGridInstance;

src/app/examples/grid-localization.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const taskTranslateFormatter: Formatter = (row, cell, value, columnDef, dataCont
3030

3131
@Component({
3232
templateUrl: './grid-localization.component.html',
33+
standalone: false,
3334
})
3435
export class GridLocalizationComponent implements OnInit, OnDestroy {
3536
title = 'Example 12: Localization (i18n)';

src/app/examples/grid-menu.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { Subscription } from 'rxjs';
1616
templateUrl: './grid-menu.component.html',
1717
styleUrls: ['./grid-menu.component.scss'],
1818
encapsulation: ViewEncapsulation.None,
19+
standalone: false,
1920
})
2021
export class GridMenuComponent implements OnInit, OnDestroy {
2122
title = 'Example 9: Grid Menu Control';

src/app/examples/grid-odata.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const PERCENT_HTML_ESCAPED = '%25';
2020

2121
@Component({
2222
templateUrl: './grid-odata.component.html',
23+
standalone: false,
2324
})
2425
export class GridOdataComponent implements OnInit {
2526
title = 'Example 5: Grid connected to Backend Server with OData';

src/app/examples/grid-range.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const taskTranslateFormatter: Formatter = (row, cell, value, columnDef, dataCont
3737

3838
@Component({
3939
templateUrl: './grid-range.component.html',
40+
standalone: false,
4041
})
4142
export class GridRangeComponent implements OnInit, OnDestroy {
4243
title = 'Example 25: Filtering from Range of Search Values';

src/app/examples/grid-resize-by-content.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const myCustomTitleValidator = (value: any) => {
6969
templateUrl: './grid-resize-by-content.component.html',
7070
styleUrls: ['./grid-resize-by-content.component.scss'],
7171
encapsulation: ViewEncapsulation.None,
72+
standalone: false,
7273
})
7374
export class GridResizeByContentComponent implements OnInit {
7475
title = 'Example 31: Columns Resize by Content';

0 commit comments

Comments
 (0)