Skip to content

Commit 1fd170a

Browse files
committed
Upgrade to Angular 19.
1 parent 3317def commit 1fd170a

Some content is hidden

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

44 files changed

+2784
-2809
lines changed

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@formio/angular",
3-
"version": "8.1.0-rc.1",
3+
"version": "9.0.0-rc.1",
44
"scripts": {
55
"ng": "ng",
66
"build": "ng build angular-formio",
@@ -35,41 +35,41 @@
3535
"node": ">=6.0.0"
3636
},
3737
"devDependencies": {
38-
"@angular-devkit/build-angular": "^18.1.2",
39-
"@angular/animations": "^18.1.2",
40-
"@angular/cli": "^18.1.2",
41-
"@angular/common": "^18.1.2",
42-
"@angular/compiler": "^18.1.2",
43-
"@angular/compiler-cli": "^18.1.2",
44-
"@angular/core": "^18.1.2",
45-
"@angular/forms": "^18.1.2",
46-
"@angular/platform-browser": "^18.1.2",
47-
"@angular/platform-browser-dynamic": "^18.1.2",
48-
"@angular/router": "^18.1.2",
49-
"@compodoc/compodoc": "^1.1.25",
38+
"@angular-devkit/build-angular": "^19.0.6",
39+
"@angular/animations": "^19.0.5",
40+
"@angular/cli": "^19.0.6",
41+
"@angular/common": "^19.0.5",
42+
"@angular/compiler": "^19.0.5",
43+
"@angular/compiler-cli": "^19.0.5",
44+
"@angular/core": "^19.0.5",
45+
"@angular/forms": "^19.0.5",
46+
"@angular/platform-browser": "^19.0.5",
47+
"@angular/platform-browser-dynamic": "^19.0.5",
48+
"@angular/router": "^19.0.5",
49+
"@compodoc/compodoc": "^1.1.26",
5050
"@formio/deprecated-types": "^0.1.0",
5151
"@formio/js": "^5.0.0",
52-
"@types/jasmine": "^5.1.4",
52+
"@types/jasmine": "^5.1.5",
5353
"@types/jasminewd2": "^2.0.13",
54-
"@types/node": "^22.0.0",
54+
"@types/node": "^22.10.5",
5555
"bootstrap": "5.3.3",
5656
"codelyzer": "^6.0.2",
57-
"jasmine-core": "^5.2.0",
57+
"jasmine-core": "^5.5.0",
5858
"jasmine-spec-reporter": "^7.0.0",
59-
"karma": "^6.4.3",
59+
"karma": "^6.4.4",
6060
"karma-chrome-launcher": "^3.1.1",
6161
"karma-coverage-istanbul-reporter": "~3.0.2",
6262
"karma-jasmine": "^5.1.0",
6363
"karma-jasmine-html-reporter": "^2.1.0",
64-
"ng-packagr": "^18.1.0",
65-
"ngx-bootstrap": "^18.0.2",
64+
"ng-packagr": "^19.0.1",
65+
"ngx-bootstrap": "^19.0.2",
6666
"protractor": "~7.0.0",
67-
"replace-in-file": "^7.2.0",
67+
"replace-in-file": "^8.3.0",
6868
"rxjs": "^7.8.1",
6969
"ts-node": "^10.9.2",
70-
"tslib": "^2.6.3",
70+
"tslib": "^2.8.1",
7171
"tslint": "~6.1.0",
72-
"typescript": "~5.5.4",
73-
"zone.js": "^0.14.8"
72+
"typescript": "~5.6.3",
73+
"zone.js": "^0.15.0"
7474
}
7575
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Component } from '@angular/core';
22
@Component({
3-
templateUrl: './auth.component.html'
3+
templateUrl: './auth.component.html',
4+
standalone: false
45
})
56
export class FormioAuthComponent {}

projects/angular-formio/auth/src/login/login.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Component } from '@angular/core';
22
import { FormioAuthService } from '../auth.service';
33
@Component({
4-
templateUrl: './login.component.html'
4+
templateUrl: './login.component.html',
5+
standalone: false
56
})
67
export class FormioAuthLoginComponent {
78
public renderOptions: any = {

projects/angular-formio/auth/src/register/register.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Component } from '@angular/core';
22
import { FormioAuthService } from '../auth.service';
33
@Component({
4-
templateUrl: './register.component.html'
4+
templateUrl: './register.component.html',
5+
standalone: false
56
})
67
export class FormioAuthRegisterComponent {
78
public renderOptions: any = {

projects/angular-formio/auth/src/resetpass/resetpass.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Component } from '@angular/core';
22
import { FormioAuthService } from '../auth.service';
33
@Component({
4-
templateUrl: './resetpass.component.html'
4+
templateUrl: './resetpass.component.html',
5+
standalone: false
56
})
67
export class FormioResetPassComponent {
78
constructor(public service: FormioAuthService) {}

projects/angular-formio/embed/src/builder.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import WebformBuilder from '@formio/js/lib/cjs/WebformBuilder';
44

55
@Component({
66
selector: 'formio-builder',
7-
template: '<div #formio></div>'
7+
template: '<div #formio></div>',
8+
standalone: false
89
})
910
export class FormioBuilder implements AfterViewInit {
1011
@ViewChild('formio') element: ElementRef;

projects/angular-formio/embed/src/formio.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { Form, Submission } from '@formio/core/types'
44

55
@Component({
66
selector: 'formio',
7-
template: '<div #formio></div>'
7+
template: '<div #formio></div>',
8+
standalone: false
89
})
910
export class FormioComponent implements AfterViewInit {
1011
@Input() src?: string;

projects/angular-formio/grid/src/GridBodyComponent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { GridService } from './grid.service';
55
import {FormioPromiseService} from '@formio/angular';
66

77
@Component({
8-
template: ''
8+
template: '',
9+
standalone: false
910
})
1011
export class GridBodyComponent {
1112
@Input() header: GridHeaderComponent;

projects/angular-formio/grid/src/GridFooterComponent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { GridHeaderComponent } from './GridHeaderComponent';
44
import { GridBodyComponent } from './GridBodyComponent';
55

66
@Component({
7-
template: ''
7+
template: '',
8+
standalone: false
89
})
910
export class GridFooterComponent {
1011
@Input() header: GridHeaderComponent;

projects/angular-formio/grid/src/GridHeaderComponent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import {FormioPromiseService} from '@formio/angular';
33
import {GridHeader} from './types/grid-header';
44

55
@Component({
6-
template: ''
6+
template: '',
7+
standalone: false
78
})
89
export class GridHeaderComponent {
910
@Input() actionAllowed: any;

projects/angular-formio/grid/src/form/FormGridBody.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Tooltip } from 'bootstrap';
55
@Component({
66
selector: 'form-grid-body',
77
styleUrls: ['./FormGridBody.component.scss'],
8-
templateUrl: './FormGridBody.component.html'
8+
templateUrl: './FormGridBody.component.html',
9+
standalone: false
910
})
1011
export class FormGridBodyComponent extends GridBodyComponent implements OnDestroy {
1112
@ViewChildren('create') createBtns: ElementRef[];

projects/angular-formio/grid/src/form/FormGridFooter.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { GridFooterComponent } from '../GridFooterComponent';
44
@Component({
55
templateUrl: './FormGridFooter.component.html',
66
styleUrls: ['../grid.footer.scss'],
7-
encapsulation: ViewEncapsulation.None
7+
encapsulation: ViewEncapsulation.None,
8+
standalone: false
89
})
910
export class FormGridFooterComponent extends GridFooterComponent implements OnInit {
1011

projects/angular-formio/grid/src/form/FormGridHeader.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {GridHeader, SortType} from '../types/grid-header';
44

55
@Component({
66
selector: 'form-grid-header',
7-
templateUrl: './FormGridHeader.component.html'
7+
templateUrl: './FormGridHeader.component.html',
8+
standalone: false
89
})
910
export class FormGridHeaderComponent extends GridHeaderComponent {
1011
public header: GridHeader;

projects/angular-formio/grid/src/form/time-since.pipe.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Pipe, PipeTransform } from '@angular/core';
22

33
@Pipe({
4-
name: 'timeSince'
4+
name: 'timeSince',
5+
standalone: false
56
})
67
export class TimeSince implements PipeTransform {
78
transform(date: Date): string {

projects/angular-formio/grid/src/grid.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import {GridHeader, SortType} from './types/grid-header';
2727
@Component({
2828
selector: 'formio-grid',
2929
styleUrls: ['./grid.component.scss'],
30-
templateUrl: './grid.component.html'
30+
templateUrl: './grid.component.html',
31+
standalone: false
3132
})
3233
export class FormioGridComponent implements OnChanges, OnInit, AfterViewInit {
3334
@Input() footerPosition = GridFooterPositions.bottom;

projects/angular-formio/grid/src/submission/SubmissionGridBody.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import {FormioPromiseService} from '@formio/angular';
55
import { GridHeader } from '../types/grid-header';
66
import {FormioSubmission} from '@formio/angular';
77
@Component({
8-
templateUrl: './SubmissionGridBody.component.html'
8+
templateUrl: './SubmissionGridBody.component.html',
9+
standalone: false
910
})
1011
export class SubmissionGridBodyComponent extends GridBodyComponent {
1112
load(formio: FormioPromiseService, query?: any) {

projects/angular-formio/grid/src/submission/SubmissionGridFooter.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { GridFooterComponent } from '../GridFooterComponent';
44
@Component({
55
templateUrl: './SubmissionGridFooter.component.html',
66
styleUrls: ['../grid.footer.scss'],
7-
encapsulation: ViewEncapsulation.None
7+
encapsulation: ViewEncapsulation.None,
8+
standalone: false
89
})
910
export class SubmissionGridFooterComponent extends GridFooterComponent implements OnInit {
1011

projects/angular-formio/grid/src/submission/SubmissionGridHeader.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {GridColumn} from '../types/grid-column';
88
import {GridHeader, SortType} from '../types/grid-header';
99

1010
@Component({
11-
templateUrl: './SubmissionGridHeader.component.html'
11+
templateUrl: './SubmissionGridHeader.component.html',
12+
standalone: false
1213
})
1314
export class SubmissionGridHeaderComponent extends GridHeaderComponent {
1415

projects/angular-formio/manager/src/create/create.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { Component, OnInit } from '@angular/core';
22
import { FormManagerEditComponent } from '../edit/edit.component';
33

44
@Component({
5-
templateUrl: '../edit/edit.component.html'
5+
templateUrl: '../edit/edit.component.html',
6+
standalone: false
67
})
78
export class FormManagerCreateComponent extends FormManagerEditComponent implements OnInit {
89
ngOnInit() {

projects/angular-formio/manager/src/delete/delete.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { FormioAlerts } from '@formio/angular';
55
import { GridService } from '@formio/angular/grid';
66

77
@Component({
8-
templateUrl: './delete.component.html'
8+
templateUrl: './delete.component.html',
9+
standalone: false
910
})
1011
export class FormManagerDeleteComponent {
1112
constructor(

projects/angular-formio/manager/src/edit/edit.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { FormBuilderComponent } from '@formio/angular';
77
import _ from 'lodash';
88

99
@Component({
10-
templateUrl: './edit.component.html'
10+
templateUrl: './edit.component.html',
11+
standalone: false
1112
})
1213
export class FormManagerEditComponent implements AfterViewInit {
1314
@ViewChild(FormBuilderComponent, {static: false}) builder: FormBuilderComponent;

projects/angular-formio/manager/src/form/form.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { FormioAppConfig } from '@formio/angular';
66
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
77

88
@Component({
9-
templateUrl: './form.component.html'
9+
templateUrl: './form.component.html',
10+
standalone: false
1011
})
1112
export class FormManagerFormComponent implements OnInit {
1213
choice: any = 'isUrl';

projects/angular-formio/manager/src/index/index.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { debounce } from 'lodash';
77

88
@Component({
99
templateUrl: './index.component.html',
10-
styleUrls: ['./index.component.scss']
10+
styleUrls: ['./index.component.scss'],
11+
standalone: false
1112
})
1213
export class FormManagerIndexComponent implements OnInit, AfterViewInit {
1314
@ViewChild('search') searchElement: ElementRef;

projects/angular-formio/manager/src/submission/delete/delete.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { ActivatedRoute, Router } from '@angular/router';
44
import { FormioAlerts } from '@formio/angular';
55

66
@Component({
7-
templateUrl: './delete.component.html'
7+
templateUrl: './delete.component.html',
8+
standalone: false
89
})
910
export class SubmissionDeleteComponent {
1011
constructor(

projects/angular-formio/manager/src/submission/edit/edit.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { FormManagerService } from '../../form-manager.service';
33
import { ActivatedRoute, Router } from '@angular/router';
44

55
@Component({
6-
templateUrl: './edit.component.html'
6+
templateUrl: './edit.component.html',
7+
standalone: false
78
})
89
export class SubmissionEditComponent {
910
constructor(

projects/angular-formio/manager/src/submission/index/index.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Router, ActivatedRoute } from '@angular/router';
33
import { FormManagerService } from '../../form-manager.service';
44

55
@Component({
6-
templateUrl: './index.component.html'
6+
templateUrl: './index.component.html',
7+
standalone: false
78
})
89
export class SubmissionIndexComponent {
910
constructor(

projects/angular-formio/manager/src/submission/submission/submission.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { FormManagerService } from '../../form-manager.service';
33
import { ActivatedRoute } from '@angular/router';
44

55
@Component({
6-
templateUrl: './submission.component.html'
6+
templateUrl: './submission.component.html',
7+
standalone: false
78
})
89
export class SubmissionComponent implements OnInit {
910
public downloadUrl: string;

projects/angular-formio/manager/src/submission/view/view.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { Component } from '@angular/core';
22
import { FormManagerService } from '../../form-manager.service';
33

44
@Component({
5-
templateUrl: './view.component.html'
5+
templateUrl: './view.component.html',
6+
standalone: false
67
})
78
export class SubmissionViewComponent {
89
constructor(public service: FormManagerService) { }

projects/angular-formio/manager/src/view/view.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { FormioAuthService } from '@formio/angular/auth';
66
import { Formio } from '@formio/js';
77

88
@Component({
9-
templateUrl: './view.component.html'
9+
templateUrl: './view.component.html',
10+
standalone: false
1011
})
1112
export class FormManagerViewComponent implements OnInit {
1213
public submission: any;

projects/angular-formio/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@formio/angular",
3-
"version": "8.1.0-rc.1",
3+
"version": "9.0.0-rc.1",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/formio/angular-formio"
@@ -25,13 +25,13 @@
2525
"node": ">=6.0.0"
2626
},
2727
"peerDependencies": {
28-
"@angular/core": "^16.0.0 || ^17.0.0 || ^18.0.0",
29-
"@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0",
30-
"@angular/elements": "^16.0.0 || ^17.0.0 || ^18.0.0",
28+
"@angular/core": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
29+
"@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
30+
"@angular/elements": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
3131
"@formio/js": "^5.0.0",
3232
"zone.js": "~0.13.0 || ~0.14.0",
3333
"lodash": "^4.17.20",
34-
"ngx-bootstrap": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^18.0.0",
34+
"ngx-bootstrap": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^18.0.0 || ^19.0.0",
3535
"tslib": "^2.0.0"
3636
}
3737
}

projects/angular-formio/resource/src/create/create.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { FormioResourceConfig } from '../resource.config';
55

66
@Component({
77
styleUrls: ['./create.component.scss'],
8-
templateUrl: './create.component.html'
8+
templateUrl: './create.component.html',
9+
standalone: false
910
})
1011
export class FormioResourceCreateComponent implements OnInit {
1112
public onError: EventEmitter<any>;

projects/angular-formio/resource/src/delete/delete.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Router, ActivatedRoute } from '@angular/router';
33
import { FormioResourceService } from '../resource.service';
44

55
@Component({
6-
templateUrl: './delete.component.html'
6+
templateUrl: './delete.component.html',
7+
standalone: false
78
})
89
export class FormioResourceDeleteComponent {
910
constructor(

0 commit comments

Comments
 (0)