mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1806] remove old prefix compatibility alfresco- and activiti- (#2567)
* remove old prefix compatibility alfresco- and activiti- * fix missing close string quotemark * fix missing datatable changes
This commit is contained in:
@@ -21,7 +21,7 @@ import { Chart } from 'ng2-activiti-diagrams';
|
||||
import { AnalyticsService } from '../services/analytics.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-analytics-generator, activiti-analytics-generator',
|
||||
selector: 'adf-analytics-generator',
|
||||
templateUrl: './analytics-generator.component.html',
|
||||
styleUrls: ['./analytics-generator.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -20,7 +20,7 @@ import { ReportQuery } from 'ng2-activiti-diagrams';
|
||||
import { AnalyticsGeneratorComponent } from './analytics-generator.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-analytics, activiti-analytics',
|
||||
selector: 'adf-analytics',
|
||||
templateUrl: './analytics.component.html',
|
||||
styleUrls: ['./analytics.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -22,7 +22,7 @@ import { DiagramsService } from '../services/diagrams.service';
|
||||
import { RaphaelService } from './raphael/raphael.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-diagram, activiti-diagram',
|
||||
selector: 'adf-diagram',
|
||||
styleUrls: ['./diagram.component.css'],
|
||||
templateUrl: './diagram.component.html'
|
||||
})
|
||||
|
@@ -1,8 +1,8 @@
|
||||
<alfresco-datatable *ngIf="!isEmpty()"
|
||||
<adf-datatable *ngIf="!isEmpty()"
|
||||
[rows]="forms">
|
||||
<data-columns>
|
||||
<data-column key="name" type="text" title="Name" class="ellipsis-cell" [sortable]="true"></data-column>
|
||||
<data-column key="lastUpdatedByFullName" type="text" title="User" class="ellipsis-cell" [sortable]="true"></data-column>
|
||||
<data-column key="lastUpdated" type="date" format="shortDate" title="Date"></data-column>
|
||||
</data-columns>
|
||||
</alfresco-datatable>
|
||||
</adf-datatable>
|
||||
|
@@ -74,7 +74,7 @@ describe('TaskAttachmentList', () => {
|
||||
fixture.whenStable()
|
||||
.then(() => {
|
||||
fixture.detectChanges();
|
||||
expect(fixture.debugElement.queryAll(By.css('alfresco-datatable tbody tr')).length).toBe(2);
|
||||
expect(fixture.debugElement.queryAll(By.css('adf-datatable tbody tr')).length).toBe(2);
|
||||
});
|
||||
}));
|
||||
|
||||
|
@@ -27,7 +27,7 @@ import { Observable } from 'rxjs/Rx';
|
||||
import { WidgetVisibilityService } from './../services/widget-visibility.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-form, activiti-form',
|
||||
selector: 'adf-form',
|
||||
templateUrl: './form.component.html',
|
||||
styleUrls: ['./form.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -41,7 +41,7 @@ import { FormOutcomeModel } from './widgets/core/index';
|
||||
* @returns {FormComponent} .
|
||||
*/
|
||||
@Component({
|
||||
selector: 'adf-start-form, activiti-start-form',
|
||||
selector: 'adf-start-form',
|
||||
templateUrl: './start-form.component.html',
|
||||
styleUrls: ['./form.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -23,7 +23,7 @@ import { ContentLinkModel } from '../core/content-link.model';
|
||||
import { FormService } from './../../../services/form.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-content, activiti-content',
|
||||
selector: 'adf-content',
|
||||
templateUrl: './content.widget.html',
|
||||
styleUrls: ['./content.widget.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -20,7 +20,7 @@ import { CommentProcessModel, CommentProcessService } from 'ng2-alfresco-core';
|
||||
import { Observable, Observer } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-process-instance-comments, activiti-process-instance-comments',
|
||||
selector: 'adf-process-instance-comments',
|
||||
templateUrl: './process-comments.component.html',
|
||||
styleUrls: ['./process-comments.component.css']
|
||||
})
|
||||
|
@@ -23,7 +23,7 @@ import { FilterProcessRepresentationModel } from '../models/filter-process.model
|
||||
import { ProcessService } from './../services/process.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-process-instance-filters, activiti-process-instance-filters',
|
||||
selector: 'adf-process-instance-filters',
|
||||
templateUrl: './process-filters.component.html',
|
||||
styleUrls: ['process-filters.component.scss']
|
||||
})
|
||||
|
@@ -26,7 +26,7 @@ import { ProcessInstanceHeaderComponent } from './process-instance-header.compon
|
||||
import { ProcessInstanceTasksComponent } from './process-instance-tasks.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-process-instance-details, activiti-process-instance-details',
|
||||
selector: 'adf-process-instance-details',
|
||||
templateUrl: './process-instance-details.component.html',
|
||||
styleUrls: ['./process-instance-details.component.css']
|
||||
})
|
||||
|
@@ -20,7 +20,7 @@ import { CardViewDateItemModel, CardViewItem, CardViewTextItemModel } from 'ng2-
|
||||
import { ProcessInstance } from '../models/process-instance.model';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-process-instance-header, activiti-process-instance-header',
|
||||
selector: 'adf-process-instance-header',
|
||||
templateUrl: './process-instance-header.component.html',
|
||||
styleUrls: ['./process-instance-header.component.css']
|
||||
})
|
||||
|
@@ -25,7 +25,7 @@ import { ProcessInstance } from '../models/process-instance.model';
|
||||
import { ProcessService } from './../services/process.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-process-instance-tasks, activiti-process-instance-tasks',
|
||||
selector: 'adf-process-instance-tasks',
|
||||
templateUrl: './process-instance-tasks.component.html',
|
||||
styleUrls: ['./process-instance-tasks.component.css']
|
||||
})
|
||||
|
@@ -24,7 +24,7 @@ import { ProcessInstance } from '../models/process-instance.model';
|
||||
import { ProcessService } from '../services/process.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-process-instance-list, activiti-process-instance-list',
|
||||
selector: 'adf-process-instance-list',
|
||||
styleUrls: ['./process-list.component.css'],
|
||||
templateUrl: './process-list.component.html'
|
||||
})
|
||||
|
@@ -16,13 +16,13 @@
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<activiti-start-form *ngIf="hasStartForm()"
|
||||
<adf-start-form *ngIf="hasStartForm()"
|
||||
[disableStartProcessButton]="!hasProcessName()"
|
||||
[processDefinitionId]="currentProcessDef.id"
|
||||
(outcomeClick)="onOutcomeClick($event)"
|
||||
[showRefreshButton]="false">
|
||||
<button form-custom-button mat-button (click)="cancelStartProcess()" id="cancle_process" class=""> {{'ADF_PROCESS_LIST.START_PROCESS.FORM.ACTION.CANCEL'| translate}} </button>
|
||||
</activiti-start-form>
|
||||
</adf-start-form>
|
||||
</mat-card-content>
|
||||
<mat-card-content *ngIf="hasErrorMessage()">
|
||||
<mat-card-subtitle class="error-message" id="no-process-message">
|
||||
|
@@ -23,7 +23,7 @@ import { ProcessInstance } from './../models/process-instance.model';
|
||||
import { ProcessService } from './../services/process.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-start-process, activiti-start-process',
|
||||
selector: 'adf-start-process',
|
||||
templateUrl: './start-process.component.html',
|
||||
styleUrls: ['./start-process.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -24,7 +24,7 @@ import { IconModel } from '../models/icon.model';
|
||||
import { TaskListService } from './../services/tasklist.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-apps, activiti-apps',
|
||||
selector: 'adf-apps',
|
||||
templateUrl: 'apps-list.component.html',
|
||||
styleUrls: ['./apps-list.component.scss', './apps-grid.component.scss'],
|
||||
providers: [TaskListService]
|
||||
|
@@ -22,7 +22,7 @@ import { TaskDetailsModel } from '../models/task-details.model';
|
||||
import { TaskListService } from './../services/tasklist.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-checklist, activiti-checklist',
|
||||
selector: 'adf-checklist',
|
||||
templateUrl: './checklist.component.html',
|
||||
styleUrls: ['./checklist.component.scss'],
|
||||
providers: [TaskListService]
|
||||
|
@@ -20,7 +20,7 @@ import { CommentProcessModel, CommentProcessService } from 'ng2-alfresco-core';
|
||||
import { Observable, Observer } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-comments, activiti-comments',
|
||||
selector: 'adf-comments',
|
||||
templateUrl: './comments.component.html',
|
||||
styleUrls: ['./comments.component.css']
|
||||
})
|
||||
|
@@ -21,7 +21,7 @@ import { PeopleProcessService, UserProcessModel } from 'ng2-alfresco-core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-people-search, activiti-people-search',
|
||||
selector: 'adf-people-search',
|
||||
templateUrl: './people-search.component.html',
|
||||
styleUrls: ['./people-search.component.scss'],
|
||||
host: {
|
||||
|
@@ -25,7 +25,7 @@ import { PeopleSearchComponent } from './people-search.component';
|
||||
declare var require: any;
|
||||
|
||||
@Component({
|
||||
selector: 'adf-people, activiti-people',
|
||||
selector: 'adf-people',
|
||||
templateUrl: './people.component.html',
|
||||
styleUrls: ['./people.component.scss']
|
||||
})
|
||||
|
@@ -28,7 +28,7 @@ import { TaskDetailsModel } from '../models/task-details.model';
|
||||
import { TaskListService } from './../services/tasklist.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-start-task, activiti-start-task',
|
||||
selector: 'adf-start-task',
|
||||
templateUrl: './start-task.component.html',
|
||||
styleUrls: ['./start-task.component.scss'],
|
||||
providers: [
|
||||
|
@@ -38,7 +38,7 @@ import { CommentsComponent } from './comments.component';
|
||||
declare var require: any;
|
||||
|
||||
@Component({
|
||||
selector: 'adf-task-details, activiti-task-details',
|
||||
selector: 'adf-task-details',
|
||||
templateUrl: './task-details.component.html',
|
||||
styleUrls: ['./task-details.component.scss'],
|
||||
providers: [
|
||||
|
@@ -21,7 +21,7 @@ import { TaskDetailsModel } from '../models/task-details.model';
|
||||
import { TaskListService } from './../services/tasklist.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-task-header, activiti-task-header',
|
||||
selector: 'adf-task-header',
|
||||
templateUrl: './task-header.component.html',
|
||||
styleUrls: ['./task-header.component.scss']
|
||||
})
|
||||
|
@@ -25,7 +25,7 @@ import { TaskListService } from './../services/tasklist.service';
|
||||
|
||||
const DEFAULT_SIZE = 5;
|
||||
@Component({
|
||||
selector: 'adf-tasklist, activiti-tasklist',
|
||||
selector: 'adf-tasklist',
|
||||
templateUrl: './task-list.component.html',
|
||||
styleUrls: ['./task-list.component.css']
|
||||
})
|
||||
|
@@ -56,7 +56,7 @@
|
||||
"@angular/platform-browser-dynamic": "4.4.5",
|
||||
"@angular/router": "4.4.5",
|
||||
"@ngx-translate/core": "7.0.0",
|
||||
"alfresco-js-api": "1.9.0",
|
||||
"alfresco-js-api": "^1.10.0-11228ed731b8894881989e2ec62e3f3390d91636",
|
||||
"core-js": "2.4.1",
|
||||
"hammerjs": "2.0.8",
|
||||
"moment": "2.15.2",
|
||||
|
@@ -29,7 +29,7 @@ import { Pagination } from 'alfresco-js-api';
|
||||
import { PaginationQueryParams } from './pagination-query-params.interface';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-pagination, alfresco-pagination',
|
||||
selector: 'adf-pagination',
|
||||
host: { 'class': 'adf-pagination' },
|
||||
templateUrl: './pagination.component.html',
|
||||
styleUrls: [ './pagination.component.scss' ],
|
||||
|
@@ -21,7 +21,7 @@ import { DataRow } from '../../data/data-row.model';
|
||||
import { DataTableAdapter } from '../../data/datatable-adapter';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-datatable-cell, alfresco-datatable-cell',
|
||||
selector: 'adf-datatable-cell',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
template: `
|
||||
<ng-container>
|
||||
|
@@ -33,7 +33,7 @@ import { DataCellEvent } from './data-cell.event';
|
||||
import { DataRowActionEvent } from './data-row-action.event';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-datatable, alfresco-datatable',
|
||||
selector: 'adf-datatable',
|
||||
styleUrls: ['./datatable.component.scss'],
|
||||
templateUrl: './datatable.component.html'
|
||||
})
|
||||
|
@@ -20,7 +20,7 @@ import { MinimalNodeEntryEntity, PathElementEntity } from 'alfresco-js-api';
|
||||
import { DocumentListComponent } from '../document-list.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-breadcrumb, alfresco-document-list-breadcrumb',
|
||||
selector: 'adf-breadcrumb',
|
||||
templateUrl: './breadcrumb.component.html',
|
||||
styleUrls: ['./breadcrumb.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -42,7 +42,7 @@ export enum PaginationStrategy {
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'adf-document-list, alfresco-document-list',
|
||||
selector: 'adf-document-list',
|
||||
styleUrls: ['./document-list.component.scss'],
|
||||
templateUrl: './document-list.component.html',
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -22,7 +22,7 @@ import { SearchOptions, SearchService } from 'ng2-alfresco-core';
|
||||
import { ThumbnailService } from 'ng2-alfresco-core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-search-autocomplete, alfresco-search-autocomplete',
|
||||
selector: 'adf-search-autocomplete',
|
||||
templateUrl: './search-autocomplete.component.html',
|
||||
styleUrls: ['./search-autocomplete.component.scss'],
|
||||
animations: [
|
||||
|
@@ -23,7 +23,7 @@ import { SearchTermValidator } from './../forms/search-term-validator';
|
||||
import { SearchAutocompleteComponent } from './search-autocomplete.component';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-search-control, alfresco-search-control',
|
||||
selector: 'adf-search-control',
|
||||
templateUrl: './search-control.component.html',
|
||||
styleUrls: ['./search-control.component.scss'],
|
||||
animations: [
|
||||
|
@@ -24,7 +24,7 @@ import { PermissionModel } from 'ng2-alfresco-documentlist';
|
||||
declare var require: any;
|
||||
|
||||
@Component({
|
||||
selector: 'adf-search, alfresco-search',
|
||||
selector: 'adf-search',
|
||||
styleUrls: ['./search.component.scss'],
|
||||
templateUrl: './search.component.html',
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -27,7 +27,7 @@ import { TagService } from './../services/tag.service';
|
||||
*/
|
||||
|
||||
@Component({
|
||||
selector: 'adf-tag-node-actions-list, alfresco-tag-node-actions-list',
|
||||
selector: 'adf-tag-node-actions-list',
|
||||
templateUrl: './tag-actions.component.html',
|
||||
styleUrls: ['./tag-actions.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -26,7 +26,7 @@ import { TagService } from '../services/tag.service';
|
||||
*/
|
||||
|
||||
@Component({
|
||||
selector: 'adf-tag-list, alfresco-tag-list',
|
||||
selector: 'adf-tag-list',
|
||||
templateUrl: './tag-list.component.html',
|
||||
styleUrls: ['./tag-list.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -26,7 +26,7 @@ import { TagService } from '../services/tag.service';
|
||||
*/
|
||||
|
||||
@Component({
|
||||
selector: 'adf-tag-node-list, alfresco-tag-node-list',
|
||||
selector: 'adf-tag-node-list',
|
||||
templateUrl: './tag-node-list.component.html',
|
||||
styleUrls: ['./tag-node-list.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -20,7 +20,7 @@ import { AlfrescoTranslationService, FileModel, FileUploadStatus, NodesApiServic
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-file-uploading-list, alfresco-file-uploading-list',
|
||||
selector: 'adf-file-uploading-list',
|
||||
templateUrl: './file-uploading-list.component.html',
|
||||
styleUrls: ['./file-uploading-list.component.scss']
|
||||
})
|
||||
|
@@ -42,7 +42,7 @@ import { Observable, Subject } from 'rxjs/Rx';
|
||||
import { PermissionModel } from '../models/permissions.model';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-upload-button, alfresco-upload-button',
|
||||
selector: 'adf-upload-button',
|
||||
templateUrl: './upload-button.component.html',
|
||||
styleUrls: ['./upload-button.component.scss'],
|
||||
providers: [
|
||||
|
@@ -28,7 +28,7 @@ import {
|
||||
} from 'ng2-alfresco-core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-upload-drag-area, alfresco-upload-drag-area',
|
||||
selector: 'adf-upload-drag-area',
|
||||
templateUrl: './upload-drag-area.component.html',
|
||||
styleUrls: ['./upload-drag-area.component.css'],
|
||||
providers: [
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<div *ngIf="contentType === 'HTML'" id="webscript-data-HTML" [innerHTML]="data"></div>
|
||||
<div *ngIf="contentType === 'TEXT'" id="webscript-data-TEXT">{{data}}</div>
|
||||
<div *ngIf="isDataTableContent()">
|
||||
<alfresco-datatable id="webscript-datatable-wrapper" [data]="data"></alfresco-datatable>
|
||||
<adf-datatable id="webscript-datatable-wrapper" [data]="data"></adf-datatable>
|
||||
<div>
|
||||
<div *ngIf="showError" id="error">{{'WEBSCRIPT.ERROR' | translate: {
|
||||
data: data,
|
||||
|
@@ -41,7 +41,7 @@ import { ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
|
||||
* @returns {WebscriptComponent} .
|
||||
*/
|
||||
@Component({
|
||||
selector: 'adf-webscript-get, alfresco-webscript-get',
|
||||
selector: 'adf-webscript-get',
|
||||
templateUrl: 'webscript.component.html'
|
||||
})
|
||||
export class WebscriptComponent implements OnChanges {
|
||||
|
Reference in New Issue
Block a user