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:
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* tslint:disable:component-selector */
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
import { ContentActionModel } from './../../models/content-action.model';
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* tslint:disable:component-selector */
|
||||
|
||||
import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core';
|
||||
|
||||
import { ContentActionHandler } from '../../models/content-action.model';
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* tslint:disable:component-selector */
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
import { DataColumn } from 'ng2-alfresco-datatable';
|
||||
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* tslint:disable:component-selector */
|
||||
|
||||
import { AfterContentInit, Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
|
||||
import { DataColumn } from 'ng2-alfresco-datatable';
|
||||
|
||||
|
@@ -398,7 +398,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
|
||||
reject(error);
|
||||
});
|
||||
} else {
|
||||
this.data.loadPage(<NodePaging>val);
|
||||
this.data.loadPage(<NodePaging> val);
|
||||
this.pagination = val.list.pagination;
|
||||
this.loading = false;
|
||||
this.ready.emit();
|
||||
|
@@ -104,7 +104,7 @@ describe('ShareDataTableAdapter', () => {
|
||||
it('should fail when getting value for missing row', () => {
|
||||
let adapter = new ShareDataTableAdapter(documentListService, null);
|
||||
let check = () => {
|
||||
return adapter.getValue(null, <DataColumn>{});
|
||||
return adapter.getValue(null, <DataColumn> {});
|
||||
};
|
||||
expect(check).toThrowError(adapter.ERR_ROW_NOT_FOUND);
|
||||
});
|
||||
@@ -112,7 +112,7 @@ describe('ShareDataTableAdapter', () => {
|
||||
it('should fail when getting value for missing column', () => {
|
||||
let adapter = new ShareDataTableAdapter(documentListService, null);
|
||||
let check = () => {
|
||||
return adapter.getValue(<DataRow>{}, null);
|
||||
return adapter.getValue(<DataRow> {}, null);
|
||||
};
|
||||
expect(check).toThrowError(adapter.ERR_COL_NOT_FOUND);
|
||||
});
|
||||
|
@@ -145,10 +145,10 @@ describe('DocumentActionsService', () => {
|
||||
it('should not delete the file node if there is no delete permission', (done) => {
|
||||
spyOn(documentListService, 'deleteNode').and.callThrough();
|
||||
|
||||
service.permissionEvent.subscribe((permission) => {
|
||||
expect(permission).toBeDefined();
|
||||
expect(permission.type).toEqual('content');
|
||||
expect(permission.action).toEqual('delete');
|
||||
service.permissionEvent.subscribe((permissionBack) => {
|
||||
expect(permissionBack).toBeDefined();
|
||||
expect(permissionBack.type).toEqual('content');
|
||||
expect(permissionBack.action).toEqual('delete');
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -236,7 +236,7 @@ describe('DocumentActionsService', () => {
|
||||
const deleteObservale = service.getHandler('delete')(fileWithPermission, null, permission);
|
||||
|
||||
expect(documentListService.deleteNode).toHaveBeenCalledWith(file.entry.id);
|
||||
expect(deleteObservale.subscribe).toBeDefined;
|
||||
expect(deleteObservale.subscribe).toBeDefined();
|
||||
});
|
||||
|
||||
it('should support deletion only file node', () => {
|
||||
|
Reference in New Issue
Block a user