added task overlay component
This commit is contained in:
parent
b1da599dec
commit
63e9c71efd
6 changed files with 43 additions and 10 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
<div *ngIf="overlayData" class="overlay">
|
<div *ngIf="overlayData" class="overlay">
|
||||||
<div class="overlay-content">
|
<div class="overlay-content">
|
||||||
@if (overlayType === "taskOverlay") {
|
@if (overlayType === "taskOverlay") {
|
||||||
<div class="task-overlay">{{ overlayData }}</div>
|
<div class="task-overlay">
|
||||||
|
<app-task-overlay [overlayData]="overlayData"></app-task-overlay>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,12 @@
|
||||||
import {
|
import { Component, HostListener, OnInit } from '@angular/core';
|
||||||
Component,
|
|
||||||
EventEmitter,
|
|
||||||
HostListener,
|
|
||||||
Input,
|
|
||||||
OnInit,
|
|
||||||
Output,
|
|
||||||
} from '@angular/core';
|
|
||||||
import { OverlayService } from '../../../services/overlay.service';
|
import { OverlayService } from '../../../services/overlay.service';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { TaskOverlayComponent } from './task-overlay/task-overlay.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-overlay',
|
selector: 'app-overlay',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule],
|
imports: [CommonModule, TaskOverlayComponent],
|
||||||
templateUrl: './overlay.component.html',
|
templateUrl: './overlay.component.html',
|
||||||
styleUrl: './overlay.component.scss',
|
styleUrl: './overlay.component.scss',
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
<p>task-overlay works!</p>
|
||||||
|
<p>{{ overlayData }}</p>
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { TaskOverlayComponent } from './task-overlay.component';
|
||||||
|
|
||||||
|
describe('TaskOverlayComponent', () => {
|
||||||
|
let component: TaskOverlayComponent;
|
||||||
|
let fixture: ComponentFixture<TaskOverlayComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [TaskOverlayComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(TaskOverlayComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { Component, Input } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-task-overlay',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './task-overlay.component.html',
|
||||||
|
styleUrl: './task-overlay.component.scss',
|
||||||
|
})
|
||||||
|
export class TaskOverlayComponent {
|
||||||
|
@Input() overlayData: string = '';
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue