mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[no-issue] remove viewChildren use (#3116)
* remove viewChildren component use in lib and demoshell * Update trashcan.component.ts * Update trashcan.component.ts
This commit is contained in:
parent
12f29d5524
commit
812c7be6f6
@ -10,6 +10,7 @@
|
|||||||
</adf-toolbar-title>
|
</adf-toolbar-title>
|
||||||
</adf-toolbar>
|
</adf-toolbar>
|
||||||
<adf-document-list
|
<adf-document-list
|
||||||
|
#customSourcesDocumentList
|
||||||
[currentFolderId]="selectedSource"
|
[currentFolderId]="selectedSource"
|
||||||
locationFormat="/files"
|
locationFormat="/files"
|
||||||
selectionMode="multiple">
|
selectionMode="multiple">
|
||||||
|
@ -27,7 +27,7 @@ export class CustomSourcesComponent {
|
|||||||
@Input()
|
@Input()
|
||||||
selectedSource = '-recent-';
|
selectedSource = '-recent-';
|
||||||
|
|
||||||
@ViewChild(DocumentListComponent)
|
@ViewChild('customSourcesDocumentList')
|
||||||
documentList: DocumentListComponent;
|
documentList: DocumentListComponent;
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
|
@ -141,7 +141,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
@ViewChild('documentList')
|
@ViewChild('documentList')
|
||||||
documentList: DocumentListComponent;
|
documentList: DocumentListComponent;
|
||||||
|
|
||||||
@ViewChild(PaginationComponent)
|
@ViewChild('standardPagination')
|
||||||
standardPagination: PaginationComponent;
|
standardPagination: PaginationComponent;
|
||||||
|
|
||||||
permissionsStyle: PermissionStyleModel[] = [];
|
permissionsStyle: PermissionStyleModel[] = [];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<adf-form-list [forms]="formList" (row-dblclick)="onRowDblClick($event)">
|
<adf-form-list [forms]="formList" (row-dblclick)="onRowDblClick($event)">
|
||||||
</adf-form-list>
|
</adf-form-list>
|
||||||
<div class="form-container" *ngIf="!isEmptyForm()">
|
<div class="form-container" *ngIf="!isEmptyForm()">
|
||||||
<adf-form [form]="form" [data]="restoredData">
|
<adf-form #adfForm [form]="form" [data]="restoredData">
|
||||||
</adf-form>
|
</adf-form>
|
||||||
</div>
|
</div>
|
||||||
<button mat-button (click)="store()" color="primary">{{'FORM-LIST.STORE' | translate }}</button>
|
<button mat-button (click)="store()" color="primary">{{'FORM-LIST.STORE' | translate }}</button>
|
||||||
|
@ -25,7 +25,7 @@ import { FormComponent, FormModel, FormService, LogService } from '@alfresco/adf
|
|||||||
})
|
})
|
||||||
export class FormListComponent {
|
export class FormListComponent {
|
||||||
|
|
||||||
@ViewChild(FormComponent)
|
@ViewChild('adfForm')
|
||||||
activitiForm: FormComponent;
|
activitiForm: FormComponent;
|
||||||
|
|
||||||
formList: any [] = [];
|
formList: any [] = [];
|
||||||
|
@ -41,7 +41,7 @@ export function processUploadServiceFactory(api: AlfrescoApiService, config: App
|
|||||||
|
|
||||||
export class ProcessAttachmentsComponent implements OnInit, OnChanges {
|
export class ProcessAttachmentsComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
@ViewChild(ProcessAttachmentListComponent)
|
@ViewChild('processAttachList')
|
||||||
processAttachList: ProcessAttachmentListComponent;
|
processAttachList: ProcessAttachmentListComponent;
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
|
@ -38,7 +38,7 @@ export function taskUploadServiceFactory(api: AlfrescoApiService, config: AppCon
|
|||||||
|
|
||||||
export class TaskAttachmentsComponent implements OnInit, OnChanges {
|
export class TaskAttachmentsComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
@ViewChild(TaskAttachmentListComponent)
|
@ViewChild('taskAttachList')
|
||||||
taskAttachList: TaskAttachmentListComponent;
|
taskAttachList: TaskAttachmentListComponent;
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
|
@ -32,11 +32,11 @@ import { DocumentListComponent } from '@alfresco/adf-content-services';
|
|||||||
})
|
})
|
||||||
export class TrashcanComponent {
|
export class TrashcanComponent {
|
||||||
|
|
||||||
@ViewChild(DocumentListComponent)
|
@ViewChild('documentList')
|
||||||
documentList;
|
documentList: DocumentListComponent;
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
this.documentList.loadTrashcan();
|
this.documentList.reload();
|
||||||
this.documentList.resetSelection();
|
this.documentList.resetSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<mat-icon class="adf-dropddown-breadcrumb-item-chevron">chevron_right</mat-icon>
|
<mat-icon class="adf-dropddown-breadcrumb-item-chevron">chevron_right</mat-icon>
|
||||||
|
|
||||||
<mat-select
|
<mat-select
|
||||||
|
#select
|
||||||
*ngIf="hasPreviousNodes()"
|
*ngIf="hasPreviousNodes()"
|
||||||
class="adf-dropdown-breadcrumb-path"
|
class="adf-dropdown-breadcrumb-path"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
@ -31,7 +31,7 @@ import { BreadcrumbComponent } from './breadcrumb.component';
|
|||||||
})
|
})
|
||||||
export class DropdownBreadcrumbComponent extends BreadcrumbComponent implements OnChanges {
|
export class DropdownBreadcrumbComponent extends BreadcrumbComponent implements OnChanges {
|
||||||
|
|
||||||
@ViewChild(MatSelect)
|
@ViewChild('select')
|
||||||
selectbox: MatSelect;
|
selectbox: MatSelect;
|
||||||
|
|
||||||
currentNode: PathElementEntity;
|
currentNode: PathElementEntity;
|
||||||
|
@ -104,7 +104,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit {
|
|||||||
@Output()
|
@Output()
|
||||||
select: EventEmitter<MinimalNodeEntryEntity[]> = new EventEmitter<MinimalNodeEntryEntity[]>();
|
select: EventEmitter<MinimalNodeEntryEntity[]> = new EventEmitter<MinimalNodeEntryEntity[]>();
|
||||||
|
|
||||||
@ViewChild(DocumentListComponent)
|
@ViewChild('documentList')
|
||||||
documentList: DocumentListComponent;
|
documentList: DocumentListComponent;
|
||||||
|
|
||||||
@ViewChild(HighlightDirective)
|
@ViewChild(HighlightDirective)
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<adf-search #auto="searchAutocomplete"
|
<adf-search #search
|
||||||
|
#auto="searchAutocomplete"
|
||||||
class="adf-search-result-autocomplete"
|
class="adf-search-result-autocomplete"
|
||||||
[maxResults]="liveSearchMaxResults"
|
[maxResults]="liveSearchMaxResults"
|
||||||
[queryBody]="customQueryBody">
|
[queryBody]="customQueryBody">
|
||||||
|
@ -94,7 +94,7 @@ export class SearchControlComponent implements OnInit, OnDestroy {
|
|||||||
@Output()
|
@Output()
|
||||||
optionClicked: EventEmitter<any> = new EventEmitter();
|
optionClicked: EventEmitter<any> = new EventEmitter();
|
||||||
|
|
||||||
@ViewChild(SearchComponent)
|
@ViewChild('search')
|
||||||
searchAutocomplete: SearchComponent;
|
searchAutocomplete: SearchComponent;
|
||||||
|
|
||||||
@ViewChild('searchInput')
|
@ViewChild('searchInput')
|
||||||
|
@ -32,7 +32,7 @@ import 'rxjs/add/observable/merge';
|
|||||||
styleUrls: ['./file-uploading-dialog.component.scss']
|
styleUrls: ['./file-uploading-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class FileUploadingDialogComponent implements OnInit, OnDestroy {
|
export class FileUploadingDialogComponent implements OnInit, OnDestroy {
|
||||||
@ViewChild(FileUploadingListComponent)
|
@ViewChild('uploadList')
|
||||||
uploadList: FileUploadingListComponent;
|
uploadList: FileUploadingListComponent;
|
||||||
|
|
||||||
/** Dialog position. Can be 'left' or 'right'. */
|
/** Dialog position. Can be 'left' or 'right'. */
|
||||||
|
@ -51,7 +51,7 @@ export class CardViewDateItemComponent implements OnInit {
|
|||||||
@Input()
|
@Input()
|
||||||
displayEmpty: boolean = true;
|
displayEmpty: boolean = true;
|
||||||
|
|
||||||
@ViewChild(MatDatetimepicker)
|
@ViewChild('datetimePicker')
|
||||||
public datepicker: MatDatetimepicker<any>;
|
public datepicker: MatDatetimepicker<any>;
|
||||||
|
|
||||||
valueDate: Moment;
|
valueDate: Moment;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<adf-datatable
|
<adf-datatable
|
||||||
|
#dataTable
|
||||||
class="adf-task-people-list"
|
class="adf-task-people-list"
|
||||||
[rows]="users"
|
[rows]="users"
|
||||||
[actions]="hasActions()"
|
[actions]="hasActions()"
|
||||||
|
@ -30,7 +30,7 @@ export class PeopleListComponent implements AfterViewInit, AfterContentInit {
|
|||||||
|
|
||||||
@ContentChild(DataColumnListComponent) columnList: DataColumnListComponent;
|
@ContentChild(DataColumnListComponent) columnList: DataColumnListComponent;
|
||||||
|
|
||||||
@ViewChild(DataTableComponent)
|
@ViewChild('dataTable')
|
||||||
peopleDataTable: DataTableComponent;
|
peopleDataTable: DataTableComponent;
|
||||||
|
|
||||||
/** The array of user data used to populate the people list. */
|
/** The array of user data used to populate the people list. */
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<adf-people-search-field
|
<adf-people-search-field
|
||||||
|
#peopleSearchField
|
||||||
class="adf-people-selector-field"
|
class="adf-people-selector-field"
|
||||||
[performSearch]="performSearch"
|
[performSearch]="performSearch"
|
||||||
[placeholder]="placeholder"
|
[placeholder]="placeholder"
|
||||||
|
@ -41,7 +41,7 @@ export class PeopleSelectorComponent {
|
|||||||
@Output()
|
@Output()
|
||||||
peopleIdChange: EventEmitter<number>;
|
peopleIdChange: EventEmitter<number>;
|
||||||
|
|
||||||
@ViewChild(PeopleSearchFieldComponent)
|
@ViewChild('peopleSearchField')
|
||||||
searchFieldComponent: PeopleSearchFieldComponent;
|
searchFieldComponent: PeopleSearchFieldComponent;
|
||||||
|
|
||||||
performSearch: PerformSearchCallback;
|
performSearch: PerformSearchCallback;
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="assignment-container" *ngIf="showAssignment">
|
<div class="assignment-container" *ngIf="showAssignment">
|
||||||
<adf-people-search
|
<adf-people-search
|
||||||
|
#peopleSearch
|
||||||
(searchPeople)="searchUser($event)"
|
(searchPeople)="searchUser($event)"
|
||||||
(success)="involveUser($event)"
|
(success)="involveUser($event)"
|
||||||
(closeSearch)="onCloseSearch()"
|
(closeSearch)="onCloseSearch()"
|
||||||
|
@ -42,7 +42,7 @@ export class PeopleComponent implements OnInit, AfterViewInit {
|
|||||||
@Input()
|
@Input()
|
||||||
readOnly: boolean = false;
|
readOnly: boolean = false;
|
||||||
|
|
||||||
@ViewChild(PeopleSearchComponent)
|
@ViewChild('peopleSearch')
|
||||||
peopleSearch: PeopleSearchComponent;
|
peopleSearch: PeopleSearchComponent;
|
||||||
|
|
||||||
showAssignment: boolean = false;
|
showAssignment: boolean = false;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<adf-process-instance-header
|
<adf-process-instance-header
|
||||||
|
#processInstanceHeader
|
||||||
[processInstance]="processInstanceDetails"
|
[processInstance]="processInstanceDetails"
|
||||||
(showProcessDiagram)="onShowProcessDiagram($event)">
|
(showProcessDiagram)="onShowProcessDiagram($event)">
|
||||||
</adf-process-instance-header>
|
</adf-process-instance-header>
|
||||||
@ -14,6 +15,7 @@
|
|||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<adf-process-instance-tasks
|
<adf-process-instance-tasks
|
||||||
|
#processInstanceTasks
|
||||||
[processInstanceDetails]="processInstanceDetails"
|
[processInstanceDetails]="processInstanceDetails"
|
||||||
(taskClick)="onTaskClicked($event)">
|
(taskClick)="onTaskClicked($event)">
|
||||||
</adf-process-instance-tasks>
|
</adf-process-instance-tasks>
|
||||||
|
@ -36,10 +36,10 @@ export class ProcessInstanceDetailsComponent implements OnChanges {
|
|||||||
@Input()
|
@Input()
|
||||||
processInstanceId: string;
|
processInstanceId: string;
|
||||||
|
|
||||||
@ViewChild(ProcessInstanceHeaderComponent)
|
@ViewChild('processInstanceHeader')
|
||||||
processInstanceHeader: ProcessInstanceHeaderComponent;
|
processInstanceHeader: ProcessInstanceHeaderComponent;
|
||||||
|
|
||||||
@ViewChild(ProcessInstanceTasksComponent)
|
@ViewChild('processInstanceTasks')
|
||||||
tasksList: ProcessInstanceTasksComponent;
|
tasksList: ProcessInstanceTasksComponent;
|
||||||
|
|
||||||
/** Toggles whether to show or hide the title. */
|
/** Toggles whether to show or hide the title. */
|
||||||
|
@ -20,7 +20,9 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<adf-start-form *ngIf="hasStartForm()"
|
<adf-start-form
|
||||||
|
#startForm
|
||||||
|
*ngIf="hasStartForm()"
|
||||||
[data]="values"
|
[data]="values"
|
||||||
[disableStartProcessButton]="!hasProcessName()"
|
[disableStartProcessButton]="!hasProcessName()"
|
||||||
[processDefinitionId]="selectedProcessDef.id"
|
[processDefinitionId]="selectedProcessDef.id"
|
||||||
|
@ -86,7 +86,7 @@ export class StartProcessInstanceComponent implements OnChanges {
|
|||||||
@Output()
|
@Output()
|
||||||
error: EventEmitter<ProcessInstance> = new EventEmitter<ProcessInstance>();
|
error: EventEmitter<ProcessInstance> = new EventEmitter<ProcessInstance>();
|
||||||
|
|
||||||
@ViewChild(StartFormComponent)
|
@ViewChild('startForm')
|
||||||
startForm: StartFormComponent;
|
startForm: StartFormComponent;
|
||||||
|
|
||||||
processDefinitions: ProcessDefinitionRepresentation[] = [];
|
processDefinitions: ProcessDefinitionRepresentation[] = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user