Skip to content

Commit

Permalink
properties tab view in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Sep 24, 2024
1 parent 258d4b0 commit bd70483
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/app/shared/system-component/dialog/dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class DialogComponent implements OnChanges {

private generateNotificationId(): number{
const min = Math.ceil(0);
const max = Math.floor(999);
const max = Math.floor(499);
return Math.floor(Math.random() * (max - min + 1)) + min;
}

Expand Down
157 changes: 155 additions & 2 deletions src/app/shared/system-component/properties/properties.component.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,113 @@
.main-properties-container{
.properties-main-container{
font-size: 1rem;
text-align: center;
background-color: #fff;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 50%);
position: absolute;
top: 25%;
left: 25%;
transform: translate(-50%, -50%); /* Move the element back by 50% of its own width and height */
outline: 1px hsl(0deg 0% 20%/70%);
z-index: 2;
width: 350px;
height: 650px;
}


/*Head Section*/
.properties-header-container{
width: 100%;
position: relative;
display: flex;
}

.properties-left-header-section{
width:calc(100% - 45px);
height: 30px;
left: 0;
}

.properties-right-header-section{
height: 30px;
right: 0;
}

.properties-h1{
color: #fff;
font-size: 13px;
font-weight: normal;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
height: 29px;
border-bottom: 1px transparent blue;
width: fit-content;
flex-grow: 1;
display: flex;
left: 0;
}

.properties-img{
height: 18px;
width: 18px;
margin: 0 6px 0 8px;
image-rendering: optimizeQuality;
}

.properties-figure{
padding-left: 6px;
display: flex;
align-items: center;
height: 30px;
}

.properties-figcaption{
color: #000;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.properties-button{
border-left: 1px transparent blue;
box-sizing: content-box;
color: #fff;
display: flex;
font-size: 20px;
width: 45px;
place-content: center;
place-items: center;
}

.properties-svg{
fill: #ababab;
margin-bottom: 2px;
/* width: 10px; */
}

.properties-nav{
display: flex;
position: absolute;
width: fit-content;
right: 0;
height: 30px;
}





/* Styles for the tab navigation */
.properties-header-tab-container {
width: 100%;
display: flex;
background-color: #ccc;
}

.properties-header-tabs {
display: flex;
background-color: #080404;
}


.properties-tab {
/* flex: 1; */
width: 55px;
Expand Down Expand Up @@ -59,4 +159,57 @@
width: 15px;
height: 21.5px;
place-items:center;
}
}

.general-tab-containter{
width: 100%;
display: block;
}

.general-tab-section{
width: 100%;
padding: 5px 5px;
}

.general-tab-content{
width: 100%;
}

.general-tab-head{
width: 30%;
padding-left: 4px;
}

.general-tab-mid{
min-width: 10%;
padding: 0 4px;
}


.general-tab-tail{
width: 60%;
padding-right: 4px;
}

.general-tab-figure{
align-items: center;
display:inline-flex;
width: 18px;
height: 18px;
}

.general-tab-img{
height: 18px;
width: 18px;
image-rendering:optimizeQuality;
position: relative;
margin: 0 0;
}

.properties-footer-container{
width: 100%;
}




Original file line number Diff line number Diff line change
@@ -1,25 +1,60 @@
<div ngDraggable [handle]="leftHS1" class="properties-main-container">
<div class="properties-header-container" tabindex="0">
<div #leftHS1 class="properties-left-header-section">
<h1 class="properties-h1">
<figure class="properties-figure">
<!-- <img class="properties-img" [src]="this.icon" [alt]="this.name"/> -->
<figcaption class="properties-figcaption"> {{this.displayMgs}} </figcaption>
</figure>
</h1>
</div>
<div class="properties-right-header-section">
<nav class="properties-nav">
<button class="properties-button" id="closeBtn" appHighlight (click)="onCloseDialogBox()" title="Close" >
<svg class="properties-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" fill = "#FFFFF"/>
</svg>
</button>
</nav>
</div>
</div>
<div class="properties-body-container">
<div style="width: 100%; height: 10px;"> </div>

<div class="properties-header-tab-container">
<div class="properties-header-tabs">
<div class="properties-tab active">General</div>
<div class="properties-tab">Details</div>
</div>

<div class="properties-header-tab-content-container">
<div class="properties-tab-pane active">
<div class="general-tab-containter">
<div style="width: 100%; height: 15px;"> </div>
<div class="general-tab-section1">
<div class="general-tab-content">
<div class="general-tab-head"><figure class="general-tab-figure"><img class="general-tab-img" [src]="''"/></figure></div>
<div class="general-tab-mid"><p class="general-tab-p"> {{''}}</p></div>
</div>
</div>
<div class="general-tab-section2">

</div>
<div class="general-tab-section3">

<cos-window [runningProcessID]="0" [processAppIcon]="''" [processAppName]="''" >
<div class="main-properties-container">
<div style="width: 100%; height: 5px;"> </div>
</div>
<div class="general-tab-section4">

<div class="fileexp-header-tab-container">
<div class="fileexp-header-tabs">
<div class="fileexp-tab active">General</div>
<div class="fileexp-tab">Details</div>
</div>

<ng-container>
<div class="fileexp-header-tab-content-container">
<div class="fileexp-tab-pane active">
<!-- Content for Tab 1 -->
</div>
<div class="fileexp-tab-pane">
<!-- Content for Tab 2 -->
</div>
</div>
</div>
</ng-container>
<div class="properties-tab-pane">
<!-- Content for Tab 2 -->
</div>
</div>
</div>
</div>
</cos-window>
<div class="properties-footer-container">

</div>
</div>
35 changes: 32 additions & 3 deletions src/app/shared/system-component/properties/properties.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
import { Component } from '@angular/core';

import {ChangeDetectorRef, Component, Input, OnChanges, SimpleChanges} from '@angular/core';
import { ComponentType } from 'src/app/system-files/component.types';
@Component({
selector: 'cos-properties',
templateUrl: './properties.component.html',
styleUrl: './properties.component.css'
})
export class PropertiesComponent {

export class PropertiesComponent implements OnChanges {

@Input() inputMsg = '';

propertyId = 0;
type = ComponentType.System;
displayMgs = '';


constructor(private changeDetectorRef: ChangeDetectorRef){
this.propertyId = this.generatePropertyId();
}


ngOnChanges(changes: SimpleChanges):void{
//console.log('DIALOG onCHANGES:',changes);
this.displayMgs = this.inputMsg;
}


onCloseDialogBox():void{
//this._notificationServices.closeDialogBoxNotify.next(this.propertyId);
}

private generatePropertyId(): number{
const min = Math.ceil(500);
const max = Math.floor(999);
return Math.floor(Math.random() * (max - min + 1)) + min;
}

}

0 comments on commit bd70483

Please sign in to comment.