mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Services list in readme and in the doc generator (#2091)
* add services list in readme and in the autogenerator * update tslint 5.5.0
This commit is contained in:
@@ -19,7 +19,7 @@ import { Component, HostListener } from '@angular/core';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
@Component({
|
||||
selector: 'context-menu-holder',
|
||||
selector: 'adf-context-menu-holder, context-menu-holder',
|
||||
styles: [
|
||||
`
|
||||
.menu-container {
|
||||
|
@@ -15,8 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Subject} from 'rxjs/Rx';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Subject } from 'rxjs/Rx';
|
||||
|
||||
@Injectable()
|
||||
export class ContextMenuService {
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* tslint:disable:component-selector */
|
||||
|
||||
import { Component, ContentChildren, QueryList } from '@angular/core';
|
||||
import { DataColumnComponent } from './data-column.component';
|
||||
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* tslint:disable:component-selector */
|
||||
|
||||
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* tslint:disable:component-selector */
|
||||
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { By } from '@angular/platform-browser';
|
||||
|
@@ -76,7 +76,7 @@ export class CardViewItemDispatcherComponent implements OnChanges {
|
||||
className = `CardView${upperCamelCasedType}ItemComponent`;
|
||||
|
||||
const factories = Array.from(this.resolver['_factories'].keys());
|
||||
const factoryClass = <Type<any>>factories.find((x: any) => x.name === className);
|
||||
const factoryClass = <Type<any>> factories.find((x: any) => x.name === className);
|
||||
const factory = this.resolver.resolveComponentFactory(factoryClass);
|
||||
this.componentReference = this.content.viewContainerRef.createComponent(factory);
|
||||
|
||||
|
@@ -204,7 +204,7 @@ export class UploadDirective implements OnInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
iterations.push(Promise.resolve(<FileInfo>{
|
||||
iterations.push(Promise.resolve(<FileInfo> {
|
||||
entry: null,
|
||||
file: items[i].getAsFile(),
|
||||
relativeFolder: '/'
|
||||
@@ -237,7 +237,7 @@ export class UploadDirective implements OnInit, OnDestroy {
|
||||
*/
|
||||
protected onSelectFiles(e: Event) {
|
||||
if (this.isClickMode()) {
|
||||
const input = (<HTMLInputElement>e.currentTarget);
|
||||
const input = (<HTMLInputElement> e.currentTarget);
|
||||
const files = FileUtils.toFileArray(input.files);
|
||||
this.onUploadFiles(files.map(file => <FileInfo> {
|
||||
entry: null,
|
||||
|
@@ -37,7 +37,7 @@ export class AlfrescoApiService {
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.alfrescoApi = <AlfrescoApi>new alfrescoApi({
|
||||
this.alfrescoApi = <AlfrescoApi> new alfrescoApi({
|
||||
provider: this.storage.getItem('AUTH_TYPE'),
|
||||
ticketEcm: this.storage.getItem('ticket-ECM'),
|
||||
ticketBpm: this.storage.getItem('ticket-BPM'),
|
||||
|
@@ -78,7 +78,7 @@ export class AlfrescoContentService {
|
||||
createFolder(relativePath: string, name: string, parentId?: string): Observable<FolderCreatedEvent> {
|
||||
return Observable.fromPromise(this.apiService.getInstance().nodes.createFolder(name, relativePath, parentId))
|
||||
.do(data => {
|
||||
this.folderCreated.next(<FolderCreatedEvent>{
|
||||
this.folderCreated.next(<FolderCreatedEvent> {
|
||||
relativePath: relativePath,
|
||||
name: name,
|
||||
parentId: parentId,
|
||||
|
@@ -43,7 +43,7 @@ export class UploadService {
|
||||
fileUploadComplete: Subject<FileUploadCompleteEvent> = new Subject<FileUploadCompleteEvent>();
|
||||
|
||||
constructor(private apiService: AlfrescoApiService, private appConfigService: AppConfigService) {
|
||||
this.excludedFileList = <String[]>this.appConfigService.get('files.excluded');
|
||||
this.excludedFileList = <String[]> this.appConfigService.get('files.excluded');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user