mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#46 upload component
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
System.register(['./src/components/document-list', './src/components/content-column', './src/components/content-column-list', './src/components/content-action', './src/components/content-action-list', './src/services/folder-actions.service', './src/services/document-actions.service', './src/services/alfresco.service'], function(exports_1, context_1) {
|
||||
System.register(['./src/components/document-list', './src/components/document-action', './src/components/document-action-list', './src/components/quick-document-action', './src/components/quick-document-action-list', './src/components/folder-action', './src/components/folder-action-list', './src/components/quick-folder-action', './src/components/quick-folder-action-list', './src/services/folder-actions.service', './src/services/document-actions.service'], function(exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
var document_list_1, content_column_1, content_column_list_1, content_action_1, content_action_list_1, folder_actions_service_1, document_actions_service_1, alfresco_service_1;
|
||||
var document_list_1, document_action_1, document_action_list_1, quick_document_action_1, quick_document_action_list_1, folder_action_1, folder_action_list_1, quick_folder_action_1, quick_folder_action_list_1, folder_actions_service_1, document_actions_service_1;
|
||||
var DOCUMENT_LIST_DIRECTIVES, DOCUMENT_LIST_PROVIDERS;
|
||||
var exportedNames_1 = {
|
||||
'DOCUMENT_LIST_DIRECTIVES': true,
|
||||
@@ -20,21 +20,37 @@ System.register(['./src/components/document-list', './src/components/content-col
|
||||
document_list_1 = document_list_1_1;
|
||||
exportStar_1(document_list_1_1);
|
||||
},
|
||||
function (content_column_1_1) {
|
||||
content_column_1 = content_column_1_1;
|
||||
exportStar_1(content_column_1_1);
|
||||
function (document_action_1_1) {
|
||||
document_action_1 = document_action_1_1;
|
||||
exportStar_1(document_action_1_1);
|
||||
},
|
||||
function (content_column_list_1_1) {
|
||||
content_column_list_1 = content_column_list_1_1;
|
||||
exportStar_1(content_column_list_1_1);
|
||||
function (document_action_list_1_1) {
|
||||
document_action_list_1 = document_action_list_1_1;
|
||||
exportStar_1(document_action_list_1_1);
|
||||
},
|
||||
function (content_action_1_1) {
|
||||
content_action_1 = content_action_1_1;
|
||||
exportStar_1(content_action_1_1);
|
||||
function (quick_document_action_1_1) {
|
||||
quick_document_action_1 = quick_document_action_1_1;
|
||||
exportStar_1(quick_document_action_1_1);
|
||||
},
|
||||
function (content_action_list_1_1) {
|
||||
content_action_list_1 = content_action_list_1_1;
|
||||
exportStar_1(content_action_list_1_1);
|
||||
function (quick_document_action_list_1_1) {
|
||||
quick_document_action_list_1 = quick_document_action_list_1_1;
|
||||
exportStar_1(quick_document_action_list_1_1);
|
||||
},
|
||||
function (folder_action_1_1) {
|
||||
folder_action_1 = folder_action_1_1;
|
||||
exportStar_1(folder_action_1_1);
|
||||
},
|
||||
function (folder_action_list_1_1) {
|
||||
folder_action_list_1 = folder_action_list_1_1;
|
||||
exportStar_1(folder_action_list_1_1);
|
||||
},
|
||||
function (quick_folder_action_1_1) {
|
||||
quick_folder_action_1 = quick_folder_action_1_1;
|
||||
exportStar_1(quick_folder_action_1_1);
|
||||
},
|
||||
function (quick_folder_action_list_1_1) {
|
||||
quick_folder_action_list_1 = quick_folder_action_list_1_1;
|
||||
exportStar_1(quick_folder_action_list_1_1);
|
||||
},
|
||||
function (folder_actions_service_1_1) {
|
||||
folder_actions_service_1 = folder_actions_service_1_1;
|
||||
@@ -43,35 +59,37 @@ System.register(['./src/components/document-list', './src/components/content-col
|
||||
function (document_actions_service_1_1) {
|
||||
document_actions_service_1 = document_actions_service_1_1;
|
||||
exportStar_1(document_actions_service_1_1);
|
||||
},
|
||||
function (alfresco_service_1_1) {
|
||||
alfresco_service_1 = alfresco_service_1_1;
|
||||
exportStar_1(alfresco_service_1_1);
|
||||
}],
|
||||
execute: function() {
|
||||
exports_1("default",{
|
||||
directives: [
|
||||
document_list_1.DocumentList,
|
||||
content_column_1.ContentColumn,
|
||||
content_column_list_1.ContentColumnList,
|
||||
content_action_1.ContentAction,
|
||||
content_action_list_1.ContentActionList
|
||||
document_action_1.DocumentAction,
|
||||
document_action_list_1.DocumentActionList,
|
||||
quick_document_action_1.QuickDocumentAction,
|
||||
quick_document_action_list_1.QuickDocumentActionList,
|
||||
folder_action_1.FolderAction,
|
||||
folder_action_list_1.FolderActionList,
|
||||
quick_folder_action_1.QuickFolderAction,
|
||||
quick_folder_action_list_1.QuickFolderActionList
|
||||
],
|
||||
providers: [
|
||||
alfresco_service_1.AlfrescoService,
|
||||
folder_actions_service_1.FolderActionsService,
|
||||
document_actions_service_1.DocumentActionsService
|
||||
]
|
||||
});
|
||||
exports_1("DOCUMENT_LIST_DIRECTIVES", DOCUMENT_LIST_DIRECTIVES = [
|
||||
document_list_1.DocumentList,
|
||||
content_column_1.ContentColumn,
|
||||
content_column_list_1.ContentColumnList,
|
||||
content_action_1.ContentAction,
|
||||
content_action_list_1.ContentActionList
|
||||
document_action_1.DocumentAction,
|
||||
document_action_list_1.DocumentActionList,
|
||||
quick_document_action_1.QuickDocumentAction,
|
||||
quick_document_action_list_1.QuickDocumentActionList,
|
||||
folder_action_1.FolderAction,
|
||||
folder_action_list_1.FolderActionList,
|
||||
quick_folder_action_1.QuickFolderAction,
|
||||
quick_folder_action_list_1.QuickFolderActionList
|
||||
]);
|
||||
exports_1("DOCUMENT_LIST_PROVIDERS", DOCUMENT_LIST_PROVIDERS = [
|
||||
alfresco_service_1.AlfrescoService,
|
||||
folder_actions_service_1.FolderActionsService,
|
||||
document_actions_service_1.DocumentActionsService
|
||||
]);
|
||||
|
@@ -1 +1 @@
|
||||
{"version":3,"file":"ng2-alfresco-documentlist.js","sourceRoot":"","sources":["ng2-alfresco-documentlist.ts"],"names":[],"mappings":";;;;QAqCa,wBAAwB,EAQxB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAvBpC,oBAAe;gBACX,UAAU,EAAE;oBACR,4BAAY;oBACZ,8BAAa;oBACb,uCAAiB;oBACjB,8BAAa;oBACb,uCAAiB;iBACpB;gBACD,SAAS,EAAE;oBACP,kCAAe;oBACf,6CAAoB;oBACpB,iDAAsB;iBACzB;aACJ,EAAA;YAEY,sCAAA,wBAAwB,GAAU;gBAC3C,4BAAY;gBACZ,8BAAa;gBACb,uCAAiB;gBACjB,8BAAa;gBACb,uCAAiB;aACpB,CAAA,CAAC;YAEW,qCAAA,uBAAuB,GAAU;gBAC1C,kCAAe;gBACf,6CAAoB;gBACpB,iDAAsB;aACzB,CAAA,CAAC"}
|
||||
{"version":3,"file":"ng2-alfresco-documentlist.js","sourceRoot":"","sources":["ng2-alfresco-documentlist.ts"],"names":[],"mappings":";;;;QA4Ca,wBAAwB,EAYxB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA9BpC,oBAAe;gBACX,UAAU,EAAE;oBACR,4BAAY;oBACZ,gCAAc;oBACd,yCAAkB;oBAClB,2CAAmB;oBACnB,oDAAuB;oBACvB,4BAAY;oBACZ,qCAAgB;oBAChB,uCAAiB;oBACjB,gDAAqB;iBACxB;gBACD,SAAS,EAAE;oBACP,6CAAoB;oBACpB,iDAAsB;iBACzB;aACJ,EAAA;YAEY,sCAAA,wBAAwB,GAAU;gBAC3C,4BAAY;gBACZ,gCAAc;gBACd,yCAAkB;gBAClB,2CAAmB;gBACnB,oDAAuB;gBACvB,4BAAY;gBACZ,qCAAgB;gBAChB,uCAAiB;gBACjB,gDAAqB;aACxB,CAAA,CAAC;YAEW,qCAAA,uBAAuB,GAAU;gBAC1C,6CAAoB;gBACpB,iDAAsB;aACzB,CAAA,CAAC"}
|
@@ -1,20 +1,4 @@
|
||||
/**
|
||||
* @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(['angular2/core', './../services/alfresco.service', './../models/content-column.model'], function(exports_1, context_1) {
|
||||
System.register(['angular2/core', './../services/alfresco.service'], 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,7 +10,7 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var core_1, alfresco_service_1, content_column_model_1;
|
||||
var core_1, alfresco_service_1;
|
||||
var DocumentList;
|
||||
return {
|
||||
setters:[
|
||||
@@ -35,9 +19,6 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
},
|
||||
function (alfresco_service_1_1) {
|
||||
alfresco_service_1 = alfresco_service_1_1;
|
||||
},
|
||||
function (content_column_model_1_1) {
|
||||
content_column_model_1 = content_column_model_1_1;
|
||||
}],
|
||||
execute: function() {
|
||||
DocumentList = (function () {
|
||||
@@ -45,6 +26,8 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
this._alfrescoService = _alfrescoService;
|
||||
this.navigate = true;
|
||||
this.breadcrumb = false;
|
||||
this.thumbnails = true;
|
||||
this.downloads = true;
|
||||
this.itemClick = new core_1.EventEmitter();
|
||||
this.rootFolder = {
|
||||
name: 'Document Library',
|
||||
@@ -52,8 +35,10 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
};
|
||||
this.currentFolderPath = 'swsdp/documentLibrary';
|
||||
this.route = [];
|
||||
this.actions = [];
|
||||
this.columns = [];
|
||||
this.documentActions = [];
|
||||
this.quickDocumentActions = [];
|
||||
this.folderActions = [];
|
||||
this.quickFolderActions = [];
|
||||
}
|
||||
DocumentList.prototype.canNavigateParent = function () {
|
||||
return this.navigate &&
|
||||
@@ -64,28 +49,6 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
this.route.push(this.rootFolder);
|
||||
this.displayFolderContent(this.rootFolder.path);
|
||||
};
|
||||
DocumentList.prototype.ngAfterContentInit = function () {
|
||||
if (!this.columns || this.columns.length === 0) {
|
||||
this.setupDefaultColumns();
|
||||
}
|
||||
};
|
||||
DocumentList.prototype.ngAfterViewChecked = function () {
|
||||
// workaround for MDL issues with dynamic components
|
||||
if (componentHandler) {
|
||||
componentHandler.upgradeAllRegistered();
|
||||
}
|
||||
};
|
||||
DocumentList.prototype.getContentActions = function (target, type) {
|
||||
if (target && type) {
|
||||
var ltarget_1 = target.toLowerCase();
|
||||
var ltype_1 = type.toLowerCase();
|
||||
return this.actions.filter(function (entry) {
|
||||
return entry.target.toLowerCase() === ltarget_1 &&
|
||||
entry.type.toLowerCase() === ltype_1;
|
||||
});
|
||||
}
|
||||
return [];
|
||||
};
|
||||
DocumentList.prototype.onNavigateParentClick = function ($event) {
|
||||
if ($event) {
|
||||
$event.preventDefault();
|
||||
@@ -134,6 +97,11 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
DocumentList.prototype.getDocumentThumbnailUrl = function (document) {
|
||||
return this._alfrescoService.getDocumentThumbnailUrl(document);
|
||||
};
|
||||
DocumentList.prototype.registerDocumentAction = function (action) {
|
||||
if (action) {
|
||||
this.documentActions.push(action);
|
||||
}
|
||||
};
|
||||
DocumentList.prototype.executeContentAction = function (document, action) {
|
||||
// todo: safety checks
|
||||
action.handler(document);
|
||||
@@ -151,18 +119,6 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
.getFolder(path)
|
||||
.subscribe(function (folder) { return _this.folder = folder; }, function (error) { return _this.errorMessage = error; });
|
||||
};
|
||||
DocumentList.prototype.setupDefaultColumns = function () {
|
||||
var thumbnailCol = new content_column_model_1.ContentColumnModel();
|
||||
thumbnailCol.source = '$thumbnail';
|
||||
var nameCol = new content_column_model_1.ContentColumnModel();
|
||||
nameCol.title = 'Name';
|
||||
nameCol.source = 'displayName';
|
||||
nameCol.cssClass = 'full-width name-column';
|
||||
this.columns = [
|
||||
thumbnailCol,
|
||||
nameCol
|
||||
];
|
||||
};
|
||||
__decorate([
|
||||
core_1.Input(),
|
||||
__metadata('design:type', Boolean)
|
||||
@@ -174,17 +130,26 @@ System.register(['angular2/core', './../services/alfresco.service', './../models
|
||||
__decorate([
|
||||
core_1.Input('folder-icon'),
|
||||
__metadata('design:type', String)
|
||||
], DocumentList.prototype, "folderIcon", void 0);
|
||||
], DocumentList.prototype, "folderIconClass", void 0);
|
||||
__decorate([
|
||||
core_1.Input(),
|
||||
__metadata('design:type', Boolean)
|
||||
], DocumentList.prototype, "thumbnails", void 0);
|
||||
__decorate([
|
||||
core_1.Input(),
|
||||
__metadata('design:type', Boolean)
|
||||
], DocumentList.prototype, "downloads", void 0);
|
||||
__decorate([
|
||||
core_1.Output(),
|
||||
__metadata('design:type', core_1.EventEmitter)
|
||||
], DocumentList.prototype, "itemClick", void 0);
|
||||
DocumentList = __decorate([
|
||||
core_1.Component({
|
||||
moduleId: __moduleName,
|
||||
selector: 'alfresco-document-list',
|
||||
styleUrls: ['./document-list.css'],
|
||||
templateUrl: './document-list.html',
|
||||
styles: [
|
||||
"\n :host .breadcrumb {\n margin-bottom: 4px;\n }\n\n :host .folder-icon {\n float: left;\n margin-right: 10px;\n font-size: 4em;\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 <ol *ngIf=\"breadcrumb\" class=\"breadcrumb\">\n <li *ngFor=\"#r of route; #last = last\" [class.active]=\"last\" [ngSwitch]=\"last\">\n <span *ngSwitchWhen=\"true\">{{r.name}}</span>\n <a *ngSwitchDefault href=\"#\" (click)=\"goToRoute(r, $event)\">{{r.name}}</a>\n </li>\n </ol>\n <div *ngIf=\"folder\" class=\"list-group\">\n <a href=\"#\" *ngIf=\"canNavigateParent()\" (click)=\"onNavigateParentClick($event)\" class=\"list-group-item\">\n <span class=\"glyphicon glyphicon-level-up\"></span> ...\n </a>\n <a href=\"#\" *ngFor=\"#document of folder.items\" class=\"list-group-item clearfix\">\n \n <!-- folder actions -->\n <div *ngIf=\"document.isFolder && folderActions.length > 0\" class=\"btn-group pull-right\">\n <button type=\"button\" class=\"btn btn-default\"\n *ngFor=\"#qfa of quickFolderActions\" (click)=\"executeContentAction(document, qfa)\">\n <span *ngIf=\"qfa.icon\" class=\"{{qfa.icon}}\"></span>\n <span *ngIf=\"qfa.title\">{{qfa.title}}</span>\n </button>\n <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" \n aria-haspopup=\"true\" aria-expanded=\"false\">\n Actions <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li *ngFor=\"#folderAction of folderActions\">\n <a href=\"#\" (click)=\"executeContentAction(document, folderAction)\">{{folderAction.title}}</a>\n </li>\n </ul>\n </div>\n \n <!-- document actions -->\n <div *ngIf=\"!document.isFolder\" class=\"btn-group pull-right\">\n <button type=\"button\" class=\"btn btn-default\"\n *ngFor=\"#qda of quickDocumentActions\" (click)=\"executeContentAction(document, qda)\">\n <span *ngIf=\"qda.icon\" class=\"{{qda.icon}}\"></span>\n <span *ngIf=\"qda.title\">{{qda.title}}</span>\n </button>\n <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" \n aria-haspopup=\"true\" aria-expanded=\"false\">\n Actions <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li>\n <a *ngIf=\"downloads && !document.isFolder\" \n href=\"{{getContentUrl(document)}}\" \n download target=\"_blank\">\n Download\n </a>\n </li>\n <li *ngIf=\"documentActions.length > 0\" role=\"separator\" class=\"divider\"></li>\n <li *ngFor=\"#documentAction of documentActions\">\n <a href=\"#\" (click)=\"executeContentAction(document, documentAction)\">{{documentAction.title}}</a>\n </li>\n </ul>\n </div>\n \n <i *ngIf=\"thumbnails && document.isFolder\" class=\"folder-icon {{folderIconClass || 'glyphicon glyphicon-folder-close'}}\"\n (click)=\"onItemClick(document, $event)\">\n </i>\n <img *ngIf=\"thumbnails && !document.isFolder\" class=\"file-icon\"\n alt=\"\"\n src=\"{{getDocumentThumbnailUrl(document)}}\"\n (click)=\"onItemClick(document, $event)\">\n <h1 class=\"list-group-item-heading document-header\" (click)=\"onItemClick(document, $event)\" >\n {{document.displayName}}\n </h1>\n <p class=\"list-group-item-text\">{{document.description}}</p>\n <small>\n Modified {{document.modifiedOn}} by {{document.modifiedBy}}\n </small>\n </a>\n </div>\n ",
|
||||
providers: [alfresco_service_1.AlfrescoService]
|
||||
}),
|
||||
__metadata('design:paramtypes', [alfresco_service_1.AlfrescoService])
|
||||
|
@@ -1 +1 @@
|
||||
{"version":3,"file":"document-list.js","sourceRoot":"","sources":["document-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0BH;gBA2BI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBA1BpC,aAAQ,GAAY,IAAI,CAAC;oBACzB,eAAU,GAAY,KAAK,CAAC;oBAG3B,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;oBAElB,YAAO,GAAyB,EAAE,CAAC;oBACnC,YAAO,GAAyB,EAAE,CAAC;gBAUhC,CAAC;gBARJ,wCAAiB,GAAjB;oBACI,MAAM,CAAC,IAAI,CAAC,QAAQ;wBAChB,CAA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AAC,iBAAiB,GAAG,IAAI,CAAC;oBAC9B,IAAI,CAAC,gBAAgB;yBAChB,SAAS,CAAC,IAAI,CAAC;yBACf,SAAS,CACN,UAAA,MAAM,IAAI,OAAA,KAAI,CAAC,MAAM,GAAG,MAAM,EAApB,CAAoB,EAC9B,UAAA,KAAK,IAAI,OAAA,KAAI,CAAC,YAAY,GAAQ,KAAK,EAA9B,CAA8B,CAC1C,CAAC;gBACV,CAAC;gBAzHD;oBAAC,YAAK,EAAE;;8DAAA;gBACR;oBAAC,YAAK,EAAE;;gEAAA;gBACR;oBAAC,YAAK,CAAC,aAAa,CAAC;;qEAAA;gBACrB;oBAAC,YAAK,EAAE;;gEAAA;gBACR;oBAAC,YAAK,EAAE;;+DAAA;gBAER;oBAAC,aAAM,EAAE;;+DAAA;gBAnHb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,wBAAwB;wBAClC,MAAM,EAAE;4BACJ,wqBA0BC;yBACJ;wBACD,QAAQ,EAAE,0yIAyET;wBACD,SAAS,EAAE,CAAC,kCAAe,CAAC;qBAC/B,CAAC;;gCAAA;gBA6HF,mBAAC;YAAD,CAAC,AA5HD,IA4HC;YA5HD,uCA4HC,CAAA"}
|
@@ -1 +1 @@
|
||||
{"version":3,"file":"content-action.model.js","sourceRoot":"","sources":["content-action.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH;gBAAA;gBAMA,CAAC;gBAAD,yBAAC;YAAD,CAAC,AAND,IAMC;YAND,mDAMC,CAAA"}
|
||||
{"version":3,"file":"content-action.model.js","sourceRoot":"","sources":["content-action.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH;gBAAA;gBAIA,CAAC;gBAAD,yBAAC;YAAD,CAAC,AAJD,IAIC;YAJD,mDAIC,CAAA"}
|
@@ -67,7 +67,7 @@ System.register(['angular2/core', 'angular2/http', 'rxjs/Observable', '../../../
|
||||
AlfrescoService.prototype.getFolder = function (folder) {
|
||||
var headers = new http_1.Headers({
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': this.settings.getAuthToken()
|
||||
'Authorization': 'Basic ' + btoa('admin:admin')
|
||||
});
|
||||
var options = new http_1.RequestOptions({ headers: headers });
|
||||
return this.http
|
||||
|
@@ -1 +1 @@
|
||||
{"version":3,"file":"alfresco.service.js","sourceRoot":"","sources":["alfresco.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YASH;gBACI,yBACY,IAAU,EACV,QAAiC;oBADjC,SAAI,GAAJ,IAAI,CAAM;oBACV,aAAQ,GAAR,QAAQ,CAAyB;oBAKrC,UAAK,GAAW,uBAAuB,CAAC;oBACxC,iBAAY,GAAW,sDAAsD,CAAC;oBAJlF,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC;gBAC/B,CAAC;gBAKD,sBAAW,iCAAI;yBAAf;wBACI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;oBACtB,CAAC;yBAED,UAAgB,KAAY;wBACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;oBACvB,CAAC;;;mBAJA;gBAMO,oCAAU,GAAlB;oBACI,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC;gBACzC,CAAC;gBAED,mCAAS,GAAT,UAAU,MAAc;oBACpB,IAAI,OAAO,GAAG,IAAI,cAAO,CAAC;wBACtB,cAAc,EAAE,kBAAkB;wBAClC,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;qBAChD,CAAC,CAAC;oBACH,IAAI,OAAO,GAAG,IAAI,qBAAc,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;oBACvD,MAAM,CAAC,IAAI,CAAC,IAAI;yBACX,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,MAAM,EAAE,OAAO,CAAC;yBACxC,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,GAAG,oBAAoB,GAAG,QAAQ,CAAC,UAAU,CAAC;gBACnE,CAAC;gBAEO,qCAAW,GAAnB,UAAqB,KAAe;oBAChC,mFAAmF;oBACnF,4CAA4C;oBAC5C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrB,MAAM,CAAC,uBAAU,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,cAAc,CAAC,CAAC;gBAClE,CAAC;gBApDL;oBAAC,iBAAU,EAAE;;mCAAA;gBAqDb,sBAAC;YAAD,CAAC,AApDD,IAoDC;YApDD,6CAoDC,CAAA"}
|
@@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
System.register(['angular2/core', './alfresco.service'], function(exports_1, context_1) {
|
||||
System.register(['angular2/core'], 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,61 +26,33 @@ System.register(['angular2/core', './alfresco.service'], function(exports_1, con
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var core_1, alfresco_service_1;
|
||||
var core_1;
|
||||
var DocumentActionsService;
|
||||
return {
|
||||
setters:[
|
||||
function (core_1_1) {
|
||||
core_1 = core_1_1;
|
||||
},
|
||||
function (alfresco_service_1_1) {
|
||||
alfresco_service_1 = alfresco_service_1_1;
|
||||
}],
|
||||
execute: function() {
|
||||
DocumentActionsService = (function () {
|
||||
function DocumentActionsService(_alfrescoService) {
|
||||
this._alfrescoService = _alfrescoService;
|
||||
function DocumentActionsService() {
|
||||
this.handlers = {};
|
||||
this.setupActionHandlers();
|
||||
// todo: just for dev/demo purposes, to be replaced with real actions
|
||||
this.handlers['system1'] = this.handleStandardAction1;
|
||||
this.handlers['system2'] = this.handleStandardAction2;
|
||||
}
|
||||
DocumentActionsService.prototype.getHandler = function (key) {
|
||||
if (key) {
|
||||
var lkey = key.toLowerCase();
|
||||
return this.handlers[lkey];
|
||||
}
|
||||
return null;
|
||||
return this.handlers[key];
|
||||
};
|
||||
DocumentActionsService.prototype.setHandler = function (key, handler) {
|
||||
if (key) {
|
||||
var lkey = key.toLowerCase();
|
||||
this.handlers[lkey] = handler;
|
||||
}
|
||||
};
|
||||
DocumentActionsService.prototype.setupActionHandlers = function () {
|
||||
this.handlers['download'] = this.download.bind(this);
|
||||
// todo: just for dev/demo purposes, to be replaced with real actions
|
||||
this.handlers['system1'] = this.handleStandardAction1.bind(this);
|
||||
this.handlers['system2'] = this.handleStandardAction2.bind(this);
|
||||
};
|
||||
DocumentActionsService.prototype.handleStandardAction1 = function (obj) {
|
||||
DocumentActionsService.prototype.handleStandardAction1 = function (document) {
|
||||
window.alert('standard document action 1');
|
||||
};
|
||||
DocumentActionsService.prototype.handleStandardAction2 = function (obj) {
|
||||
DocumentActionsService.prototype.handleStandardAction2 = function (document) {
|
||||
window.alert('standard document action 2');
|
||||
};
|
||||
DocumentActionsService.prototype.download = function (obj) {
|
||||
if (obj && !obj.isFolder) {
|
||||
var link = document.createElement('a');
|
||||
document.body.appendChild(link);
|
||||
link.setAttribute('download', 'download');
|
||||
link.href = this._alfrescoService.getContentUrl(obj);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
}
|
||||
};
|
||||
DocumentActionsService = __decorate([
|
||||
core_1.Injectable(),
|
||||
__metadata('design:paramtypes', [alfresco_service_1.AlfrescoService])
|
||||
__metadata('design:paramtypes', [])
|
||||
], DocumentActionsService);
|
||||
return DocumentActionsService;
|
||||
}());
|
||||
|
@@ -1 +1 @@
|
||||
{"version":3,"file":"document-actions.service.js","sourceRoot":"","sources":["document-actions.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAOH;gBAGI,gCA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KAAK,CAAC,4BAA4B,CAAC,CAAC;gBAC/C,CAAC;gBApBL;oBAAC,iBAAU,EAAE;;0CAAA;gBAqBb,6BAAC;YAAD,CAAC,AApBD,IAoBC;YApBD,2DAoBC,CAAA"}
|
@@ -38,21 +38,11 @@ System.register(['angular2/core'], function(exports_1, context_1) {
|
||||
function FolderActionsService() {
|
||||
this.handlers = {};
|
||||
// todo: just for dev/demo purposes, to be replaced with real actions
|
||||
this.handlers['system1'] = this.handleStandardAction1.bind(this);
|
||||
this.handlers['system2'] = this.handleStandardAction2.bind(this);
|
||||
this.handlers['system1'] = this.handleStandardAction1;
|
||||
this.handlers['system2'] = this.handleStandardAction2;
|
||||
}
|
||||
FolderActionsService.prototype.getHandler = function (key) {
|
||||
if (key) {
|
||||
var lkey = key.toLowerCase();
|
||||
return this.handlers[lkey];
|
||||
}
|
||||
return null;
|
||||
};
|
||||
FolderActionsService.prototype.setHandler = function (key, handler) {
|
||||
if (key) {
|
||||
var lkey = key.toLowerCase();
|
||||
this.handlers[lkey] = handler;
|
||||
}
|
||||
return this.handlers[key];
|
||||
};
|
||||
FolderActionsService.prototype.handleStandardAction1 = function (document) {
|
||||
window.alert('standard folder action 1');
|
||||
|
@@ -1 +1 @@
|
||||
{"version":3,"file":"folder-actions.service.js","sourceRoot":"","sources":["folder-actions.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;YAMH;gBAGI;oBAFQ,aAAQ,GAA4C,EAAE,CAAC;oBAG3D,qEAAqE;oBACrE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACjE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACrE,CAAC;gBAED,yCAAU,GAAV,UAAW,GAAW;oBAClB,EAAE,CAAC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