issue-15 #21
@ -37,8 +37,8 @@
 | 
			
		||||
  <ng-container matColumnDef="edit">
 | 
			
		||||
    <th mat-header-cell *matHeaderCellDef></th>
 | 
			
		||||
    <td mat-cell *matCellDef="let condition;">
 | 
			
		||||
      <button mat-icon-button color="primary" *ngIf="editedCondition == undefined" (click)="edit(condition)"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
      <button mat-icon-button color="primary" *ngIf="editedCondition === condition" (click)="finishEditing()"><mat-icon>done</mat-icon></button>
 | 
			
		||||
      <button mat-icon-button class="icon-btn-primary" *ngIf="editedCondition == undefined" (click)="edit(condition)"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
      <button mat-icon-button class="icon-btn-primary" *ngIf="editedCondition === condition" (click)="finishEditing()"><mat-icon>done</mat-icon></button>
 | 
			
		||||
    </td>
 | 
			
		||||
  </ng-container>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -51,8 +51,8 @@
 | 
			
		||||
      <ng-container matColumnDef="edit">
 | 
			
		||||
        <th mat-header-cell *matHeaderCellDef></th>
 | 
			
		||||
        <td mat-cell *matCellDef="let state">
 | 
			
		||||
          <button mat-icon-button color="primary" *ngIf="editedElement !== state" (click)="editState(state)" [disabled]="editedElement !== null"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
          <button mat-icon-button color="primary" (click)="finishEditing()" *ngIf="editedElement === state"><mat-icon>done</mat-icon></button>
 | 
			
		||||
          <button mat-icon-button class="icon-btn-primary" *ngIf="editedElement !== state" (click)="editState(state)" [disabled]="editedElement !== null"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
          <button mat-icon-button class="icon-btn-primary" (click)="finishEditing()" *ngIf="editedElement === state"><mat-icon>done</mat-icon></button>
 | 
			
		||||
        </td>
 | 
			
		||||
      </ng-container>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -17,12 +17,6 @@ tr.example-element-row:not(.example-expanded-row):active {
 | 
			
		||||
.example-element-row td {
 | 
			
		||||
  border-bottom-width: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.example-element-detail {
 | 
			
		||||
  overflow: hidden;
 | 
			
		||||
  display: flex;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.example-element-diagram {
 | 
			
		||||
  min-width: 80px;
 | 
			
		||||
  border: 2px solid black;
 | 
			
		||||
 | 
			
		||||
@ -26,8 +26,8 @@
 | 
			
		||||
  <ng-container matColumnDef="edit">
 | 
			
		||||
    <th mat-header-cell *matHeaderCellDef></th>
 | 
			
		||||
    <td mat-cell *matCellDef="let action">
 | 
			
		||||
      <button mat-icon-button color="primary" (click)="editAction(action)" [disabled]="addedAction != undefined || editedAction != undefined" *ngIf="action !== editedAction && action !== addedAction"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
      <button mat-icon-button color="primary" *ngIf="action === editedAction || action === addedAction" (click)="finishEditing()"><mat-icon>done</mat-icon></button>
 | 
			
		||||
      <button mat-icon-button class="icon-btn-primary" (click)="editAction(action)" [disabled]="addedAction != undefined || editedAction != undefined" *ngIf="action !== editedAction && action !== addedAction"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
      <button mat-icon-button class="icon-btn-primary" *ngIf="action === editedAction || action === addedAction" (click)="finishEditing()"><mat-icon>done</mat-icon></button>
 | 
			
		||||
    </td>
 | 
			
		||||
  </ng-container>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -58,8 +58,8 @@
 | 
			
		||||
      <ng-container matColumnDef="edit">
 | 
			
		||||
        <th mat-header-cell *matHeaderCellDef></th>
 | 
			
		||||
        <td mat-cell *matCellDef="let transition">
 | 
			
		||||
          <button mat-icon-button color="primary" *ngIf="editedTransition !== transition" [disabled]="editedTransition != undefined"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
          <button mat-icon-button color="primary" *ngIf="editedTransition === transition"
 | 
			
		||||
          <button mat-icon-button class="icon-btn-primary" *ngIf="editedTransition !== transition" [disabled]="editedTransition != undefined"><mat-icon>edit</mat-icon></button>
 | 
			
		||||
          <button mat-icon-button class="icon-btn-primary" *ngIf="editedTransition === transition"
 | 
			
		||||
                  [disabled]="transitionError || transitionStartingStateError || transitionEndingStateError" (click)="finishEditing()"
 | 
			
		||||
          ><mat-icon>done</mat-icon></button>
 | 
			
		||||
        </td>
 | 
			
		||||
 | 
			
		||||
@ -17,3 +17,7 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
 | 
			
		||||
  background-color: #4f5459 !important;
 | 
			
		||||
  color: white;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.icon-btn-primary {
 | 
			
		||||
  color: #3c95f8;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										13
									
								
								testModel/gamesystems/Weather.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								testModel/gamesystems/Weather.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
{
 | 
			
		||||
    "componentName": "Weather",
 | 
			
		||||
    "componentDescription": "",
 | 
			
		||||
    "states": [
 | 
			
		||||
        {
 | 
			
		||||
            "initial": false,
 | 
			
		||||
            "conditions": [],
 | 
			
		||||
            "stateLabel": "Sonnig",
 | 
			
		||||
            "stateDescription": "Die Sonne scheint"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "transitions": []
 | 
			
		||||
}
 | 
			
		||||
@ -1,8 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
    "unsaved": false,
 | 
			
		||||
    "componentName": "Luftfeuchtigkeit",
 | 
			
		||||
    "componentDescription": "",
 | 
			
		||||
    "type": 0,
 | 
			
		||||
    "minValue": 0,
 | 
			
		||||
    "maxValue": 100
 | 
			
		||||
}
 | 
			
		||||
@ -1,8 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
    "unsaved": false,
 | 
			
		||||
    "componentName": "Temperature",
 | 
			
		||||
    "componentDescription": "",
 | 
			
		||||
    "type": 0,
 | 
			
		||||
    "minValue": 0,
 | 
			
		||||
    "maxValue": 100
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user