mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-36173 switch to TranslatePipe (#10968)
This commit is contained in:
@@ -26,7 +26,7 @@ import { MatListModule } from '@angular/material/list';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatLineModule } from '@angular/material/core';
|
||||
|
||||
const DEFAULT_TASKS_APP_NAME: string = 'ADF_TASK_LIST.APPS.TASK_APP_NAME';
|
||||
@@ -45,7 +45,7 @@ export const APP_LIST_LAYOUT_GRID: string = 'GRID';
|
||||
MatIconModule,
|
||||
MatCardModule,
|
||||
MatProgressSpinnerModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
EmptyContentComponent,
|
||||
MatLineModule
|
||||
],
|
||||
|
@@ -19,14 +19,14 @@ import { Component, Inject, ViewEncapsulation } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
||||
import { AppsProcessService } from '../../services/apps-process.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-select-apps-dialog',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatDialogModule, MatSelectModule, MatButtonModule],
|
||||
imports: [CommonModule, TranslatePipe, MatDialogModule, MatSelectModule, MatButtonModule],
|
||||
templateUrl: './select-apps-dialog.component.html',
|
||||
styleUrls: ['./select-apps-dialog.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -39,7 +39,7 @@ import {
|
||||
} from '@angular/core';
|
||||
import { ProcessContentService } from '../../form/services/process-content.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
|
||||
@Component({
|
||||
@@ -47,7 +47,7 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatProgressSpinnerModule,
|
||||
DataTableComponent,
|
||||
NoContentTemplateDirective,
|
||||
|
@@ -41,18 +41,17 @@ import {
|
||||
import { ProcessContentService } from '../../form/services/process-content.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-task-attachment-list',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
MatProgressSpinnerModule,
|
||||
DataTableComponent,
|
||||
EmptyListHeaderDirective,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
DataColumnListComponent,
|
||||
DataColumnComponent,
|
||||
LoadingContentTemplateDirective,
|
||||
|
@@ -57,13 +57,13 @@ import { CommonModule } from '@angular/common';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-form',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatCardModule, MatButtonModule, MatIconModule, TranslateModule, FormRendererComponent, FormatSpacePipe],
|
||||
imports: [CommonModule, MatCardModule, MatButtonModule, MatIconModule, TranslatePipe, FormRendererComponent, FormatSpacePipe],
|
||||
templateUrl: './form.component.html',
|
||||
styleUrls: ['./form.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -32,7 +32,7 @@ import { FormComponent } from '../form.component';
|
||||
import { ContentLinkModel, FormOutcomeModel, FormRendererComponent } from '@alfresco/adf-core';
|
||||
import { ProcessService } from '../../process-list/services/process.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -40,7 +40,7 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
@Component({
|
||||
selector: 'adf-start-form',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, MatCardModule, FormRendererComponent, MatIconModule],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, MatCardModule, FormRendererComponent, MatIconModule],
|
||||
templateUrl: './start-form.component.html',
|
||||
styleUrls: ['./start-form.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -30,13 +30,13 @@ import { ExternalAlfrescoApiService } from '../../services/external-alfresco-api
|
||||
import { Node } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-attach-file-widget-dialog',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatDialogModule, LoginDialogPanelComponent, MatButtonModule, TranslateModule, ContentNodeSelectorPanelComponent],
|
||||
imports: [CommonModule, MatDialogModule, LoginDialogPanelComponent, MatButtonModule, TranslatePipe, ContentNodeSelectorPanelComponent],
|
||||
templateUrl: './attach-file-widget-dialog.component.html',
|
||||
styleUrls: ['./attach-file-widget-dialog.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -28,7 +28,7 @@ import { UploadWidgetComponent } from '../upload/upload.widget';
|
||||
import { ProcessContentService } from '../../services/process-content.service';
|
||||
import { ActivitiContentService } from '../../services/activiti-alfresco.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
@@ -39,16 +39,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
selector: 'attach-widget',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
MatIconModule,
|
||||
MatButtonModule,
|
||||
MatMenuModule,
|
||||
MatListModule,
|
||||
ErrorWidgetComponent,
|
||||
AlfrescoIconComponent
|
||||
],
|
||||
imports: [CommonModule, TranslatePipe, MatIconModule, MatButtonModule, MatMenuModule, MatListModule, ErrorWidgetComponent, AlfrescoIconComponent],
|
||||
templateUrl: './attach-file-widget.component.html',
|
||||
styleUrls: ['./attach-file-widget.component.scss'],
|
||||
host: {
|
||||
|
@@ -22,7 +22,7 @@ import { WidgetComponent, FormService, ErrorWidgetComponent } from '@alfresco/ad
|
||||
import { ContentNodeDialogService, NodesApiService } from '@alfresco/adf-content-services';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatLineModule } from '@angular/material/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
@@ -30,7 +30,7 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
@Component({
|
||||
selector: 'attach-folder-widget',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatIconModule, MatLineModule, MatButtonModule, ErrorWidgetComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatIconModule, MatLineModule, MatButtonModule, ErrorWidgetComponent],
|
||||
templateUrl: './attach-folder-widget.component.html',
|
||||
styleUrls: ['./attach-folder-widget.component.scss'],
|
||||
host: {
|
||||
|
@@ -20,7 +20,7 @@ import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges, ViewE
|
||||
import { Observable } from 'rxjs';
|
||||
import { ProcessContentService } from '../../services/process-content.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
@@ -28,7 +28,7 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
@Component({
|
||||
selector: 'adf-content',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatCardModule, MatIconModule, MatButtonModule],
|
||||
imports: [CommonModule, TranslatePipe, MatCardModule, MatIconModule, MatButtonModule],
|
||||
templateUrl: './content.widget.html',
|
||||
styleUrls: ['./content.widget.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -34,13 +34,13 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { AbstractControl, FormControl, ReactiveFormsModule, ValidationErrors, ValidatorFn } from '@angular/forms';
|
||||
import { filter } from 'rxjs/operators';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'dropdown-widget',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatFormFieldModule, MatSelectModule, ReactiveFormsModule, ErrorWidgetComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatFormFieldModule, MatSelectModule, ReactiveFormsModule, ErrorWidgetComponent],
|
||||
templateUrl: './dropdown.widget.html',
|
||||
styleUrls: ['./dropdown.widget.scss'],
|
||||
host: {
|
||||
|
@@ -23,7 +23,7 @@ import { DynamicTableColumn } from './editors/models/dynamic-table-column.model'
|
||||
import { DynamicTableRow } from './editors/models/dynamic-table-row.model';
|
||||
import { DynamicTableModel } from './editors/models/dynamic-table.widget.model';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -32,7 +32,7 @@ import { RowEditorComponent } from './editors/row-editor/row.editor';
|
||||
@Component({
|
||||
selector: 'dynamic-table-widget',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatCheckboxModule, MatButtonModule, MatIconModule, RowEditorComponent, ErrorWidgetComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatCheckboxModule, MatButtonModule, MatIconModule, RowEditorComponent, ErrorWidgetComponent],
|
||||
templateUrl: './dynamic-table.widget.html',
|
||||
styleUrls: ['./dynamic-table.widget.scss'],
|
||||
host: {
|
||||
|
@@ -18,7 +18,7 @@
|
||||
import { BaseViewerWidgetComponent, ErrorWidgetComponent, FormService } from '@alfresco/adf-core';
|
||||
import { Component, ViewEncapsulation } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { AlfrescoViewerComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
/* eslint-disable @angular-eslint/component-selector */
|
||||
@@ -26,7 +26,7 @@ import { AlfrescoViewerComponent } from '@alfresco/adf-content-services';
|
||||
@Component({
|
||||
selector: 'file-viewer-widget',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, AlfrescoViewerComponent, ErrorWidgetComponent],
|
||||
imports: [CommonModule, TranslatePipe, AlfrescoViewerComponent, ErrorWidgetComponent],
|
||||
templateUrl: './file-viewer.widget.html',
|
||||
styleUrls: ['./file-viewer.widget.scss'],
|
||||
host: {
|
||||
|
@@ -25,7 +25,7 @@ import { ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
|
||||
import { PeopleProcessService } from '../../../services/people-process.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||
import { MatChipsModule } from '@angular/material/chips';
|
||||
@@ -37,7 +37,7 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatFormFieldModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatInputModule,
|
||||
ReactiveFormsModule,
|
||||
MatAutocompleteModule,
|
||||
|
@@ -27,7 +27,7 @@ import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators
|
||||
import { PeopleProcessService } from '../../../services/people-process.service';
|
||||
import { LightUserRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||
@@ -37,7 +37,7 @@ import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatFormFieldModule,
|
||||
MatInputModule,
|
||||
MatChipsModule,
|
||||
|
@@ -22,14 +22,14 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { TaskFormService } from '../../services/task-form.service';
|
||||
import { ProcessDefinitionService } from '../../services/process-definition.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatRadioModule } from '@angular/material/radio';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
@Component({
|
||||
selector: 'radio-buttons-widget',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatRadioModule, FormsModule, ErrorWidgetComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatRadioModule, FormsModule, ErrorWidgetComponent],
|
||||
templateUrl: './radio-buttons.widget.html',
|
||||
styleUrls: ['./radio-buttons.widget.scss'],
|
||||
host: {
|
||||
|
@@ -23,7 +23,7 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { TaskFormService } from '../../services/task-form.service';
|
||||
import { ProcessDefinitionService } from '../../services/process-definition.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||
@@ -32,7 +32,7 @@ import { MatInputModule } from '@angular/material/input';
|
||||
@Component({
|
||||
selector: 'typeahead-widget',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatFormFieldModule, FormsModule, MatAutocompleteModule, ErrorWidgetComponent, MatInputModule],
|
||||
imports: [CommonModule, TranslatePipe, MatFormFieldModule, FormsModule, MatAutocompleteModule, ErrorWidgetComponent, MatInputModule],
|
||||
templateUrl: './typeahead.widget.html',
|
||||
styleUrls: ['./typeahead.widget.scss'],
|
||||
host: {
|
||||
|
@@ -23,7 +23,7 @@ import { Observable, from } from 'rxjs';
|
||||
import { ProcessContentService } from '../../services/process-content.service';
|
||||
import { mergeMap, map } from 'rxjs/operators';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatListModule } from '@angular/material/list';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -31,7 +31,7 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
@Component({
|
||||
selector: 'upload-widget',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatListModule, MatButtonModule, MatIconModule, ErrorWidgetComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatListModule, MatButtonModule, MatIconModule, ErrorWidgetComponent],
|
||||
templateUrl: './upload.widget.html',
|
||||
styleUrls: ['./upload.widget.scss'],
|
||||
host: {
|
||||
|
@@ -21,14 +21,14 @@ import { PerformSearchCallback } from '../../interfaces/perform-search-callback.
|
||||
import { map } from 'rxjs/operators';
|
||||
import { LightUserRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { PeopleSearchFieldComponent } from '../people-search-field/people-search-field.component';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-people-search',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, PeopleSearchFieldComponent, MatButtonModule],
|
||||
imports: [CommonModule, TranslatePipe, PeopleSearchFieldComponent, MatButtonModule],
|
||||
templateUrl: './people-search.component.html',
|
||||
styleUrls: ['./people-search.component.scss'],
|
||||
host: {
|
||||
|
@@ -24,7 +24,7 @@ import { PeopleProcessService } from '../../../services/people-process.service';
|
||||
import { LightUserRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { PeopleListComponent } from '../people-list/people-list.component';
|
||||
import { DataColumnComponent, DataColumnListComponent } from '@alfresco/adf-core';
|
||||
@@ -35,7 +35,7 @@ import { DataColumnComponent, DataColumnListComponent } from '@alfresco/adf-core
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatCardModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatIconModule,
|
||||
PeopleSearchComponent,
|
||||
PeopleListComponent,
|
||||
|
@@ -23,7 +23,7 @@ import { IconModel } from '../../../app-list/icon.model';
|
||||
import { NavigationStart, Router } from '@angular/router';
|
||||
import { filter } from 'rxjs/operators';
|
||||
import { CommonModule, Location } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { IconComponent } from '@alfresco/adf-core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@@ -31,7 +31,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
selector: 'adf-process-instance-filters',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, IconComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, IconComponent],
|
||||
templateUrl: './process-filters.component.html',
|
||||
styleUrls: ['./process-filters.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -22,7 +22,7 @@ import { ProcessService } from '../../services/process.service';
|
||||
import { ProcessInstanceHeaderComponent } from '../process-instance-header/process-instance-header.component';
|
||||
import { ProcessInstanceTasksComponent } from '../process-instance-tasks/process-instance-tasks.component';
|
||||
import { ProcessInstanceRepresentation } from '@alfresco/js-api';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { ProcessCommentsComponent } from '../../../process-comments';
|
||||
@@ -32,7 +32,7 @@ import { ProcessCommentsComponent } from '../../../process-comments';
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatCardModule,
|
||||
MatButtonModule,
|
||||
ProcessCommentsComponent,
|
||||
|
@@ -24,7 +24,7 @@ import { ProcessService } from '../../services/process.service';
|
||||
import { share } from 'rxjs/operators';
|
||||
import { ProcessInstanceRepresentation, TaskRepresentation } from '@alfresco/js-api';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatChipsModule } from '@angular/material/chips';
|
||||
import { MatListModule } from '@angular/material/list';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -34,7 +34,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
selector: 'adf-process-instance-tasks',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatButtonModule, TranslateModule, MatChipsModule, MatListModule, MatIconModule, MatDialogModule, StartFormComponent],
|
||||
imports: [CommonModule, MatButtonModule, TranslatePipe, MatChipsModule, MatListModule, MatIconModule, MatDialogModule, StartFormComponent],
|
||||
templateUrl: './process-instance-tasks.component.html',
|
||||
styleUrls: ['./process-instance-tasks.component.css']
|
||||
})
|
||||
|
@@ -47,7 +47,7 @@ import {
|
||||
} from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
|
||||
const PRESET_KEY = 'adf-process-list.presets';
|
||||
|
||||
@@ -76,7 +76,7 @@ export const processPresetsDefaultModel = {
|
||||
CommonModule,
|
||||
MatProgressSpinnerModule,
|
||||
EmptyContentComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
DataTableComponent,
|
||||
LoadingContentTemplateDirective,
|
||||
NoContentTemplateDirective
|
||||
|
@@ -28,13 +28,7 @@ import {
|
||||
ViewChild,
|
||||
ViewEncapsulation
|
||||
} from '@angular/core';
|
||||
import {
|
||||
AppConfigService,
|
||||
AppConfigValues,
|
||||
EmptyContentComponent,
|
||||
FormValues,
|
||||
LocalizedDatePipe
|
||||
} from '@alfresco/adf-core';
|
||||
import { AppConfigService, AppConfigValues, EmptyContentComponent, FormValues, LocalizedDatePipe } from '@alfresco/adf-core';
|
||||
import { AppsProcessService } from '../../../services/apps-process.service';
|
||||
import { ProcessService } from '../../services/process.service';
|
||||
import { AbstractControl, FormsModule, ReactiveFormsModule, UntypedFormControl, Validators } from '@angular/forms';
|
||||
@@ -55,7 +49,7 @@ import { ActivitiContentService } from '../../../form/services/activiti-alfresco
|
||||
import { getTime } from 'date-fns';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -72,7 +66,7 @@ const PROCESS_DEFINITION_IDENTIFIER_REG_EXP = new RegExp('%{processdefinition}',
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatProgressSpinnerModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatFormFieldModule,
|
||||
MatSelectModule,
|
||||
FormsModule,
|
||||
|
@@ -23,7 +23,7 @@ import { ModelService } from '../../../form/services/model.service';
|
||||
import { TaskFormService } from '../../../form/services/task-form.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
@@ -32,7 +32,7 @@ import { FormComponent } from '../../../form';
|
||||
@Component({
|
||||
selector: 'adf-attach-form',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatCardModule, TranslateModule, MatFormFieldModule, MatSelectModule, ReactiveFormsModule, MatButtonModule, FormComponent],
|
||||
imports: [CommonModule, MatCardModule, TranslatePipe, MatFormFieldModule, MatSelectModule, ReactiveFormsModule, MatButtonModule, FormComponent],
|
||||
templateUrl: './attach-form.component.html',
|
||||
styleUrls: ['./attach-form.component.scss']
|
||||
})
|
||||
|
@@ -20,7 +20,7 @@ import { MatDialog, MatDialogModule } from '@angular/material/dialog';
|
||||
import { TaskListService } from '../../services/tasklist.service';
|
||||
import { TaskRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatChipsModule } from '@angular/material/chips';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -33,7 +33,7 @@ import { FormsModule } from '@angular/forms';
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatChipsModule,
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
|
@@ -26,7 +26,7 @@ import { AbstractControl, ReactiveFormsModule, UntypedFormBuilder, UntypedFormCo
|
||||
import { isValid } from 'date-fns';
|
||||
import { TaskRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
@@ -45,7 +45,7 @@ const MAX_LENGTH = 255;
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatCardModule,
|
||||
ReactiveFormsModule,
|
||||
MatFormFieldModule,
|
||||
|
@@ -48,7 +48,7 @@ import { TaskFormComponent } from '../task-form/task-form.component';
|
||||
import { PeopleProcessService } from '../../../services/people-process.service';
|
||||
import { LightUserRepresentation, TaskQueryRepresentation, TaskRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { AttachFormComponent } from '../attach-form/attach-form.component';
|
||||
import { PeopleComponent, PeopleSearchComponent } from '../../../people';
|
||||
import { TaskHeaderComponent } from '../task-header/task-header.component';
|
||||
@@ -64,7 +64,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
TaskFormComponent,
|
||||
AttachFormComponent,
|
||||
PeopleSearchComponent,
|
||||
|
@@ -24,7 +24,7 @@ import { ActivatedRoute, NavigationStart, Router } from '@angular/router';
|
||||
import { filter } from 'rxjs/operators';
|
||||
import { UserTaskFilterRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { IconComponent } from '@alfresco/adf-core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@@ -33,7 +33,7 @@ import { forkJoin, Observable } from 'rxjs';
|
||||
@Component({
|
||||
selector: 'adf-task-filters',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, IconComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, IconComponent],
|
||||
templateUrl: './task-filters.component.html',
|
||||
styleUrls: ['./task-filters.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -32,7 +32,7 @@ import { PeopleProcessService } from '../../../services/people-process.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { ClaimTaskDirective } from './claim-task.directive';
|
||||
import { UnclaimTaskDirective } from './unclaim-task.directive';
|
||||
@@ -47,7 +47,7 @@ import { FormComponent, FormCustomOutcomesComponent } from '../../../form';
|
||||
MatCardModule,
|
||||
EmptyContentComponent,
|
||||
MatButtonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatProgressSpinnerModule,
|
||||
ClaimTaskDirective,
|
||||
UnclaimTaskDirective,
|
||||
|
@@ -38,7 +38,7 @@ import { MatCardModule } from '@angular/material/card';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { UnclaimTaskDirective } from '../task-form/unclaim-task.directive';
|
||||
import { ClaimTaskDirective } from '../task-form/claim-task.directive';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { debounceTime, filter, map, switchMap } from 'rxjs/operators';
|
||||
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@@ -46,7 +46,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
selector: 'adf-task-header',
|
||||
standalone: true,
|
||||
imports: [CommonModule, MatCardModule, MatButtonModule, UnclaimTaskDirective, ClaimTaskDirective, TranslateModule, CardViewComponent],
|
||||
imports: [CommonModule, MatCardModule, MatButtonModule, UnclaimTaskDirective, ClaimTaskDirective, TranslatePipe, CardViewComponent],
|
||||
templateUrl: './task-header.component.html',
|
||||
styleUrls: ['./task-header.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -53,7 +53,7 @@ import { finalize } from 'rxjs/operators';
|
||||
import { TaskQueryRepresentation, TaskRepresentation } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
export const PRESET_KEY = 'adf-task-list.presets';
|
||||
@@ -65,7 +65,7 @@ export const PRESET_KEY = 'adf-task-list.presets';
|
||||
CommonModule,
|
||||
MatProgressSpinnerModule,
|
||||
EmptyContentComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
DataTableComponent,
|
||||
LoadingContentTemplateDirective,
|
||||
NoContentTemplateDirective
|
||||
|
@@ -17,14 +17,14 @@
|
||||
|
||||
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-task-standalone',
|
||||
standalone: true,
|
||||
imports: [CommonModule, TranslateModule, MatCardModule, MatButtonModule],
|
||||
imports: [CommonModule, TranslatePipe, MatCardModule, MatButtonModule],
|
||||
templateUrl: './task-standalone.component.html',
|
||||
styleUrls: ['./task-standalone.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
Reference in New Issue
Block a user