[ADF-2346] fixed the people list task style (#3001)

This commit is contained in:
Vito
2018-02-26 14:56:46 +00:00
committed by Eugenio Romano
parent bb4f17ace7
commit e127149a2e
4 changed files with 17 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
<adf-datatable
class="adf-task-people-list"
[rows]="users"
[actions]="hasActions()"
[showHeader]="false"
(rowClick)="selectUser($event)"
(rowDblClick)="selectUser($event)"
(showRowActionsMenu)="onShowRowActionsMenu($event)"

View File

@@ -0,0 +1,9 @@
@mixin adf-task-people-list-theme($theme) {
.adf-task-people-list {
.adf-data-table {
width: 0;
}
}
}

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { UserProcessModel, TranslationService } from '@alfresco/adf-core';
import { UserProcessModel, TranslationService, PeopleProcessService } from '@alfresco/adf-core';
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
import { FormControl } from '@angular/forms';
import { debounceTime } from 'rxjs/operators';
@@ -47,7 +47,8 @@ export class PeopleSearchFieldComponent {
defaultPlaceholder = 'ADF_TASK_LIST.PEOPLE.SEARCH_USER';
constructor(private translationService: TranslationService) {
constructor(public peopleProcessService: PeopleProcessService,
private translationService: TranslationService) {
this.users$ = this.searchUser.valueChanges
.pipe(debounceTime(200))
.switchMap((searchWord: string) => {

View File

@@ -2,10 +2,12 @@
@import './components/people-search-field/people-search-field.component';
@import './components/people/people.component';
@import './components/people-selector/people-selector.component';
@import './components/people-list/people-list.component';
@mixin adf-people-module-theme($theme) {
@include adf-task-list-people-selector-theme($theme);
@include adf-task-list-people-search-theme($theme);
@include adf-task-list-people-search-field-theme($theme);
@include adf-task-list-people-theme($theme);
@include adf-task-people-list-theme($theme);
}