mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2346] fixed the people list task style (#3001)
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
<adf-datatable
|
<adf-datatable
|
||||||
|
class="adf-task-people-list"
|
||||||
[rows]="users"
|
[rows]="users"
|
||||||
[actions]="hasActions()"
|
[actions]="hasActions()"
|
||||||
|
[showHeader]="false"
|
||||||
(rowClick)="selectUser($event)"
|
(rowClick)="selectUser($event)"
|
||||||
(rowDblClick)="selectUser($event)"
|
(rowDblClick)="selectUser($event)"
|
||||||
(showRowActionsMenu)="onShowRowActionsMenu($event)"
|
(showRowActionsMenu)="onShowRowActionsMenu($event)"
|
||||||
|
@@ -0,0 +1,9 @@
|
|||||||
|
@mixin adf-task-people-list-theme($theme) {
|
||||||
|
|
||||||
|
.adf-task-people-list {
|
||||||
|
.adf-data-table {
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* 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 { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
|
||||||
import { FormControl } from '@angular/forms';
|
import { FormControl } from '@angular/forms';
|
||||||
import { debounceTime } from 'rxjs/operators';
|
import { debounceTime } from 'rxjs/operators';
|
||||||
@@ -47,7 +47,8 @@ export class PeopleSearchFieldComponent {
|
|||||||
|
|
||||||
defaultPlaceholder = 'ADF_TASK_LIST.PEOPLE.SEARCH_USER';
|
defaultPlaceholder = 'ADF_TASK_LIST.PEOPLE.SEARCH_USER';
|
||||||
|
|
||||||
constructor(private translationService: TranslationService) {
|
constructor(public peopleProcessService: PeopleProcessService,
|
||||||
|
private translationService: TranslationService) {
|
||||||
this.users$ = this.searchUser.valueChanges
|
this.users$ = this.searchUser.valueChanges
|
||||||
.pipe(debounceTime(200))
|
.pipe(debounceTime(200))
|
||||||
.switchMap((searchWord: string) => {
|
.switchMap((searchWord: string) => {
|
||||||
|
@@ -2,10 +2,12 @@
|
|||||||
@import './components/people-search-field/people-search-field.component';
|
@import './components/people-search-field/people-search-field.component';
|
||||||
@import './components/people/people.component';
|
@import './components/people/people.component';
|
||||||
@import './components/people-selector/people-selector.component';
|
@import './components/people-selector/people-selector.component';
|
||||||
|
@import './components/people-list/people-list.component';
|
||||||
|
|
||||||
@mixin adf-people-module-theme($theme) {
|
@mixin adf-people-module-theme($theme) {
|
||||||
@include adf-task-list-people-selector-theme($theme);
|
@include adf-task-list-people-selector-theme($theme);
|
||||||
@include adf-task-list-people-search-theme($theme);
|
@include adf-task-list-people-search-theme($theme);
|
||||||
@include adf-task-list-people-search-field-theme($theme);
|
@include adf-task-list-people-search-field-theme($theme);
|
||||||
@include adf-task-list-people-theme($theme);
|
@include adf-task-list-people-theme($theme);
|
||||||
|
@include adf-task-people-list-theme($theme);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user