-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apparantly, you can only have 2 animation states on a component
- Loading branch information
1 parent
896b352
commit 1238a6b
Showing
9 changed files
with
98 additions
and
170 deletions.
There are no files selected for viewing
14 changes: 4 additions & 10 deletions
14
src/app/system-apps/fileexplorer/fileexplorer.component.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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
<div | ||
[@openClose]="onOpen ? 'open' : 'closed'" | ||
(@openClose.start)="onAnimationEvent($event)" | ||
(@openClose.done)="onAnimationEvent($event)"> | ||
|
||
<cos-window [runningProcessID]="this.processId" [processAppIcon]="this.icon" [processAppName]="this.name"> | ||
<cos-filemanager tabindex="0" id="fileMgrSec" [folderPath]="this.directory" (updateExplorerIconAndName)="updateIconAndName($event)" (click)="setFileExplorerWindowToFocus(this.processId)"> | ||
</cos-filemanager> | ||
</cos-window> | ||
|
||
</div> | ||
<cos-window [runningProcessID]="this.processId" [processAppIcon]="this.icon" [processAppName]="this.name"> | ||
<cos-filemanager tabindex="0" id="fileMgrSec" [folderPath]="this.directory" (updateExplorerIconAndName)="updateIconAndName($event)" (click)="setFileExplorerWindowToFocus(this.processId)"> | ||
</cos-filemanager> | ||
</cos-window> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,50 @@ | ||
|
||
<div [ngStyle]="currentStyles" #divWindow tabindex="0" class="section window-dd-box" | ||
ngDraggable (stopped)="onDragEnd($event)" (started)="onDragStart(this.processId)" | ||
(rzStop)="onRZStop($event)" ngResizable [rzHandles]="'e,s,w,se,sw'" | ||
[rzMinWidth]="defaultWidthOnOpen" [rzMinHeight]="defaultHeightOnOpen"> | ||
|
||
<header tabindex="0" id="headerSec" appHighlight | ||
[ngStyle]="headerActiveStyles" (click)="setFocusOnWindow(this.processId)" | ||
(dblclick)="onTitleBarDoubleClick()"> | ||
<h1> | ||
<figure> | ||
<img [src]="this.icon" [alt]="this.name"/> | ||
<figcaption> {{this.name}} </figcaption> | ||
</figure> | ||
</h1> | ||
<nav> | ||
<button appHighlight id="hideBtn" (click)="onHideBtnClick()" title="Hide"> | ||
<svg width="10" viewBox="0 0 10 1"> | ||
<path d="M0 0h10v1H0z"/> | ||
</svg> | ||
</button> | ||
<button *ngIf="!windowMaximize, else elseBlock" id="minMaxBtn" appHighlight (click)="onMaximizeBtnClick()" title="Maximize"> | ||
<svg width="10" viewBox="0 0 10 10"> | ||
<path d="M0 0v10h10V0H0zm1 1h8v8H1V1z"/> | ||
</svg> | ||
</button> | ||
<ng-template #elseBlock> | ||
<button appHighlight (click)="onUnMaximizeBtnClick()" title="Minimize"> | ||
<svg width="15" viewBox="0 0 24 24"> | ||
<path fill="none" d="M0 0h24v24H0z"/> | ||
<path d="M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z"/> | ||
</svg> | ||
<div | ||
[@showHide]="showHide ? 'show' : 'hide'" | ||
(@showHide.start)="onAnimationEvent($event)" | ||
(@showHide.done)="onAnimationEvent($event)"> | ||
|
||
<div [ngStyle]="currentStyles" #divWindow tabindex="0" class="section window-dd-box" | ||
ngDraggable (stopped)="onDragEnd($event)" (started)="onDragStart(this.processId)" | ||
(rzStop)="onRZStop($event)" ngResizable [rzHandles]="'e,s,w,se,sw'" | ||
[rzMinWidth]="defaultWidthOnOpen" [rzMinHeight]="defaultHeightOnOpen"> | ||
|
||
<header tabindex="0" id="headerSec" appHighlight | ||
[ngStyle]="headerActiveStyles" (click)="setFocusOnWindow(this.processId)" | ||
(dblclick)="onTitleBarDoubleClick()"> | ||
<h1> | ||
<figure> | ||
<img [src]="this.icon" [alt]="this.name"/> | ||
<figcaption> {{this.name}} </figcaption> | ||
</figure> | ||
</h1> | ||
<nav> | ||
<button appHighlight id="hideBtn" (click)="onHideBtnClick()" title="Hide"> | ||
<svg width="10" viewBox="0 0 10 1"> | ||
<path d="M0 0h10v1H0z"/> | ||
</svg> | ||
</button> | ||
</ng-template> | ||
<button [ngStyle]="closeBtnStyles" id="closeBtn" appHighlight (click)="onCloseBtnClick()" title="Close" > | ||
<svg width="10" viewBox="0 0 10 10"> | ||
<path d="M10.2.7L9.5 0 5.1 4.4.7 0 0 .7l4.4 4.4L0 9.5l.7.7 4.4-4.4 4.4 4.4.7-.7-4.4-4.4z"/> | ||
</svg> | ||
</button> | ||
</nav> | ||
</header> | ||
<ng-content> </ng-content> | ||
</div> | ||
<button *ngIf="!windowMaximize, else elseBlock" id="minMaxBtn" appHighlight (click)="onMaximizeBtnClick()" title="Maximize"> | ||
<svg width="10" viewBox="0 0 10 10"> | ||
<path d="M0 0v10h10V0H0zm1 1h8v8H1V1z"/> | ||
</svg> | ||
</button> | ||
<ng-template #elseBlock> | ||
<button appHighlight (click)="onUnMaximizeBtnClick()" title="Minimize"> | ||
<svg width="15" viewBox="0 0 24 24"> | ||
<path fill="none" d="M0 0h24v24H0z"/> | ||
<path d="M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z"/> | ||
</svg> | ||
</button> | ||
</ng-template> | ||
<button [ngStyle]="closeBtnStyles" id="closeBtn" appHighlight (click)="onCloseBtnClick()" title="Close" > | ||
<svg width="10" viewBox="0 0 10 10"> | ||
<path d="M10.2.7L9.5 0 5.1 4.4.7 0 0 .7l4.4 4.4L0 9.5l.7.7 4.4-4.4 4.4 4.4.7-.7-4.4-4.4z"/> | ||
</svg> | ||
</button> | ||
</nav> | ||
</header> | ||
<ng-content> </ng-content> | ||
</div> | ||
|
||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
<div | ||
[@openClose]="onOpen ? 'open' : 'closed'" | ||
(@openClose.start)="onAnimationEvent($event)" | ||
(@openClose.done)="onAnimationEvent($event)"> | ||
|
||
<cos-window [runningProcessID]="this.processId" [processAppIcon]="this.icon" [processAppName]="this.name" (click)="setJSDosWindowToFocus(this.processId)"> | ||
<div #doswindow class="canvas" style="height:800px; width:600px; position: relative;" ></div> | ||
</cos-window> | ||
</div> | ||
<cos-window [runningProcessID]="this.processId" [processAppIcon]="this.icon" [processAppName]="this.name" (click)="setJSDosWindowToFocus(this.processId)"> | ||
<div #doswindow class="canvas" style="height:800px; width:600px; position: relative;" ></div> | ||
</cos-window> |
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
Oops, something went wrong.