diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.d.ts b/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.d.ts
index 5e83032a22..dca49041c3 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.d.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.d.ts
@@ -1,7 +1,7 @@
import { DocumentList } from './document-list.component';
-import { DocumentActionModel } from './models/document-action.model';
+import { ContentActionModel } from './models/content-action.model';
export declare class DocumentActionList {
private list;
constructor(list: DocumentList);
- registerAction(action: DocumentActionModel): void;
+ registerAction(action: ContentActionModel): void;
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.js.map b/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.js.map
index 4feaaefab7..f01638e33a 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.js.map
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.js.map
@@ -1 +1 @@
-{"version":3,"file":"document-action-list.component.js","sourceRoot":"","sources":["document-action-list.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBACI,4BAAoB,IAAkB;oBAAlB,SAAI,GAAJ,IAAI,CAAc;oBAClC,sCAAsC;oBACtC,yCAAyC;gBAC7C,CAAC;gBAED,2CAAc,GAAd,UAAe,MAA2B;oBACtC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;gBAC7C,CAAC;gBAZL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,kBAAkB;wBAC5B,QAAQ,EAAE,EAAE;qBACf,CAAC;;sCAAA;gBAUF,yBAAC;YAAD,CAAC,AATD,IASC;YATD,mDASC,CAAA"}
\ No newline at end of file
+{"version":3,"file":"document-action-list.component.js","sourceRoot":"","sources":["document-action-list.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBACI,4BAAoB,IAAkB;oBAAlB,SAAI,GAAJ,IAAI,CAAc;oBAClC,sCAAsC;oBACtC,yCAAyC;gBAC7C,CAAC;gBAED,2CAAc,GAAd,UAAe,MAA0B;oBACrC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;gBAC7C,CAAC;gBAZL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,kBAAkB;wBAC5B,QAAQ,EAAE,EAAE;qBACf,CAAC;;sCAAA;gBAUF,yBAAC;YAAD,CAAC,AATD,IASC;YATD,mDASC,CAAA"}
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.ts b/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.ts
index 2e2bc3df0b..25265c43fd 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-action-list.component.ts
@@ -17,7 +17,7 @@
import {Component} from 'angular2/core';
import {DocumentList} from './document-list.component';
-import {DocumentActionModel} from './models/document-action.model';
+import {ContentActionModel} from './models/content-action.model';
@Component({
selector: 'document-actions',
@@ -29,7 +29,7 @@ export class DocumentActionList {
// so that content children can access it
}
- registerAction(action: DocumentActionModel) {
+ registerAction(action: ContentActionModel) {
this.list.registerDocumentAction(action);
}
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js b/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js
index d797d8fd52..2a93855098 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-System.register(['angular2/core', './models/document-action.model', './document-action-list.component'], function(exports_1, context_1) {
+System.register(['angular2/core', './models/content-action.model', './document-action-list.component'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
@@ -26,15 +26,15 @@ System.register(['angular2/core', './models/document-action.model', './document-
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
- var core_1, document_action_model_1, document_action_list_component_1;
+ var core_1, content_action_model_1, document_action_list_component_1;
var DocumentAction;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
- function (document_action_model_1_1) {
- document_action_model_1 = document_action_model_1_1;
+ function (content_action_model_1_1) {
+ content_action_model_1 = content_action_model_1_1;
},
function (document_action_list_component_1_1) {
document_action_list_component_1 = document_action_list_component_1_1;
@@ -52,7 +52,7 @@ System.register(['angular2/core', './models/document-action.model', './document-
}
DocumentAction.prototype.ngOnInit = function () {
var _this = this;
- var model = new document_action_model_1.DocumentActionModel();
+ var model = new content_action_model_1.ContentActionModel();
model.title = this.title;
if (this.handler) {
var defaultHandler = this.defaultHandlers[this.handler];
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js.map b/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js.map
index 2361ac76c7..17198f50e1 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js.map
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-action.component.js.map
@@ -1 +1 @@
-{"version":3,"file":"document-action.component.js","sourceRoot":"","sources":["document-action.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAOI,wBAAoB,IAAwB;oBAAxB,SAAI,GAAJ,IAAI,CAAoB;oBANnC,UAAK,GAAW,QAAQ,CAAC;oBAExB,YAAO,GAAG,IAAI,mBAAY,EAAE,CAAC;oBAE/B,oBAAe,GAA6C,EAAE,CAAC;oBAGnE,qEAAqE;oBACrE,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;oBAC7D,IAAI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AwCC;YAxCD,2CAwCC,CAAA"}
\ No newline at end of file
+{"version":3,"file":"document-action.component.js","sourceRoot":"","sources":["document-action.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAOI,wBAAoB,IAAwB;oBAAxB,SAAI,GAAJ,IAAI,CAAoB;oBANnC,UAAK,GAAW,QAAQ,CAAC;oBAExB,YAAO,GAAG,IAAI,mBAAY,EAAE,CAAC;oBAE/B,oBAAe,GAA4C,EAAE,CAAC;oBAGlE,qEAAqE;oBACrE,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;oBAC7D,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;gBACjE,CAAC;gBAED,iCAAQ,GAAR;oBAAA,iBAkBC;oBAjBG,IAAI,KAAK,GAAG,IAAI,yCAAkB,EAAE,CAAC;oBACrC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBAEzB,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;wBACf,IAAI,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACxD,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;4BACjB,KAAK,CAAC,OAAO,GAAG,cAAc,CAAC;wBACnC,CAAC;oBACL,CAAC;oBAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;wBACtB,KAAK,CAAC,OAAO,GAAG,UAAC,QAAa;4BAC1B,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC;gCACd,KAAK,EAAE,QAAQ;6BAClB,CAAC,CAAC;wBACP,CAAC,CAAC;oBACN,CAAC;oBAED,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;gBAED,8CAAqB,GAArB,UAAsB,QAAa;oBAC/B,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;gBACtC,CAAC;gBAED,8CAAqB,GAArB,UAAsB,QAAa;oBAC/B,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;gBACtC,CAAC;gBAtCD;oBAAC,YAAK,EAAE;;6DAAA;gBACR;oBAAC,YAAK,EAAE;;+DAAA;gBACR;oBAAC,aAAM,EAAE;;+DAAA;gBAPb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,iBAAiB;wBAC3B,QAAQ,EAAE,EAAE;qBACf,CAAC;;kCAAA;gBAyCF,qBAAC;YAAD,CAAC,AAxCD,IAwCC;YAxCD,2CAwCC,CAAA"}
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-action.component.ts b/ng2-components/ng2-alfresco-documentlist/src/document-action.component.ts
index becb84f17a..f207233fdb 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-action.component.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-action.component.ts
@@ -16,7 +16,7 @@
*/
import {Component, OnInit, Input, Output, EventEmitter} from 'angular2/core';
-import {DocumentActionModel, DocumentActionHandler} from './models/document-action.model';
+import {ContentActionModel, ContentActionHandler} from './models/content-action.model';
import {DocumentActionList} from './document-action-list.component';
@Component({
@@ -28,7 +28,7 @@ export class DocumentAction implements OnInit {
@Input() handler: string;
@Output() execute = new EventEmitter();
- private defaultHandlers: { [id: string]: DocumentActionHandler; } = {};
+ private defaultHandlers: { [id: string]: ContentActionHandler; } = {};
constructor(private list: DocumentActionList) {
// todo: just for dev/demo purposes, to be replaced with real actions
@@ -37,7 +37,7 @@ export class DocumentAction implements OnInit {
}
ngOnInit() {
- let model = new DocumentActionModel();
+ let model = new ContentActionModel();
model.title = this.title;
if (this.handler) {
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts
index c9f912bfbd..88251da4e3 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts
@@ -18,8 +18,7 @@ import { OnInit, EventEmitter } from 'angular2/core';
import { AlfrescoService } from './alfresco.service';
import { FolderEntity } from './core/entities/folder.entity';
import { DocumentEntity } from './core/entities/document.entity';
-import { DocumentActionModel } from './models/document-action.model';
-import { FolderActionModel } from './models/folder-action.model';
+import { ContentActionModel } from './models/content-action.model';
export declare class DocumentList implements OnInit {
private _alfrescoService;
navigate: boolean;
@@ -36,8 +35,8 @@ export declare class DocumentList implements OnInit {
folder: FolderEntity;
errorMessage: any;
route: any[];
- documentActions: DocumentActionModel[];
- folderActions: FolderActionModel[];
+ documentActions: ContentActionModel[];
+ folderActions: ContentActionModel[];
canNavigateParent(): boolean;
constructor(_alfrescoService: AlfrescoService);
ngOnInit(): void;
@@ -46,10 +45,9 @@ export declare class DocumentList implements OnInit {
goToRoute(r: any, $event: any): void;
getContentUrl(document: DocumentEntity): string;
getDocumentThumbnailUrl(document: DocumentEntity): string;
- registerDocumentAction(action: DocumentActionModel): void;
- registerFolderAction(action: FolderActionModel): void;
- executeDocumentAction(document: DocumentEntity, action: DocumentActionModel): void;
- executeFolderAction(document: DocumentEntity, action: FolderActionModel): void;
+ registerDocumentAction(action: ContentActionModel): void;
+ registerFolderAction(action: ContentActionModel): void;
+ executeContentAction(document: DocumentEntity, action: ContentActionModel): void;
private getItemPath(item);
private displayFolderContent(path);
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js
index f695336c84..6d0a0e8e64 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js
@@ -104,11 +104,7 @@ System.register(['angular2/core', './alfresco.service'], function(exports_1, con
// do additional registration actions here
this.folderActions.push(action);
};
- DocumentList.prototype.executeDocumentAction = function (document, action) {
- // todo: safety checks
- action.handler(document);
- };
- DocumentList.prototype.executeFolderAction = function (document, action) {
+ DocumentList.prototype.executeContentAction = function (document, action) {
// todo: safety checks
action.handler(document);
};
@@ -155,7 +151,7 @@ System.register(['angular2/core', './alfresco.service'], function(exports_1, con
styles: [
"\n :host .breadcrumb {\n margin-bottom: 4px;\n }\n\n :host .folder-icon {\n float: left;\n margin-right: 10px;\n }\n\n :host .file-icon {\n width: 52px;\n height: 52px;\n float: left;\n margin-right: 10px;\n }\n \n :host .document-header {\n font-size: 24px;\n line-height: 32px;\n }\n \n :host .document-header:hover {\n text-decoration: underline;\n }\n "
],
- template: "\n
\n - \n {{r.name}}\n {{r.name}}\n
\n
\n \n ",
+ template: "\n \n - \n {{r.name}}\n {{r.name}}\n
\n
\n \n ",
providers: [alfresco_service_1.AlfrescoService]
}),
__metadata('design:paramtypes', [alfresco_service_1.AlfrescoService])
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map
index 280a301bac..2b1c53fd5d 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map
@@ -1 +1 @@
-{"version":3,"file":"document-list.component.js","sourceRoot":"","sources":["document-list.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAuHA;gBA4BI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBA3BpC,aAAQ,GAAY,IAAI,CAAC;oBACzB,eAAU,GAAY,KAAK,CAAC;oBACT,oBAAe,GAAW,sBAAsB,CAAC;oBACpE,eAAU,GAAY,IAAI,CAAC;oBAC3B,cAAS,GAAY,IAAI,CAAC;oBAEzB,cAAS,GAAsB,IAAI,mBAAY,EAAE,CAAC;oBAE5D,eAAU,GAAG;wBACT,IAAI,EAAE,kBAAkB;wBACxB,IA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B,CAAoB,EAC9B,UAAA,KAAK,IAAI,OAAA,KAAI,CAAC,YAAY,GAAQ,KAAK,EAA9B,CAA8B,CAC1C,CAAC;gBACV,CAAC;gBA/HD;oBAAC,YAAK,EAAE;;8DAAA;gBACR;oBAAC,YAAK,EAAE;;gEAAA;gBACR;oBAAC,YAAK,CAAC,mBAAmB,CAAC;;qEAAA;gBAC3B;oBAAC,YAAK,EAAE;;gEAAA;gBACR;oBAAC,YAAK,EAAE;;+DAAA;gBAER;oBAAC,aAAM,EAAE;;+DAAA;gBAxGb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,wBAAwB;wBAClC,MAAM,EAAE;4BACJ,uoBAyBC;yBACJ;wBACD,QAAQ,EAAE,u8GA+DT;wBACD,SAAS,EAAE,CAAC,kCAAe,CAAC;qBAC/B,CAAC;;gCAAA;gBAmIF,mBAAC;YAAD,CAAC,AAlID,IAkIC;YAlID,uCAkIC,CAAA"}
\ No newline at end of file
+{"version":3,"file":"document-list.component.js","sourceRoot":"","sources":["document-list.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAsHA;gBA4BI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBA3BpC,aAAQ,GAAY,IAAI,CAAC;oBACzB,eAAU,GAAY,KAAK,CAAC;oBACT,oBAAe,GAAW,sBAAsB,CAAC;oBACpE,eAAU,GAAY,IAAI,CAAC;oBAC3B,cAAS,GAAY,IAAI,CAAC;oBAEzB,cAAS,GAAsB,IAAI,mBAAY,EAAE,CAAC;oBAE5D,eAAU,GAAG;wBACT,IAAI,EAAE,kBAAkB;wBACxB,IAAI,EAAE,uBAAuB;qBAChC,CAAC;oBACF,sBAAiB,GAAW,uBAAuB,CAAC;oBAIpD,UAAK,GAAU,EAAE,CAAC;oBAClB,oBAAe,GAAyB,EAAE,CAAC;oBAC3C,kBAAa,GAAyB,EAAE,CAAC;gBAUtC,CAAC;gBARJ,wCAAiB,GAAjB;oB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xGb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,wBAAwB;wBAClC,MAAM,EAAE;4BACJ,uoBAyBC;yBACJ;wBACD,QAAQ,EAAE,u8GA+DT;wBACD,SAAS,EAAE,CAAC,kCAAe,CAAC;qBAC/B,CAAC;;gCAAA;gBA8HF,mBAAC;YAAD,CAAC,AA7HD,IA6HC;YA7HD,uCA6HC,CAAA"}
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts
index 5b092798f6..1faac8b207 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts
@@ -18,8 +18,7 @@ import {Component, OnInit, Input, Output, EventEmitter} from 'angular2/core';
import {AlfrescoService} from './alfresco.service';
import {FolderEntity} from './core/entities/folder.entity';
import {DocumentEntity} from './core/entities/document.entity';
-import {DocumentActionModel} from './models/document-action.model';
-import {FolderActionModel} from './models/folder-action.model';
+import {ContentActionModel} from './models/content-action.model';
@Component({
selector: 'alfresco-document-list',
@@ -72,7 +71,7 @@ import {FolderActionModel} from './models/folder-action.model';
@@ -93,7 +92,7 @@ import {FolderActionModel} from './models/folder-action.model';
- {{documentAction.title}}
+ {{documentAction.title}}
@@ -136,8 +135,8 @@ export class DocumentList implements OnInit {
errorMessage;
route: any[] = [];
- documentActions: DocumentActionModel[] = [];
- folderActions: FolderActionModel[] = [];
+ documentActions: ContentActionModel[] = [];
+ folderActions: ContentActionModel[] = [];
canNavigateParent(): boolean {
return this.navigate &&
@@ -211,22 +210,17 @@ export class DocumentList implements OnInit {
return this._alfrescoService.getDocumentThumbnailUrl(document);
}
- registerDocumentAction(action: DocumentActionModel) {
+ registerDocumentAction(action: ContentActionModel) {
// do additional registration actions here
this.documentActions.push(action);
}
- registerFolderAction(action: FolderActionModel) {
+ registerFolderAction(action: ContentActionModel) {
// do additional registration actions here
this.folderActions.push(action);
}
- executeDocumentAction(document:DocumentEntity, action: DocumentActionModel) {
- // todo: safety checks
- action.handler(document);
- }
-
- executeFolderAction(document:DocumentEntity, action: FolderActionModel) {
+ executeContentAction(document:DocumentEntity, action: ContentActionModel) {
// todo: safety checks
action.handler(document);
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.d.ts b/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.d.ts
index 36859eac57..659cf15fb1 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.d.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.d.ts
@@ -1,7 +1,7 @@
import { DocumentList } from './document-list.component';
-import { FolderActionModel } from './models/folder-action.model';
+import { ContentActionModel } from './models/content-action.model';
export declare class FolderActionList {
private list;
constructor(list: DocumentList);
- registerAction(action: FolderActionModel): void;
+ registerAction(action: ContentActionModel): void;
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.js.map b/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.js.map
index 1b33245295..1c27db34be 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.js.map
+++ b/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.js.map
@@ -1 +1 @@
-{"version":3,"file":"folder-action-list.component.js","sourceRoot":"","sources":["folder-action-list.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBACI,0BAAoB,IAAkB;oBAAlB,SAAI,GAAJ,IAAI,CAAc;oBAClC,sCAAsC;oBACtC,yCAAyC;gBAC7C,CAAC;gBAED,yCAAc,GAAd,UAAe,MAAyB;oBACpC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;gBAC3C,CAAC;gBAZL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,EAAE;qBACf,CAAC;;oCAAA;gBAUF,uBAAC;YAAD,CAAC,AATD,IASC;YATD,+CASC,CAAA"}
\ No newline at end of file
+{"version":3,"file":"folder-action-list.component.js","sourceRoot":"","sources":["folder-action-list.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBACI,0BAAoB,IAAkB;oBAAlB,SAAI,GAAJ,IAAI,CAAc;oBAClC,sCAAsC;oBACtC,yCAAyC;gBAC7C,CAAC;gBAED,yCAAc,GAAd,UAAe,MAA0B;oBACrC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;gBAC3C,CAAC;gBAZL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,EAAE;qBACf,CAAC;;oCAAA;gBAUF,uBAAC;YAAD,CAAC,AATD,IASC;YATD,+CASC,CAAA"}
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.ts b/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.ts
index d783a59f46..f661767f34 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/folder-action-list.component.ts
@@ -17,7 +17,7 @@
import {Component} from 'angular2/core';
import {DocumentList} from './document-list.component';
-import {FolderActionModel} from './models/folder-action.model';
+import {ContentActionModel} from './models/content-action.model';
@Component({
selector: 'folder-actions',
@@ -29,7 +29,7 @@ export class FolderActionList {
// so that content children can access it
}
- registerAction(action: FolderActionModel) {
+ registerAction(action: ContentActionModel) {
this.list.registerFolderAction(action);
}
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js b/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js
index b2500a7851..363b3a3284 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js
+++ b/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-System.register(['angular2/core', './models/folder-action.model', './folder-action-list.component'], function(exports_1, context_1) {
+System.register(['angular2/core', './models/content-action.model', './folder-action-list.component'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
@@ -26,15 +26,15 @@ System.register(['angular2/core', './models/folder-action.model', './folder-acti
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
- var core_1, folder_action_model_1, folder_action_list_component_1;
+ var core_1, content_action_model_1, folder_action_list_component_1;
var FolderAction;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
- function (folder_action_model_1_1) {
- folder_action_model_1 = folder_action_model_1_1;
+ function (content_action_model_1_1) {
+ content_action_model_1 = content_action_model_1_1;
},
function (folder_action_list_component_1_1) {
folder_action_list_component_1 = folder_action_list_component_1_1;
@@ -52,7 +52,7 @@ System.register(['angular2/core', './models/folder-action.model', './folder-acti
}
FolderAction.prototype.ngOnInit = function () {
var _this = this;
- var model = new folder_action_model_1.FolderActionModel();
+ var model = new content_action_model_1.ContentActionModel();
model.title = this.title;
if (this.handler) {
var defaultHandler = this.defaultHandlers[this.handler];
diff --git a/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js.map b/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js.map
index 638efc960c..92f428b03b 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js.map
+++ b/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.js.map
@@ -1 +1 @@
-{"version":3,"file":"folder-action.component.js","sourceRoot":"","sources":["folder-action.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAOI,sBAAoB,IAAsB;oBAAtB,SAAI,GAAJ,IAAI,CAAkB;oBANjC,UA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AA;gBACR;oBAAC,YAAK,EAAE;;6DAAA;gBACR;oBAAC,aAAM,EAAE;;6DAAA;gBAPb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,eAAe;wBACzB,QAAQ,EAAE,EAAE;qBACf,CAAC;;gCAAA;gBAyCF,mBAAC;YAAD,CAAC,AAxCD,IAwCC;YAxCD,uCAwCC,CAAA"}
\ No newline at end of file
+{"version":3,"file":"folder-action.component.js","sourceRoot":"","sources":["folder-action.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAOI,sBAAoB,IAAsB;oBAAtB,SAAI,GAAJ,IAAI,CAAkB;oBANjC,UAAK,GAAW,QAAQ,CAAC;oBAExB,YAAO,GAAG,IAAI,mBAAY,EAAE,CAAC;oBAE/B,oBAAe,GAA4C,EAAE,CAAC;oBAGlE,qEAAqE;oBACrE,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;oBAC7D,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;gBACjE,CAAC;gBAED,+BAAQ,GAAR;oBAAA,iBAkBC;oBAjBG,IAAI,KAAK,GAAG,IAAI,yCAAkB,EAAE,CAAC;oBACrC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBAEzB,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;wBACf,IAAI,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACxD,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;4BACjB,KAAK,CAAC,OAAO,GAAG,cAAc,CAAC;wBACnC,CAAC;oBACL,CAAC;oBAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;wBACtB,KAAK,CAAC,OAAO,GAAG,UAAC,QAAa;4BAC1B,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC;gCACd,KAAK,EAAE,QAAQ;6BAClB,CAAC,CAAC;wBACP,CAAC,CAAC;oBACN,CAAC;oBAED,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;gBAED,4CAAqB,GAArB,UAAsB,QAAa;oBAC/B,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;gBAC1C,CAAC;gBAED,4CAAqB,GAArB,UAAsB,QAAa;oBAC/B,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;gBAC1C,CAAC;gBAtCD;oBAAC,YAAK,EAAE;;2DAAA;gBACR;oBAAC,YAAK,EAAE;;6DAAA;gBACR;oBAAC,aAAM,EAAE;;6DAAA;gBAPb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,eAAe;wBACzB,QAAQ,EAAE,EAAE;qBACf,CAAC;;gCAAA;gBAyCF,mBAAC;YAAD,CAAC,AAxCD,IAwCC;YAxCD,uCAwCC,CAAA"}
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.ts b/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.ts
index 26ebadce33..f7994d25a6 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/folder-action.component.ts
@@ -16,7 +16,7 @@
*/
import {Component, OnInit, Input, Output, EventEmitter} from 'angular2/core';
-import {FolderActionModel, FolderActionHandler} from './models/folder-action.model';
+import {ContentActionModel, ContentActionHandler} from './models/content-action.model';
import {FolderActionList} from './folder-action-list.component';
@Component({
@@ -28,7 +28,7 @@ export class FolderAction implements OnInit {
@Input() handler: string;
@Output() execute = new EventEmitter();
- private defaultHandlers: { [id: string]: FolderActionHandler; } = {};
+ private defaultHandlers: { [id: string]: ContentActionHandler; } = {};
constructor(private list: FolderActionList) {
// todo: just for dev/demo purposes, to be replaced with real actions
@@ -37,7 +37,7 @@ export class FolderAction implements OnInit {
}
ngOnInit() {
- let model = new FolderActionModel();
+ let model = new ContentActionModel();
model.title = this.title;
if (this.handler) {
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.d.ts b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.d.ts
similarity index 82%
rename from ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.d.ts
rename to ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.d.ts
index 088f73c6d3..b00afb90e0 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.d.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.d.ts
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-export declare class FolderActionModel {
+export declare class ContentActionModel {
title: string;
- handler: FolderActionHandler;
+ handler: ContentActionHandler;
}
-export interface FolderActionHandler {
- (document: any): any;
+export interface ContentActionHandler {
+ (obj: any): any;
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.js b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js
similarity index 75%
rename from ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.js
rename to ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js
index 8f76624704..fc2a5ec1ef 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.js
+++ b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js
@@ -17,17 +17,17 @@
System.register([], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
- var FolderActionModel;
+ var ContentActionModel;
return {
setters:[],
execute: function() {
- FolderActionModel = (function () {
- function FolderActionModel() {
+ ContentActionModel = (function () {
+ function ContentActionModel() {
}
- return FolderActionModel;
+ return ContentActionModel;
}());
- exports_1("FolderActionModel", FolderActionModel);
+ exports_1("ContentActionModel", ContentActionModel);
}
}
});
-//# sourceMappingURL=folder-action.model.js.map
\ No newline at end of file
+//# sourceMappingURL=content-action.model.js.map
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js.map b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js.map
new file mode 100644
index 0000000000..3c6123822d
--- /dev/null
+++ b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"content-action.model.js","sourceRoot":"","sources":["content-action.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH;gBAAA;gBAGA,CAAC;gBAAD,yBAAC;YAAD,CAAC,AAHD,IAGC;YAHD,mDAGC,CAAA"}
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.ts b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.ts
similarity index 83%
rename from ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.ts
rename to ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.ts
index 8c8597d5bf..4fedfab61c 100644
--- a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.ts
+++ b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.ts
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-export class FolderActionModel {
+export class ContentActionModel {
title: string;
- handler: FolderActionHandler;
+ handler: ContentActionHandler;
}
-export interface FolderActionHandler {
- (document: any): any;
+export interface ContentActionHandler {
+ (obj: any): any;
}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.d.ts b/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.d.ts
deleted file mode 100644
index 6382fc45d0..0000000000
--- a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.d.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @license
- * Copyright 2016 Alfresco Software, Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-export declare class DocumentActionModel {
- title: string;
- handler: DocumentActionHandler;
-}
-export interface DocumentActionHandler {
- (document: any): any;
-}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.js b/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.js
deleted file mode 100644
index 48a742a109..0000000000
--- a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * @license
- * Copyright 2016 Alfresco Software, Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-System.register([], function(exports_1, context_1) {
- "use strict";
- var __moduleName = context_1 && context_1.id;
- var DocumentActionModel;
- return {
- setters:[],
- execute: function() {
- DocumentActionModel = (function () {
- function DocumentActionModel() {
- }
- return DocumentActionModel;
- }());
- exports_1("DocumentActionModel", DocumentActionModel);
- }
- }
-});
-//# sourceMappingURL=document-action.model.js.map
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.js.map b/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.js.map
deleted file mode 100644
index 8ba5832c03..0000000000
--- a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"document-action.model.js","sourceRoot":"","sources":["document-action.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH;gBAAA;gBAGA,CAAC;gBAAD,0BAAC;YAAD,CAAC,AAHD,IAGC;YAHD,qDAGC,CAAA"}
\ No newline at end of file
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.ts b/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.ts
deleted file mode 100644
index c70f54d232..0000000000
--- a/ng2-components/ng2-alfresco-documentlist/src/models/document-action.model.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @license
- * Copyright 2016 Alfresco Software, Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export class DocumentActionModel {
- title: string;
- handler: DocumentActionHandler;
-}
-
-export interface DocumentActionHandler {
- (document: any): any;
-}
diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.js.map b/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.js.map
deleted file mode 100644
index 3472419694..0000000000
--- a/ng2-components/ng2-alfresco-documentlist/src/models/folder-action.model.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"folder-action.model.js","sourceRoot":"","sources":["folder-action.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH;gBAAA;gBAGA,CAAC;gBAAD,wBAAC;YAAD,CAAC,AAHD,IAGC;YAHD,iDAGC,CAAA"}
\ No newline at end of file