Skip to content

Commit f5676fd

Browse files
authored
(chore) Upgrade to Angular 19 (#163)
1 parent 081fc93 commit f5676fd

File tree

62 files changed

+3644
-3191
lines changed

Some content is hidden

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

62 files changed

+3644
-3191
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"@angular-eslint/no-empty-lifecycle-method": "warn",
3333
"@angular-eslint/no-input-rename": "warn",
3434
"@angular-eslint/no-output-native": "warn",
35-
"@angular-eslint/no-output-on-prefix": "warn"
35+
"@angular-eslint/no-output-on-prefix": "warn",
36+
"@angular-eslint/prefer-standalone": "off"
3637
}
3738
},
3839
{

package.json

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@
1717
"@carbon/styles": "1.x"
1818
},
1919
"dependencies": {
20-
"@angular-devkit/core": "^18.2.12",
21-
"@angular-extensions/elements": "^18.2.1",
22-
"@angular/animations": "^18.2.13",
23-
"@angular/cdk": "^18.2.13",
24-
"@angular/common": "^18.2.13",
25-
"@angular/compiler": "^18.2.13",
26-
"@angular/core": "^18.2.13",
27-
"@angular/forms": "^18.2.13",
28-
"@angular/platform-browser": "^18.2.13",
29-
"@angular/platform-browser-dynamic": "^18.2.13",
30-
"@angular/router": "^18.2.13",
20+
"@angular-devkit/core": "^19.2.19",
21+
"@angular-extensions/elements": "^19.0.0",
22+
"@angular/animations": "^19.2.18",
23+
"@angular/cdk": "^19.0.0",
24+
"@angular/common": "^19.2.18",
25+
"@angular/compiler": "^19.2.18",
26+
"@angular/core": "^19.2.18",
27+
"@angular/forms": "^19.2.18",
28+
"@angular/platform-browser": "^19.2.18",
29+
"@angular/platform-browser-dynamic": "^19.2.18",
30+
"@angular/router": "^19.2.18",
3131
"@carbon/styles": "1.x",
32-
"@ng-select/ng-select": "^13.9.1",
32+
"@ng-select/ng-select": "^14.0.0",
3333
"@ngx-translate/core": "^16.0.4",
34-
"@openmrs/ngx-file-uploader": "next",
34+
"@openmrs/ngx-file-uploader": "^19.0.0",
3535
"core-js": "^2.6.12",
3636
"font-awesome": "^4.7.0",
3737
"jquery": "^3.7.1",
3838
"jspdf": "^2.5.1",
3939
"lodash": "^4.17.21",
4040
"moment": "^2.29.4",
41-
"ngx-bootstrap": "^12.0.0",
41+
"ngx-bootstrap": "^19.0.0",
4242
"ngx-webcam": "0.4.1",
4343
"pdfmake": "0.1.72",
4444
"reflect-metadata": "^0.1.13",
@@ -48,24 +48,26 @@
4848
"time-ago-pipe": "^1.3.2",
4949
"tree-model": "^1.0.7",
5050
"tslib": "^2.0.0",
51-
"zone.js": "~0.14.10"
51+
"zone.js": "~0.15.1"
5252
},
5353
"devDependencies": {
54-
"@angular-devkit/build-angular": "^18.2.12",
54+
"@angular-devkit/build-angular": "^19.2.19",
5555
"@angular-eslint/builder": "^19.0.2",
5656
"@angular-eslint/eslint-plugin": "^19.0.2",
5757
"@angular-eslint/eslint-plugin-template": "^19.0.2",
5858
"@angular-eslint/schematics": "^19.0.2",
5959
"@angular-eslint/template-parser": "^19.0.2",
60-
"@angular/cli": "^18.2.12",
61-
"@angular/compiler-cli": "^18.2.13",
62-
"@angular/language-service": "^18.2.13",
63-
"@angular/material": "^18.2.13",
60+
"@angular/cli": "^19.2.19",
61+
"@angular/compiler-cli": "^19.2.18",
62+
"@angular/language-service": "^19.2.18",
63+
"@angular/material": "^19.0.0",
6464
"@types/jasmine": "~3.6.11",
6565
"@types/jasminewd2": "~2.0.11",
6666
"@types/node": "^12.20.55",
67-
"@typescript-eslint/eslint-plugin": "^7.11.0",
68-
"@typescript-eslint/parser": "^7.11.0",
67+
"@typescript-eslint/eslint-plugin": "^8.0.0",
68+
"@typescript-eslint/parser": "^8.0.0",
69+
"@typescript-eslint/types": "^8.0.0",
70+
"@typescript-eslint/utils": "^8.0.0",
6971
"browserslist-config-openmrs": "^1.0.1",
7072
"eslint": "^8.57.0",
7173
"husky": "^8.0.0",
@@ -78,13 +80,13 @@
7880
"karma-jasmine": "~5.1.0",
7981
"karma-jasmine-html-reporter": "^2.1.0",
8082
"lint-staged": "^15.2.2",
81-
"ng-packagr": "^18.2.1",
83+
"ng-packagr": "^19.2.2",
8284
"prettier": "2.1.2",
8385
"protractor": "~7.0.0",
8486
"sass": "^1.68.0",
8587
"ts-node": "~5.0.1",
8688
"turbo": "^2.2.3",
87-
"typescript": "~5.4.5"
89+
"typescript": "~5.8.3"
8890
},
8991
"browserslist": [
9092
"extends browserslist-config-openmrs"

projects/ngx-formentry/.eslintrc.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ module.exports = {
2525
prefix: 'ofe',
2626
style: 'kebab-case'
2727
}
28-
]
28+
],
29+
'@angular-eslint/prefer-standalone': 'off'
2930
}
3031
},
3132
{

projects/ngx-formentry/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "@openmrs/ngx-formentry",
3-
"version": "18.0.0",
3+
"version": "19.0.0",
44
"dependencies": {},
55
"peerDependencies": {
6-
"@angular/animations": "^18.2.13",
7-
"@angular/cdk": "^18.2.13",
8-
"@angular/common": "^18.2.13",
9-
"@angular/compiler": "^18.2.13",
10-
"@angular/compiler-cli": "^18.2.13",
11-
"@angular/core": "^18.2.13",
12-
"@angular/forms": "^18.2.13",
6+
"@angular/animations": "^19.0.0",
7+
"@angular/cdk": "^19.0.0",
8+
"@angular/common": "^19.0.0",
9+
"@angular/compiler": "^19.0.0",
10+
"@angular/compiler-cli": "^19.0.0",
11+
"@angular/core": "^19.0.0",
12+
"@angular/forms": "^19.0.0",
1313
"@carbon/styles": "1.x",
14-
"@ng-select/ng-select": "^13.9.1",
14+
"@ng-select/ng-select": "^14.0.0",
1515
"@ngx-translate/core": "^16.0.4",
16-
"@openmrs/ngx-file-uploader": "next",
16+
"@openmrs/ngx-file-uploader": "^19.0.0",
1717
"lodash": "^4.17.21",
1818
"moment": "^2.29.4",
1919
"ngx-webcam": "^0.4.1",

projects/ngx-formentry/src/change-tracking/sample-form/sample-form.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import {
99

1010
import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
1111
@Component({
12-
selector: 'ofe-sample-form',
13-
templateUrl: 'sample-form.component.html'
12+
selector: 'ofe-sample-form',
13+
templateUrl: 'sample-form.component.html',
14+
standalone: false
1415
})
1516
export class SampleFormComponent implements OnInit {
1617
form: UntypedFormGroup;

projects/ngx-formentry/src/components/afe-ng-select.component.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ import { Option } from '../form-entry/question-models/select-option';
66
import { DataSource } from '../form-entry/question-models/interfaces/data-source';
77

88
@Component({
9-
selector: 'ofe-ng-select',
10-
template: `<ng-select
9+
selector: 'ofe-ng-select',
10+
template: `<ng-select
1111
(searchInputText)="getChangingText($event)"
1212
(ngModelChange)="onValueChange($event)"
1313
[options]="question_options"
1414
[multiple]="multiple"
1515
>
1616
</ng-select> `,
17-
providers: [
18-
{
19-
provide: NG_VALUE_ACCESSOR,
20-
useExisting: forwardRef(() => AfeNgSelectComponent),
21-
multi: true
22-
}
23-
]
17+
providers: [
18+
{
19+
provide: NG_VALUE_ACCESSOR,
20+
useExisting: forwardRef(() => AfeNgSelectComponent),
21+
multi: true
22+
}
23+
],
24+
standalone: false
2425
})
2526
export class AfeNgSelectComponent implements ControlValueAccessor, OnInit {
2627
subject: BehaviorSubject<Option[]>;

projects/ngx-formentry/src/components/appointments-overview/appointments-overview.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { LeafNode } from '../../form-entry/form-factory/form-node';
44
import moment from 'moment';
55

66
@Component({
7-
selector: 'ofe-appointments-overview',
8-
templateUrl: './appointments-overview.component.html',
9-
styleUrls: ['./appointments-overview.component.css']
7+
selector: 'ofe-appointments-overview',
8+
templateUrl: './appointments-overview.component.html',
9+
styleUrls: ['./appointments-overview.component.css'],
10+
standalone: false
1011
})
1112
export class AppointmentsOverviewComponent implements OnChanges {
1213
@Input() node: LeafNode;

projects/ngx-formentry/src/components/check-box/checkbox.component.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
44
import * as _ from 'lodash';
55

66
@Component({
7-
selector: 'ofe-checkbox',
8-
templateUrl: './checkbox.component.html',
9-
providers: [
10-
{
11-
provide: NG_VALUE_ACCESSOR,
12-
useExisting: forwardRef(() => CheckboxControlComponent),
13-
multi: true
14-
}
15-
]
7+
selector: 'ofe-checkbox',
8+
templateUrl: './checkbox.component.html',
9+
providers: [
10+
{
11+
provide: NG_VALUE_ACCESSOR,
12+
useExisting: forwardRef(() => CheckboxControlComponent),
13+
multi: true
14+
}
15+
],
16+
standalone: false
1617
})
1718
export class CheckboxControlComponent implements OnInit {
1819
@Input() public id: String;

projects/ngx-formentry/src/components/custom-component-wrapper/custom-component-wrapper.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component, Input } from '@angular/core';
22

33
@Component({
4-
selector: 'ofe-custom-component-wrapper',
5-
templateUrl: 'custom-component-wrapper.component.html'
4+
selector: 'ofe-custom-component-wrapper',
5+
templateUrl: 'custom-component-wrapper.component.html',
6+
standalone: false
67
})
78
export class CustomComponentWrapperComponent {
89
@Input()

projects/ngx-formentry/src/components/custom-control-wrapper/custom-control-wrapper.component.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
33
import { CustomControlQuestion } from '../../form-entry/question-models/custom-control-question.model';
44

55
@Component({
6-
selector: 'ofe-custom-control-wrapper',
7-
templateUrl: 'custom-control-wrapper.component.html',
8-
providers: [
9-
{
10-
provide: NG_VALUE_ACCESSOR,
11-
multi: true,
12-
useExisting: forwardRef(() => CustomControlWrapperComponent)
13-
}
14-
]
6+
selector: 'ofe-custom-control-wrapper',
7+
templateUrl: 'custom-control-wrapper.component.html',
8+
providers: [
9+
{
10+
provide: NG_VALUE_ACCESSOR,
11+
multi: true,
12+
useExisting: forwardRef(() => CustomControlWrapperComponent)
13+
}
14+
],
15+
standalone: false
1516
})
1617
export class CustomControlWrapperComponent
1718
implements ControlValueAccessor, OnInit {

0 commit comments

Comments
 (0)