-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add turn scenario rules, simple scenario rule management, update depe…
…ndencies
- Loading branch information
Showing
23 changed files
with
952 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/app/ui/footer/scenario-rules/dialog/scenario-rules-dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="scenario-rules-dialog"> | ||
<h2 [ghs-label]="'scenario.rules.show.applied'" *ngIf="appliedScenarioRules.length"></h2> | ||
<div class="applied" > | ||
<ghs-scenario-rule *ngFor="let ruleModel of appliedScenarioRules" [rule]="ruleModel.rule" | ||
[identifier]="ruleModel.identifier" (click)="disgardScenarioRule(ruleModel)"></ghs-scenario-rule> | ||
</div> | ||
<h2 [ghs-label]="'scenario.rules.show.discarded'"></h2> | ||
<div class="discarded"> | ||
<ghs-scenario-rule *ngFor="let ruleModel of disgardedScenarioRules" [rule]="ruleModel.rule" | ||
[identifier]="ruleModel.identifier"></ghs-scenario-rule> | ||
</div> | ||
<div class="menu"> | ||
<a *ngIf="disgardedScenarioRules.length" [ghs-label]="'scenario.rules.clearDiscarded'" | ||
(click)="clearDiscardedScenarioRules()"></a> | ||
</div> | ||
</div> |
31 changes: 31 additions & 0 deletions
31
src/app/ui/footer/scenario-rules/dialog/scenario-rules-dialog.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
h2 { | ||
font-size: calc(var(--ghs-unit) * 2.5 * var(--ghs-text-factor)); | ||
color: var(--ghs-color-darkgray); | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.applied ghs-scenario-rule { | ||
|
||
cursor: zoom-out; | ||
|
||
&:hover { | ||
opacity: 0.6; | ||
} | ||
} | ||
|
||
.menu { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
a { | ||
cursor: pointer; | ||
font-size: calc(var(--ghs-unit) * 2 * var(--ghs-dialog-factor)); | ||
|
||
&:hover { | ||
opacity: 0.6; | ||
} | ||
} | ||
} |
Oops, something went wrong.