issue-5-product-gamesystems #11
@ -54,6 +54,12 @@ import {MatOption, MatSelect} from "@angular/material/select";
 | 
				
			|||||||
import {
 | 
					import {
 | 
				
			||||||
  ProductGamesystemEditorComponent
 | 
					  ProductGamesystemEditorComponent
 | 
				
			||||||
} from "./editor/gamesystem-editor/product-gamesystem-editor/product-gamesystem-editor.component";
 | 
					} 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
 | 
					// AoT requires an exported function for factories
 | 
				
			||||||
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader =>  new TranslateHttpLoader(http, './assets/i18n/', '.json');
 | 
					const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader =>  new TranslateHttpLoader(http, './assets/i18n/', '.json');
 | 
				
			||||||
@ -70,7 +76,10 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader =>  new Transl
 | 
				
			|||||||
    GamesystemEditorComponent,
 | 
					    GamesystemEditorComponent,
 | 
				
			||||||
    SimpleGamesystemEditorComponent,
 | 
					    SimpleGamesystemEditorComponent,
 | 
				
			||||||
    SimpleStateEditorComponent,
 | 
					    SimpleStateEditorComponent,
 | 
				
			||||||
    SimpleTransitionEditorComponent
 | 
					    SimpleTransitionEditorComponent,
 | 
				
			||||||
 | 
					    ProductTransitionEditorComponent,
 | 
				
			||||||
 | 
					    ProductStateEditorComponent,
 | 
				
			||||||
 | 
					    ProductGamesystemEditorComponent
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  imports: [
 | 
					  imports: [
 | 
				
			||||||
    BrowserModule,
 | 
					    BrowserModule,
 | 
				
			||||||
@ -124,8 +133,7 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader =>  new Transl
 | 
				
			|||||||
    MatCheckbox,
 | 
					    MatCheckbox,
 | 
				
			||||||
    MatSelect,
 | 
					    MatSelect,
 | 
				
			||||||
    MatOption,
 | 
					    MatOption,
 | 
				
			||||||
    MatHint,
 | 
					    MatHint
 | 
				
			||||||
    ProductGamesystemEditorComponent
 | 
					 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  providers: [],
 | 
					  providers: [],
 | 
				
			||||||
  bootstrap: [AppComponent]
 | 
					  bootstrap: [AppComponent]
 | 
				
			||||||
 | 
				
			|||||||
@ -10,11 +10,6 @@ import {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'app-product-gamesystem-editor',
 | 
					  selector: 'app-product-gamesystem-editor',
 | 
				
			||||||
  standalone: true,
 | 
					 | 
				
			||||||
  imports: [
 | 
					 | 
				
			||||||
    ProductStateEditorComponent,
 | 
					 | 
				
			||||||
    ProductTransitionEditorComponent
 | 
					 | 
				
			||||||
  ],
 | 
					 | 
				
			||||||
  templateUrl: './product-gamesystem-editor.component.html',
 | 
					  templateUrl: './product-gamesystem-editor.component.html',
 | 
				
			||||||
  styleUrl: './product-gamesystem-editor.component.scss'
 | 
					  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 {ProductGamesystem} from "../../../../game-model/gamesystems/ProductGamesystem";
 | 
				
			||||||
import {SimpleGamesystem} from "../../../../game-model/gamesystems/SimpleGamesystem";
 | 
					import {SimpleGamesystem} from "../../../../game-model/gamesystems/SimpleGamesystem";
 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
  MatCell, MatCellDef,
 | 
					 | 
				
			||||||
  MatColumnDef, MatHeaderCell, MatHeaderCellDef,
 | 
					 | 
				
			||||||
  MatHeaderRow,
 | 
					 | 
				
			||||||
  MatHeaderRowDef,
 | 
					 | 
				
			||||||
  MatRow,
 | 
					 | 
				
			||||||
  MatRowDef,
 | 
					 | 
				
			||||||
  MatTable,
 | 
					 | 
				
			||||||
  MatTableDataSource
 | 
					  MatTableDataSource
 | 
				
			||||||
} from "@angular/material/table";
 | 
					} from "@angular/material/table";
 | 
				
			||||||
import {SimpleState} from "../../../../game-model/gamesystems/SimpleState";
 | 
					import {SimpleState} from "../../../../game-model/gamesystems/SimpleState";
 | 
				
			||||||
import {State} from "../../../../game-model/gamesystems/State";
 | 
					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 {LeafGamesystemCalculator} from "../../product-gamesystem-editor/LeafGamesystemCalculator";
 | 
				
			||||||
import {MatTooltip} from "@angular/material/tooltip";
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'app-product-state-editor',
 | 
					  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',
 | 
					  templateUrl: './product-state-editor.component.html',
 | 
				
			||||||
  styleUrl: './product-state-editor.component.scss'
 | 
					  styleUrl: './product-state-editor.component.scss'
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
				
			|||||||
@ -31,28 +31,6 @@ class DisplayedColumnName {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'app-product-transition-editor',
 | 
					  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',
 | 
					  templateUrl: './product-transition-editor.component.html',
 | 
				
			||||||
  styleUrl: './product-transition-editor.component.scss'
 | 
					  styleUrl: './product-transition-editor.component.scss'
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user