Skip to content

Commit 9d72218

Browse files
authored
Merge pull request #1285 from valor-software/alex-migrate-to-angular-19
chore(migrate): added angular 19 support
2 parents d738214 + 092d432 commit 9d72218

File tree

15 files changed

+15240
-16103
lines changed

15 files changed

+15240
-16103
lines changed

.eslintrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
}
3030
]
3131
}
32+
],
33+
"@angular-eslint/prefer-standalone": [
34+
"off"
3235
]
3336
}
3437
},
@@ -49,7 +52,10 @@
4952
"@typescript-eslint/semi": [
5053
"error"
5154
],
52-
"@typescript-eslint/ban-ts-comment": "off"
55+
"@typescript-eslint/ban-ts-comment": "off",
56+
"@angular-eslint/prefer-standalone": [
57+
"off"
58+
]
5359
}
5460
},
5561
{

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ scripts/**/*.map
4040

4141
.nx/cache
4242
.yarn
43+
.nx/

apps/demo/.eslintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
"plugin:@nx/angular",
1515
"plugin:@angular-eslint/template/process-inline-templates"
1616
],
17-
"rules": {}
17+
"rules": {
18+
"@angular-eslint/prefer-standalone": [
19+
"off"
20+
]
21+
}
1822
},
1923
{
2024
"files": [

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ const gettingStarted = require('html-loader!markdown-loader!../getting-started.m
4040
<p class="text-muted text-center"><a href="https://github.com/valor-software/ng2-file-upload">ng2-file-upload</a> is maintained by <a href="https://github.com/valor-software">valor-software</a>.</p>
4141
</div>
4242
</footer>
43-
`
43+
`,
44+
standalone: false
4445
})
4546
export class AppComponent {
4647
public gettingStarted:string = gettingStarted;

apps/demo/src/app/components/file-upload-section.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const tabDesc: Array<any> = [
1616

1717
@Component({
1818
selector: 'file-upload-section',
19-
templateUrl: './file-upload-section.html'
19+
templateUrl: './file-upload-section.html',
20+
standalone: false
2021
})
2122
export class FileUploadSectionComponent {
2223
name = 'File Upload';

apps/demo/src/app/components/file-upload/simple-demo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const URL = 'https://evening-anchorage-3159.herokuapp.com/api/';
66

77
@Component({
88
selector: 'simple-demo',
9-
templateUrl: './simple-demo.html'
9+
templateUrl: './simple-demo.html',
10+
standalone: false
1011
})
1112
export class SimpleDemoComponent {
1213

apps/demo/src/doc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { FileSelectDirective, FileDropDirective, FileUploader } from 'ng2-file-u
66
### Annotations
77
```typescript
88
// class FileSelectDirective
9-
@Directive({ selector: '[ng2FileSelect]' })
9+
@Directive({ selector: '[ng2FileSelect]', standalone: false })
1010
```
1111

1212
```typescript
1313
// class FileDropDirective
14-
@Directive({ selector: '[ng2FileDrop]' })
14+
@Directive({ selector: '[ng2FileDrop]', standalone: false })
1515
```
1616

1717
## FileSelect API

libs/ng2-file-upload/.eslintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"plugin:@nx/angular",
2727
"plugin:@angular-eslint/template/process-inline-templates"
2828
],
29-
"rules": {}
29+
"rules": {
30+
"@angular-eslint/prefer-standalone": [
31+
"off"
32+
]
33+
}
3034
},
3135
{
3236
"files": [

libs/ng2-file-upload/file-upload/file-drop.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Directive, EventEmitter, ElementRef, HostListener, Input, Output } from
22

33
import { FileUploader, FileUploaderOptions } from './file-uploader.class';
44

5-
@Directive({ selector: '[ng2FileDrop]' })
5+
@Directive({ selector: '[ng2FileDrop]', standalone: false })
66
export class FileDropDirective {
77
@Input() uploader?: FileUploader;
88
@Output() fileOver: EventEmitter<any> = new EventEmitter();

libs/ng2-file-upload/file-upload/file-select.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Directive, EventEmitter, ElementRef, Input, HostListener, Output } from
22

33
import { FileUploader, FileUploaderOptions } from './file-uploader.class';
44

5-
@Directive({ selector: '[ng2FileSelect]' })
5+
@Directive({ selector: '[ng2FileSelect]', standalone: false })
66
export class FileSelectDirective {
77
@Input() uploader?: FileUploader;
88
// eslint-disable-next-line @angular-eslint/no-output-on-prefix

0 commit comments

Comments
 (0)