-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
828d89b
commit 23cfb55
Showing
22 changed files
with
320 additions
and
133 deletions.
There are no files selected for viewing
25 changes: 11 additions & 14 deletions
25
apps/mix-cms/src/app/components/messenger/messenger.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
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
51 changes: 32 additions & 19 deletions
51
libs/mix-share/src/modules/task-manage/components/task-create/task-create.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,33 +1,46 @@ | ||
<div class="task-create" | ||
[formGroup]="taskForm"> | ||
<div class="task-create" [formGroup]="taskForm"> | ||
<div class="text-l">Create Task</div> | ||
|
||
<div class="mt-4 mb-1 text-sub text-500">Task Type</div> | ||
<mix-select [items]="typeItems" | ||
[labelProcess]="typeLabel" | ||
formControlName="type"></mix-select> | ||
<ng-container *ngIf="parentTask"> | ||
<div class="mt-4 mb-1 text-sub text-500">Task Type</div> | ||
<mix-select | ||
[items]="typeItems" | ||
[labelProcess]="typeLabel" | ||
formControlName="type" | ||
></mix-select> | ||
|
||
<div class="mt-3 mb-1 text-sub text-500">Task Priority</div> | ||
<mix-select [items]="prorityItems" | ||
[labelProcess]="priorityLabel" | ||
formControlName="taskPriority"></mix-select> | ||
<div class="mt-3 mb-1 text-sub text-500">Task Priority</div> | ||
<mix-select | ||
[items]="prorityItems" | ||
[labelProcess]="priorityLabel" | ||
formControlName="taskPriority" | ||
></mix-select> | ||
</ng-container> | ||
|
||
<div class="mt-3 mb-1 text-sub text-500">Short Summary</div> | ||
<mix-input formControlName="title" | ||
placeHolder="Quick description about your task"></mix-input> | ||
<mix-input | ||
formControlName="title" | ||
placeHolder="Quick description about your task" | ||
></mix-input> | ||
|
||
<div class="mt-3 mb-1 text-sub text-500">Description</div> | ||
<mix-rich-text-editor formControlName="description"></mix-rich-text-editor> | ||
|
||
<div class="mt-3 mb-1 text-sub text-500">Reporter</div> | ||
<mix-user-select formControlName="reporter"></mix-user-select> | ||
|
||
<div *ngIf="loadingState$ | async as state" | ||
class="mt-4 d-flex justify-content-end align-items-center gap-2"> | ||
<mix-button [loading]="state === 'Loading'" | ||
(click)="createTask()">Create</mix-button> | ||
<mix-button type="outline" | ||
[disabled]="state === 'Loading'" | ||
(click)="dialogRef.close()">Cancel</mix-button> | ||
<div | ||
*ngIf="loadingState$ | async as state" | ||
class="mt-4 d-flex justify-content-end align-items-center gap-2" | ||
> | ||
<mix-button [loading]="state === 'Loading'" (click)="createTask()" | ||
>Create</mix-button | ||
> | ||
<mix-button | ||
type="outline" | ||
[disabled]="state === 'Loading'" | ||
(click)="dialogRef.close()" | ||
>Cancel</mix-button | ||
> | ||
</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
26 changes: 13 additions & 13 deletions
26
libs/mix-share/src/modules/task-manage/components/task-dnd-list/task-dnd-list.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,17 +1,17 @@ | ||
<div class="task-list"> | ||
<div class="title text-uppercase text-truncate"> | ||
{{ TaskStatusDisplay[status] }} {{ tasks.length }} | ||
</div> | ||
|
||
<div class="items" | ||
[cdkDropListData]="tasks" | ||
[id]="status" | ||
(cdkDropListDropped)="drop($event)" | ||
cdkDropList> | ||
<mix-task-card *ngFor="let task of tasks" | ||
[cdkDragData]="task" | ||
[task]="task" | ||
cdkDrag> | ||
<div | ||
class="items" | ||
[cdkDropListData]="tasks" | ||
[id]="status" | ||
(cdkDropListDropped)="drop($event)" | ||
cdkDropList | ||
> | ||
<mix-task-card | ||
*ngFor="let task of tasks" | ||
[cdkDragData]="task" | ||
[task]="task" | ||
cdkDrag | ||
> | ||
</mix-task-card> | ||
</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
16 changes: 16 additions & 0 deletions
16
...x-share/src/modules/task-manage/components/task-group-list/task-group-list.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<mix-task-parent-card | ||
[task]="parentTask" | ||
[open]="open()" | ||
(expandClick)="toggleExpand()" | ||
></mix-task-parent-card> | ||
|
||
<div class="task-group" cdkDropListGroup *ngIf="open()"> | ||
<mix-task-dnd-list | ||
*ngFor="let status of taskStatuses" | ||
class="task-dnd-list" | ||
[listTasks]="store.getTaskByStatus(status, parentTask.id)" | ||
[status]="status" | ||
[parentTaskId]="parentTask.id" | ||
> | ||
</mix-task-dnd-list> | ||
</div> |
14 changes: 14 additions & 0 deletions
14
...x-share/src/modules/task-manage/components/task-group-list/task-group-list.component.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,14 @@ | ||
.task-group { | ||
display: flex; | ||
width: 100%; | ||
gap: 12px; | ||
} | ||
|
||
.task-dnd-list { | ||
display: block; | ||
min-height: 160px; | ||
min-width: var(--task-min-col-w); | ||
width: var(--task-col-w); | ||
background-color: var(--task-list-bg); | ||
border-radius: 0.125rem; | ||
} |
27 changes: 27 additions & 0 deletions
27
...mix-share/src/modules/task-manage/components/task-group-list/task-group-list.component.ts
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,27 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { Component, Input, inject, signal } from '@angular/core'; | ||
import { MixTaskNew, TaskStatus, TaskStatusDisplay } from '@mixcore/lib/model'; | ||
import { TaskStore } from '../../store/task.store'; | ||
import { TaskDndListComponent } from '../task-dnd-list/task-dnd-list.component'; | ||
import { TaskParentCardComponent } from '../task-parent-card/task-parent-card.component'; | ||
|
||
@Component({ | ||
selector: 'mix-task-group-list', | ||
standalone: true, | ||
imports: [CommonModule, TaskDndListComponent, TaskParentCardComponent], | ||
templateUrl: './task-group-list.component.html', | ||
styleUrls: ['./task-group-list.component.scss'], | ||
}) | ||
export class TaskGroupListComponent { | ||
@Input() public parentTask!: MixTaskNew; | ||
@Input() public showHeader = false; | ||
@Input() public taskStatuses: TaskStatus[] = []; | ||
|
||
public TaskStatusDisplay = TaskStatusDisplay; | ||
public store = inject(TaskStore); | ||
public open = signal(true); | ||
|
||
public toggleExpand() { | ||
this.open.set(!this.open()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...share/src/modules/task-manage/components/task-parent-card/task-parent-card.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="w-100 task-parent-card text-m" [class.--open]="open"> | ||
<mix-button [size]="'xs'" [type]="'icon'" (click)="expandClick.emit()" | ||
><span class="mix-icon expand-icon text-xxl">expand_more</span> | ||
</mix-button> | ||
|
||
<span> | ||
{{ task.title }} | ||
</span> | ||
|
||
<mix-button class="ms-2" [size]="'xs'" [iconBtn]="true" (click)="addTask()"> | ||
<span class="mix-icon text-xxl">add</span> | ||
</mix-button> | ||
</div> |
Oops, something went wrong.