Skip to content

Commit ce48234

Browse files
committedJan 4, 2024
Adding support for Angular 17.
1 parent a9550a9 commit ce48234

File tree

6 files changed

+1086
-1261
lines changed

6 files changed

+1086
-1261
lines changed
 

‎package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "formio-angular-demo",
3-
"version": "6.0.0",
3+
"version": "7.0.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve --configuration development",
@@ -13,35 +13,35 @@
1313
"deploy": "npm run builddemo; cd dist; git init; git remote add origin git@github.com:formio/angular-demo.git; git checkout -b gh-pages; git add -A; git commit -m 'Update demo application'; git push -f origin gh-pages;"
1414
},
1515
"dependencies": {
16-
"@angular/animations": "^16.0.5",
17-
"@angular/common": "^16.0.5",
18-
"@angular/compiler": "^16.0.5",
19-
"@angular/core": "^16.0.5",
20-
"@angular/elements": "^16.0.5",
21-
"@angular/forms": "^16.0.5",
22-
"@angular/platform-browser": "^16.0.5",
23-
"@angular/platform-browser-dynamic": "^16.0.5",
24-
"@angular/router": "^16.0.5",
25-
"@formio/angular": "^6.0.0",
16+
"@angular/animations": "^17.0.8",
17+
"@angular/common": "^17.0.8",
18+
"@angular/compiler": "^17.0.8",
19+
"@angular/core": "^17.0.8",
20+
"@angular/elements": "^17.0.8",
21+
"@angular/forms": "^17.0.8",
22+
"@angular/platform-browser": "^17.0.8",
23+
"@angular/platform-browser-dynamic": "^17.0.8",
24+
"@angular/router": "^17.0.8",
25+
"@formio/angular": "^7.0.0",
2626
"bootstrap": "4",
2727
"bootswatch": "^4.5.3",
2828
"core-js": "^3.8.1",
2929
"font-awesome": "^4.7.0",
3030
"formiojs": "^4.18.0",
3131
"jquery": "^3.7.1",
32-
"ngx-bootstrap": "^10.2.0",
32+
"ngx-bootstrap": "^12.0.0",
3333
"popper.js": "^1.16.1",
3434
"prism-themes": "^1.5.0",
3535
"prismjs": "^1.22.0",
3636
"rxjs": "^7.8.0",
37-
"zone.js": "^0.13.0"
37+
"zone.js": "^0.14.2"
3838
},
3939
"devDependencies": {
40-
"@angular-devkit/build-angular": "^16.0.5",
41-
"@angular/cli": "^16.0.5",
42-
"@angular/compiler-cli": "^16.0.5",
43-
"@angular/language-service": "^16.0.5",
44-
"@types/jasmine": "^4.3.2",
40+
"@angular-devkit/build-angular": "^17.0.9",
41+
"@angular/cli": "^17.0.9",
42+
"@angular/compiler-cli": "^17.0.8",
43+
"@angular/language-service": "^17.0.8",
44+
"@types/jasmine": "^5.1.4",
4545
"@types/jasminewd2": "^2.0.8",
4646
"@types/node": "^20.2.5",
4747
"codelyzer": "^6.0.1",
@@ -55,6 +55,6 @@
5555
"protractor": "~7.0.0",
5656
"ts-node": "^10.9.1",
5757
"tslint": "^6.1.3",
58-
"typescript": "5.0.4"
58+
"typescript": "~5.2.0"
5959
}
6060
}

‎src/app/auth/login/login.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="alert alert-info">
22
<p>You can use the following to login.</p>
33
<ul>
4-
<li><strong>Email:</strong> demo@form.io</li>
4+
<li><strong>Email:</strong> demo&#64;form.io</li>
55
<li><strong>Password:</strong> testing</li>
66
</ul>
77
</div>

‎src/app/forms/builder/builder.component.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ <h3>Dynamic JSON Form Builder</h3>
44
<strong>builder.html</strong>
55
<pre class="text-center"><code class="language-markup">&lt;form-builder [form]="form" (change)="onChange($event)"&gt;&lt;/form-builder&gt;</code></pre>
66
<strong>builder.ts</strong>
7-
<pre><code class="language-javascript">import &#123; Component, ElementRef, ViewChild &#125; from '@angular/core';
8-
@Component(&#123;
7+
<pre><code class="language-javascript">import &#123; Component, ElementRef, ViewChild &#125; from '&#64;angular/core';
8+
&#64;Component(&#123;
99
template: require('./builder.html')
1010
&#125;)
1111
export class BuilderComponent &#123;
12-
@ViewChild('json') jsonElement?: ElementRef;
12+
&#64;ViewChild('json') jsonElement?: ElementRef;
1313
public form: Object = &#123;components: []&#125;;
1414
onChange(event) &#123;
1515
console.log(event.form);

‎src/app/forms/renderer/renderer.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
data: &#123;
7777
firstName: 'Joe',
7878
lastName: 'Smith',
79-
email: 'joe@example.com'
79+
email: 'joe&#64;example.com'
8080
&#125;
8181
&#125;"&gt;&lt;/formio&gt;</code></pre>
8282
</div>
@@ -116,7 +116,7 @@ <h5 class="card-title">Result</h5>
116116
data: {
117117
firstName: 'Joe',
118118
lastName: 'Smith',
119-
email: 'joe@example.com'
119+
email: 'joe&#64;example.com'
120120
}
121121
}"></formio>
122122
</div>

‎src/polyfills.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
/***************************************************************************************************
7272
* Zone JS is required by default for Angular itself.
7373
*/
74-
import 'zone.js/dist/zone'; // Included with Angular CLI.
74+
import 'zone.js';; // Included with Angular CLI.
7575

7676
/***************************************************************************************************
7777
* APPLICATION IMPORTS

0 commit comments

Comments
 (0)
Please sign in to comment.