+
{{ item.name }}
@@ -32,13 +32,4 @@
This resource is over allocated
-
-
-
diff --git a/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.scss b/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.scss
index 5a8b7f4d..04386efb 100644
--- a/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.scss
+++ b/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.scss
@@ -1,7 +1,13 @@
-// @use "../../../../theme/styles/variables" as *;
-@use 'projects/arc-lib/src/lib/theme/styles/_variables.scss' as *;
+@use '../../../../theme/styles/variables' as *;
@use 'sass:map';
-.column-container {
+
+.employee-list-item {
+ display: flex;
+ align-items: center;
+ gap: 15px;
+ margin-bottom: 10px;
+ border-bottom: 1px solid #d9d9d9;
+ padding-bottom: 10px;
.kebab-container {
position: absolute;
background: linear-gradient(
@@ -14,10 +20,12 @@
opacity: 0;
transition: opacity 0.2s ease-in;
height: 100%;
+ width: 70%;
.kebab {
padding: 0 2rem;
}
}
+
&:hover,
&.active {
.kebab-container {
@@ -32,6 +40,7 @@
.employee-icon {
min-width: 2.375rem;
+ max-width: 2.375rem;
height: 2.375rem;
border-radius: 50%;
background: map.get($color, 'menu-item-active');
@@ -43,6 +52,7 @@
margin: auto;
}
}
+
.with-designation {
overflow: hidden;
flex-grow: 1;
@@ -72,6 +82,7 @@
text-overflow: ellipsis;
}
}
+
.without-designation {
overflow: hidden;
flex-grow: 1;
@@ -108,6 +119,7 @@
right: -4.063rem;
top: -0.313rem;
}
+
.overallocation_icon:hover div {
display: flex;
line-height: 1;
diff --git a/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.spec.ts b/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.spec.ts
new file mode 100644
index 00000000..e55dcf7c
--- /dev/null
+++ b/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.spec.ts
@@ -0,0 +1,22 @@
+import {ComponentFixture, TestBed} from '@angular/core/testing';
+
+import {GanttColumnComponent} from './gantt-column.component';
+
+describe('GColumnComponent', () => {
+ let component: GanttColumnComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [GanttColumnComponent],
+ }).compileComponents();
+
+ fixture = TestBed.createComponent(GanttColumnComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.ts b/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.ts
index 83e11025..7562c674 100644
--- a/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.ts
+++ b/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.component.ts
@@ -1,35 +1,21 @@
import {Component, Input} from '@angular/core';
-import {AnyObject} from '@project-lib/core/api';
-import {NbMenuItem} from '@nebular/theme';
-import {ContextItemFilter, GanttTaskValue} from '../../types';
+import {empData} from '../../model/item.model';
@Component({
- selector: 'gantt-column',
+ selector: 'arc-gantt-column',
templateUrl: './gantt-column.component.html',
styleUrls: ['./gantt-column.component.scss'],
})
-export class GanttColumnComponent {
+export class GanttColumnComponent {
@Input()
- item!: GanttTaskValue;
+ items: empData[];
@Input()
- contextItems: NbMenuItem[] = [];
+ showParentInitials: boolean;
@Input()
- active!: boolean;
+ showChildInitials: boolean;
@Input()
- showKebab!: boolean;
-
- @Input()
- showParentInitials!: boolean;
-
- @Input()
- showChildInitials!: boolean;
-
- @Input()
- showOverallocatedIcon!: boolean;
-
- @Input()
- contextItemFilter!: ContextItemFilter;
+ showOverallocatedIcon: boolean;
}
diff --git a/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.module.ts b/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.module.ts
deleted file mode 100644
index bbac0283..00000000
--- a/projects/arc-lib/src/lib/components/gantt/components/gantt-column/gantt-column.module.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import {NgModule} from '@angular/core';
-import {CommonModule} from '@angular/common';
-
-import {GanttColumnRoutingModule} from './gantt-column-routing.module';
-import {GanttColumnComponent} from './gantt-column.component';
-import {ThemeModule} from '@project-lib/theme/theme.module';
-
-@NgModule({
- declarations: [GanttColumnComponent],
- imports: [CommonModule, GanttColumnRoutingModule, ThemeModule],
- exports: [GanttColumnComponent],
-})
-export class GanttColumnModule {}
diff --git a/projects/arc-lib/src/lib/components/gantt/components/gantt-header/gantt-header-routing.module.ts b/projects/arc-lib/src/lib/components/gantt/components/gantt-header/gantt-header-routing.module.ts
deleted file mode 100644
index f13d934c..00000000
--- a/projects/arc-lib/src/lib/components/gantt/components/gantt-header/gantt-header-routing.module.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import {NgModule} from '@angular/core';
-import {RouterModule, Routes} from '@angular/router';
-
-const routes: Routes = [];
-
-@NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule],
-})
-export class GanttHeaderRoutingModule {}
diff --git a/projects/arc-lib/src/lib/components/gantt/components/gantt-header/gantt-header.component.html b/projects/arc-lib/src/lib/components/gantt/components/gantt-header/gantt-header.component.html
index 6ee77585..a35f033b 100644
--- a/projects/arc-lib/src/lib/components/gantt/components/gantt-header/gantt-header.component.html
+++ b/projects/arc-lib/src/lib/components/gantt/components/gantt-header/gantt-header.component.html
@@ -1,22 +1,9 @@
-