Make ProductGamesystemEditor, ProductState and ProductTransitionEditor not standalone
Some checks failed
E2E Testing / test (push) Failing after 1m27s
Some checks failed
E2E Testing / test (push) Failing after 1m27s
This commit is contained in:
parent
9e43b3901c
commit
e62f156eb2
@ -54,6 +54,12 @@ import {MatOption, MatSelect} from "@angular/material/select";
|
||||
import {
|
||||
ProductGamesystemEditorComponent
|
||||
} from "./editor/gamesystem-editor/product-gamesystem-editor/product-gamesystem-editor.component";
|
||||
import {
|
||||
ProductTransitionEditorComponent
|
||||
} from "./editor/gamesystem-editor/transition-editor/product-transition-editor/product-transition-editor.component";
|
||||
import {
|
||||
ProductStateEditorComponent
|
||||
} from "./editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component";
|
||||
|
||||
// AoT requires an exported function for factories
|
||||
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
||||
@ -70,7 +76,10 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new Transl
|
||||
GamesystemEditorComponent,
|
||||
SimpleGamesystemEditorComponent,
|
||||
SimpleStateEditorComponent,
|
||||
SimpleTransitionEditorComponent
|
||||
SimpleTransitionEditorComponent,
|
||||
ProductTransitionEditorComponent,
|
||||
ProductStateEditorComponent,
|
||||
ProductGamesystemEditorComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
@ -124,8 +133,7 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new Transl
|
||||
MatCheckbox,
|
||||
MatSelect,
|
||||
MatOption,
|
||||
MatHint,
|
||||
ProductGamesystemEditorComponent
|
||||
MatHint
|
||||
],
|
||||
providers: [],
|
||||
bootstrap: [AppComponent]
|
||||
|
@ -10,11 +10,6 @@ import {
|
||||
|
||||
@Component({
|
||||
selector: 'app-product-gamesystem-editor',
|
||||
standalone: true,
|
||||
imports: [
|
||||
ProductStateEditorComponent,
|
||||
ProductTransitionEditorComponent
|
||||
],
|
||||
templateUrl: './product-gamesystem-editor.component.html',
|
||||
styleUrl: './product-gamesystem-editor.component.scss'
|
||||
})
|
||||
|
@ -2,43 +2,14 @@ import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import {ProductGamesystem} from "../../../../game-model/gamesystems/ProductGamesystem";
|
||||
import {SimpleGamesystem} from "../../../../game-model/gamesystems/SimpleGamesystem";
|
||||
import {
|
||||
MatCell, MatCellDef,
|
||||
MatColumnDef, MatHeaderCell, MatHeaderCellDef,
|
||||
MatHeaderRow,
|
||||
MatHeaderRowDef,
|
||||
MatRow,
|
||||
MatRowDef,
|
||||
MatTable,
|
||||
MatTableDataSource
|
||||
} from "@angular/material/table";
|
||||
import {SimpleState} from "../../../../game-model/gamesystems/SimpleState";
|
||||
import {State} from "../../../../game-model/gamesystems/State";
|
||||
import {NgForOf, NgIf} from "@angular/common";
|
||||
import {ProductState} from "../../../../game-model/gamesystems/ProductState";
|
||||
import {MatIcon} from "@angular/material/icon";
|
||||
import {Gamesystem} from "../../../../game-model/gamesystems/Gamesystem";
|
||||
import {LeafGamesystemCalculator} from "../../product-gamesystem-editor/LeafGamesystemCalculator";
|
||||
import {MatTooltip} from "@angular/material/tooltip";
|
||||
|
||||
@Component({
|
||||
selector: 'app-product-state-editor',
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatTable,
|
||||
MatRow,
|
||||
MatRowDef,
|
||||
MatHeaderRow,
|
||||
MatHeaderRowDef,
|
||||
MatColumnDef,
|
||||
MatHeaderCell,
|
||||
MatHeaderCellDef,
|
||||
MatCell,
|
||||
MatCellDef,
|
||||
NgForOf,
|
||||
NgIf,
|
||||
MatIcon,
|
||||
MatTooltip
|
||||
],
|
||||
templateUrl: './product-state-editor.component.html',
|
||||
styleUrl: './product-state-editor.component.scss'
|
||||
})
|
||||
|
@ -31,28 +31,6 @@ class DisplayedColumnName {
|
||||
}
|
||||
@Component({
|
||||
selector: 'app-product-transition-editor',
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatTable,
|
||||
NgForOf,
|
||||
MatColumnDef,
|
||||
MatHeaderCell,
|
||||
MatHeaderCellDef,
|
||||
MatCell,
|
||||
MatCellDef,
|
||||
NgIf,
|
||||
MatHeaderRow,
|
||||
MatRow,
|
||||
MatHeaderRowDef,
|
||||
MatRowDef,
|
||||
MatTooltip,
|
||||
MatFormField,
|
||||
MatInput,
|
||||
MatNoDataRow,
|
||||
MatCard,
|
||||
MatCardContent,
|
||||
MatCardTitle
|
||||
],
|
||||
templateUrl: './product-transition-editor.component.html',
|
||||
styleUrl: './product-transition-editor.component.scss'
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user