Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ describe('AdminEventFormPreviewComponent', () => {

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [BrowserAnimationsModule, MatDialogModule],
declarations: [AdminEventFormPreviewComponent, TestHostComponent],
imports: [BrowserAnimationsModule, MatDialogModule, AdminEventFormPreviewComponent],
declarations: [TestHostComponent],
providers: [{
provide: MatDialog, useClass: MatDialogMock
}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import { AdminEventFormPreviewDialogComponent } from './form-preview-dialog/admi
selector: 'admin-event-form-preview',
templateUrl: './admin-event-form-preview.component.html',
styleUrls: ['./admin-event-form-preview.component.scss'],
standalone: false
standalone: true,
// empty - template has no directives
imports: [

]
})
export class AdminEventFormPreviewComponent implements OnChanges {
@Input() formDefinition: any[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ import { MatDialogModule as MatDialogModule, MAT_DIALOG_DATA as MAT_DIALOG_DATA
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AdminEventFormPreviewDialogComponent } from './admin-event-form-preview-dialog.component';

import { AdminEventFormPreviewComponent } from '../admin-event-form-preview.component';

describe('AdminEventFormPreviewComponent', () => {
describe('AdminEventFormPreviewDialogComponent', () => {
let component: AdminEventFormPreviewDialogComponent
let fixture: ComponentFixture<AdminEventFormPreviewDialogComponent>

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [BrowserAnimationsModule, MatDialogModule],
declarations: [AdminEventFormPreviewComponent],
imports: [BrowserAnimationsModule, MatDialogModule, AdminEventFormPreviewDialogComponent],
providers: [{
provide: MAT_DIALOG_DATA,
useValue: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import { Component, Inject, OnInit } from '@angular/core';
import { UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
import { MAT_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatButtonModule } from '@angular/material/button';
import { MAT_DIALOG_DATA as MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { ObservationEditModule } from 'mage-web-app/observation/observation-edit/observation-edit.module';

@Component({
selector: 'admin-event-form-preview-dialog',
templateUrl: './admin-event-form-preview-dialog.component.html',
styleUrls: ['./admin-event-form-preview-dialog.component.scss'],
standalone: false
standalone: true,
imports: [
MatDialogModule,
MatButtonModule,
ObservationEditModule
]
})
export class AdminEventFormPreviewDialogComponent implements OnInit {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import { AdminBreadcrumbModule } from '../../admin-breadcrumb/admin-breadcrumb.m

@NgModule({
declarations: [
AdminEventFormPreviewComponent,
AdminEventFormPreviewDialogComponent,
FormDetailsComponent,
FieldDialogComponent,
SymbologyDialogComponent,
Expand All @@ -55,7 +53,9 @@ import { AdminBreadcrumbModule } from '../../admin-breadcrumb/admin-breadcrumb.m
MatSelectModule,
MatDividerModule,
ObservationEditModule,
AdminBreadcrumbModule
AdminBreadcrumbModule,
AdminEventFormPreviewComponent,
AdminEventFormPreviewDialogComponent
],
exports: [
AdminEventFormPreviewComponent,
Expand Down
Loading