Skip to content

Commit d8bb4c6

Browse files
committed
$'syncing commit from monoropo. PR: 244, Title: FIO-10191: Added support for standalone components'
1 parent 1e6894a commit d8bb4c6

29 files changed

+121
-108
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component } from '@angular/core';
2+
import { RouterLinkActive, RouterLink, RouterOutlet } from '@angular/router';
23
@Component({
3-
templateUrl: './auth.component.html',
4-
standalone: false
4+
templateUrl: './auth.component.html',
5+
imports: [RouterLinkActive, RouterLink, RouterOutlet]
56
})
67
export class FormioAuthComponent {}

projects/angular-formio/auth/src/auth.module.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ import { FormioAuthRoutes } from './auth.routes';
1111
import { extendRouter } from '@formio/angular';
1212

1313
@NgModule({
14-
imports: [
15-
CommonModule,
16-
FormioModule,
17-
RouterModule
18-
],
19-
declarations: [
20-
FormioAuthComponent,
21-
FormioAuthLoginComponent,
22-
FormioAuthRegisterComponent,
23-
FormioResetPassComponent
24-
]
14+
imports: [
15+
CommonModule,
16+
FormioModule,
17+
RouterModule,
18+
FormioAuthComponent,
19+
FormioAuthLoginComponent,
20+
FormioAuthRegisterComponent,
21+
FormioResetPassComponent
22+
]
2523
})
2624
export class FormioAuth {
2725
static forRoot(config?: FormioAuthRouteConfig): any {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component } from '@angular/core';
22
import { FormioAuthService } from '../auth.service';
3+
import { FormioComponent } from '@formio/angular';
34
@Component({
4-
templateUrl: './login.component.html',
5-
standalone: false
5+
templateUrl: './login.component.html',
6+
imports: [FormioComponent]
67
})
78
export class FormioAuthLoginComponent {
89
public renderOptions: any = {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component } from '@angular/core';
22
import { FormioAuthService } from '../auth.service';
3+
import { FormioComponent } from '@formio/angular';
34
@Component({
4-
templateUrl: './register.component.html',
5-
standalone: false
5+
templateUrl: './register.component.html',
6+
imports: [FormioComponent]
67
})
78
export class FormioAuthRegisterComponent {
89
public renderOptions: any = {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component } from '@angular/core';
22
import { FormioAuthService } from '../auth.service';
3+
import { FormioComponent } from '@formio/angular';
34
@Component({
4-
templateUrl: './resetpass.component.html',
5-
standalone: false
5+
templateUrl: './resetpass.component.html',
6+
imports: [FormioComponent]
67
})
78
export class FormioResetPassComponent {
89
constructor(public service: FormioAuthService) {}

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

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

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

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import { FormioAppService } from "./app.service";
66

77
@NgModule({
88
imports: [
9-
CommonModule
10-
],
11-
declarations: [
9+
CommonModule,
1210
FormioComponent,
1311
FormioBuilder
1412
],

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

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

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

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { GridHeaderComponent } from './GridHeaderComponent';
44
import { GridService } from './grid.service';
55
import {FormioPromiseService} from '@formio/angular';
66

7-
@Component({
8-
template: '',
9-
standalone: false
10-
})
7+
@Component({ template: '' })
118
export class GridBodyComponent {
129
@Input() header: GridHeaderComponent;
1310
@Input() actionAllowed: any;

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import { Input, Output, ViewChild, TemplateRef, EventEmitter, Component } from '
33
import { GridHeaderComponent } from './GridHeaderComponent';
44
import { GridBodyComponent } from './GridBodyComponent';
55

6-
@Component({
7-
template: '',
8-
standalone: false
9-
})
6+
@Component({ template: '' })
107
export class GridFooterComponent {
118
@Input() header: GridHeaderComponent;
129
@Input() body: GridBodyComponent;

0 commit comments

Comments
 (0)