diff --git a/ng2-components/ng2-alfresco-core/tslint.json b/ng2-components/ng2-alfresco-core/tslint.json new file mode 100644 index 0000000000..dde69dd07e --- /dev/null +++ b/ng2-components/ng2-alfresco-core/tslint.json @@ -0,0 +1,119 @@ +{ + "rules": { + "align": [ + true, + "parameters", + "statements" + ], + "ban": false, + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "curly": true, + "eofline": true, + "forin": true, + "indent": [ + true, + "spaces" + ], + "interface-name": false, + "jsdoc-format": true, + "label-position": true, + "label-undefined": true, + "max-line-length": [ + true, + 140 + ], + "member-ordering": [ + true, + "static-before-instance", + "variables-before-functions" + ], + "no-any": false, + "no-arg": true, + "no-bitwise": false, + "no-conditional-assignment": true, + "no-consecutive-blank-lines": false, + "no-console": [ + true, + "debug", + "info", + "time", + "timeEnd", + "trace" + ], + "no-construct": true, + "no-constructor-vars": false, + "no-debugger": true, + "no-duplicate-key": true, + "no-duplicate-variable": true, + "no-empty": false, + "no-eval": true, + "no-inferrable-types": false, + "no-internal-module": true, + "no-require-imports": true, + "no-shadowed-variable": true, + "no-switch-case-fall-through": true, + "no-trailing-whitespace": true, + "no-unreachable": true, + "no-unused-expression": true, + "no-unused-variable": true, + "no-use-before-declare": true, + "no-var-keyword": true, + "no-var-requires": true, + "object-literal-sort-keys": false, + "one-line": [ + true, + "check-open-brace", + "check-catch", + "check-else", + "check-whitespace" + ], + "quotemark": [ + true, + "single", + "avoid-escape" + ], + "radix": true, + "semicolon": true, + "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": "never", + "singleline": "never" + } + ], + "triple-equals": [ + true, + "allow-null-check" + ], + "typedef": false, + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "use-strict": false, + "variable-name": [ + true, + "check-format", + "allow-leading-underscore", + "ban-keywords" + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator" + ] + } +} diff --git a/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js deleted file mode 100644 index e4c2d7309e..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js +++ /dev/null @@ -1,81 +0,0 @@ -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) { - "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_DIRECTIVES, DOCUMENT_LIST_PROVIDERS; - var exportedNames_1 = { - 'DOCUMENT_LIST_DIRECTIVES': true, - 'DOCUMENT_LIST_PROVIDERS': true - }; - function exportStar_1(m) { - var exports = {}; - for(var n in m) { - if (n !== "default"&& !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n]; - } - exports_1(exports); - } - return { - setters:[ - function (document_list_1_1) { - 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 (content_column_list_1_1) { - content_column_list_1 = content_column_list_1_1; - exportStar_1(content_column_list_1_1); - }, - function (content_action_1_1) { - content_action_1 = content_action_1_1; - exportStar_1(content_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 (folder_actions_service_1_1) { - folder_actions_service_1 = folder_actions_service_1_1; - exportStar_1(folder_actions_service_1_1); - }, - 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 - ], - 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 - ]); - exports_1("DOCUMENT_LIST_PROVIDERS", DOCUMENT_LIST_PROVIDERS = [ - alfresco_service_1.AlfrescoService, - folder_actions_service_1.FolderActionsService, - document_actions_service_1.DocumentActionsService - ]); - } - } -}); -//# sourceMappingURL=ng2-alfresco-documentlist.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js.map b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js.map deleted file mode 100644 index 30dd8f10e1..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.ts b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.ts index e6beb28e36..e980c553ae 100644 --- a/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.ts +++ b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.ts @@ -1,12 +1,29 @@ -import {DocumentList} from './src/components/document-list'; -import {ContentColumn} from './src/components/content-column'; -import {ContentColumnList} from './src/components/content-column-list'; -import {ContentAction} from './src/components/content-action'; -import {ContentActionList} from './src/components/content-action-list'; +/*! + * @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. + */ -import {FolderActionsService} from './src/services/folder-actions.service'; -import {DocumentActionsService} from './src/services/document-actions.service'; -import {AlfrescoService} from './src/services/alfresco.service'; +import { DocumentList } from './src/components/document-list'; +import { ContentColumn } from './src/components/content-column'; +import { ContentColumnList } from './src/components/content-column-list'; +import { ContentAction } from './src/components/content-action'; +import { ContentActionList } from './src/components/content-action-list'; + +import { FolderActionsService } from './src/services/folder-actions.service'; +import { DocumentActionsService } from './src/services/document-actions.service'; +import { AlfrescoService } from './src/services/alfresco.service'; // components export * from './src/components/document-list'; @@ -33,7 +50,7 @@ export default { FolderActionsService, DocumentActionsService ] -} +}; export const DOCUMENT_LIST_DIRECTIVES: [any] = [ DocumentList, diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.js b/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.js deleted file mode 100644 index c550bf6762..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.js +++ /dev/null @@ -1,66 +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(['angular2/core', './document-list'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - 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_list_1; - var ContentActionList; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }, - function (document_list_1_1) { - document_list_1 = document_list_1_1; - }], - execute: function() { - ContentActionList = (function () { - function ContentActionList(documentList) { - this.documentList = documentList; - } - /** - * Registers action handler within the parent document list component. - * @param action Action model to register. - */ - ContentActionList.prototype.registerAction = function (action) { - if (this.documentList && action) { - this.documentList.actions.push(action); - } - }; - ContentActionList = __decorate([ - core_1.Component({ - selector: 'content-actions', - template: '' - }), - __metadata('design:paramtypes', [document_list_1.DocumentList]) - ], ContentActionList); - return ContentActionList; - }()); - exports_1("ContentActionList", ContentActionList); - } - } -}); -//# sourceMappingURL=content-action-list.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.js.map b/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.js.map deleted file mode 100644 index df62b03d69..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"content-action-list.js","sourceRoot":"","sources":["content-action-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAEI,2BACY,YAA0B;oBAA1B,iBAAY,GAAZ,YAAY,CAAc;gBACtC,CAAC;gBAED;;;mBAGG;gBACH,0CAAc,GAAd,UAAe,MAA0B;oBACrC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,MAAM,CAAC,CAAC,CAAC;wBAC9B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBAC3C,CAAC;gBACL,CAAC;gBAlBL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,iBAAiB;wBAC3B,QAAQ,EAAE,EAAE;qBACf,CAAC;;qCAAA;gBAgBF,wBAAC;YAAD,CAAC,AAfD,IAeC;YAfD,iDAeC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-action.js b/ng2-components/ng2-alfresco-documentlist/src/components/content-action.js deleted file mode 100644 index aed977affa..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-action.js +++ /dev/null @@ -1,131 +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(['angular2/core', './../models/content-action.model', './content-action-list', '../services/document-actions.service', '../services/folder-actions.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) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var core_1, content_action_model_1, content_action_list_1, document_actions_service_1, folder_actions_service_1; - var ContentAction; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }, - function (content_action_model_1_1) { - content_action_model_1 = content_action_model_1_1; - }, - function (content_action_list_1_1) { - content_action_list_1 = content_action_list_1_1; - }, - function (document_actions_service_1_1) { - document_actions_service_1 = document_actions_service_1_1; - }, - function (folder_actions_service_1_1) { - folder_actions_service_1 = folder_actions_service_1_1; - }], - execute: function() { - ContentAction = (function () { - function ContentAction(list, documentActions, folderActions) { - this.list = list; - this.documentActions = documentActions; - this.folderActions = folderActions; - this.title = 'Action'; - this.execute = new core_1.EventEmitter(); - } - ContentAction.prototype.ngOnInit = function () { - var _this = this; - var model = new content_action_model_1.ContentActionModel(); - model.type = this.type; - model.title = this.title; - model.icon = this.icon; - model.target = this.target; - if (this.handler) { - model.handler = this.getSystemHandler(this.target, this.handler); - } - else if (this.execute) { - model.handler = function (document) { - _this.execute.emit({ - value: document - }); - }; - } - this.list.registerAction(model); - }; - ContentAction.prototype.getSystemHandler = function (target, name) { - if (target) { - var ltarget = target.toLowerCase(); - if (ltarget === 'document') { - if (this.documentActions) { - return this.documentActions.getHandler(name); - } - return null; - } - if (ltarget === 'folder') { - if (this.folderActions) { - return this.folderActions.getHandler(name); - } - return null; - } - } - return null; - }; - __decorate([ - core_1.Input(), - __metadata('design:type', String) - ], ContentAction.prototype, "title", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', String) - ], ContentAction.prototype, "icon", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', String) - ], ContentAction.prototype, "handler", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', String) - ], ContentAction.prototype, "type", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', String) - ], ContentAction.prototype, "target", void 0); - __decorate([ - core_1.Output(), - __metadata('design:type', Object) - ], ContentAction.prototype, "execute", void 0); - ContentAction = __decorate([ - core_1.Component({ - selector: 'content-action', - template: '' - }), - __metadata('design:paramtypes', [content_action_list_1.ContentActionList, document_actions_service_1.DocumentActionsService, folder_actions_service_1.FolderActionsService]) - ], ContentAction); - return ContentAction; - }()); - exports_1("ContentAction", ContentAction); - } - } -}); -//# sourceMappingURL=content-action.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-action.js.map b/ng2-components/ng2-alfresco-documentlist/src/components/content-action.js.map deleted file mode 100644 index b18caaa2f3..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-action.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"content-action.js","sourceRoot":"","sources":["content-action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAaH;gBAoBI,uBACY,IAAuB,EACvB,eAAuC,EACvC,aAAmC;oBAFnC,SAAI,GAAJ,IAAI,CAAmB;oBACvB,oBAAe,GAAf,eAAe,CAAwB;oBACvC,kBAAa,GAAb,aAAa,CAAsB;oBApB/C,UAAK,GAAW,QAAQ,CAAC;oBAezB,YAAO,GAAG,IAAI,mBAAY,EAAE,CAAC;gBAM7B,CAAC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AAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC;4BACvB,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;gCACrB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;4BAC/C,CAAC;4BACD,MAAM,CAAC,IAAI,CAAC;wBAChB,CAAC;oBACL,CAAC;oBACD,MAAM,CAAC,IAAI,CAAC;gBAChB,CAAC;gBA/DD;oBAAC,YAAK,EAAE;;4DAAA;gBAGR;oBAAC,YAAK,EAAE;;2DAAA;gBAGR;oBAAC,YAAK,EAAE;;8DAAA;gBAGR;oBAAC,YAAK,EAAE;;2DAAA;gBAGR;oBAAC,YAAK,EAAE;;6DAAA;gBAGR;oBAAC,aAAM,EAAE;;8DAAA;gBArBb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,EAAE;qBACf,CAAC;;iCAAA;gBAmEF,oBAAC;YAAD,CAAC,AAlED,IAkEC;YAlED,yCAkEC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-column-list.js b/ng2-components/ng2-alfresco-documentlist/src/components/content-column-list.js deleted file mode 100644 index e04b3c08ef..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-column-list.js +++ /dev/null @@ -1,66 +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(['angular2/core', './document-list'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - 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_list_1; - var ContentColumnList; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }, - function (document_list_1_1) { - document_list_1 = document_list_1_1; - }], - execute: function() { - ContentColumnList = (function () { - function ContentColumnList(documentList) { - this.documentList = documentList; - } - /** - * Registers column model within the parent document list component. - * @param column Column definition model to register. - */ - ContentColumnList.prototype.registerColumn = function (column) { - if (this.documentList && column) { - this.documentList.columns.push(column); - } - }; - ContentColumnList = __decorate([ - core_1.Component({ - selector: 'content-columns', - template: '' - }), - __metadata('design:paramtypes', [document_list_1.DocumentList]) - ], ContentColumnList); - return ContentColumnList; - }()); - exports_1("ContentColumnList", ContentColumnList); - } - } -}); -//# sourceMappingURL=content-column-list.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-column-list.js.map b/ng2-components/ng2-alfresco-documentlist/src/components/content-column-list.js.map deleted file mode 100644 index ec327aea97..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-column-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"content-column-list.js","sourceRoot":"","sources":["content-column-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAEI,2BACY,YAA0B;oBAA1B,iBAAY,GAAZ,YAAY,CAAc;gBACtC,CAAC;gBAED;;;mBAGG;gBACH,0CAAc,GAAd,UAAe,MAA0B;oBACrC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,MAAM,CAAC,CAAC,CAAC;wBAC9B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBAC3C,CAAC;gBACL,CAAC;gBAlBL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,iBAAiB;wBAC3B,QAAQ,EAAE,EAAE;qBACf,CAAC;;qCAAA;gBAgBF,wBAAC;YAAD,CAAC,AAfD,IAeC;YAfD,iDAeC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.js b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.js deleted file mode 100644 index ed6cd83cce..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.js +++ /dev/null @@ -1,90 +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(['angular2/core', './content-column-list', './../models/content-column.model'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var core_1, content_column_list_1, content_column_model_1; - var ContentColumn; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }, - function (content_column_list_1_1) { - content_column_list_1 = content_column_list_1_1; - }, - function (content_column_model_1_1) { - content_column_model_1 = content_column_model_1_1; - }], - execute: function() { - ContentColumn = (function () { - function ContentColumn(list) { - this.list = list; - this.title = ''; - } - ContentColumn.prototype.ngOnInit = function () { - var model = new content_column_model_1.ContentColumnModel(); - model.title = this.title; - model.srTitle = this.srTitle; - model.source = this.source; - model.cssClass = this.cssClass; - if (!model.srTitle && model.source === '$thumbnail') { - model.srTitle = 'Thumbnail'; - } - if (this.list) { - this.list.registerColumn(model); - } - }; - __decorate([ - core_1.Input(), - __metadata('design:type', String) - ], ContentColumn.prototype, "title", void 0); - __decorate([ - core_1.Input('sr-title'), - __metadata('design:type', String) - ], ContentColumn.prototype, "srTitle", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', String) - ], ContentColumn.prototype, "source", void 0); - __decorate([ - core_1.Input('class'), - __metadata('design:type', String) - ], ContentColumn.prototype, "cssClass", void 0); - ContentColumn = __decorate([ - core_1.Component({ - selector: 'content-column', - template: '' - }), - __metadata('design:paramtypes', [content_column_list_1.ContentColumnList]) - ], ContentColumn); - return ContentColumn; - }()); - exports_1("ContentColumn", ContentColumn); - } - } -}); -//# sourceMappingURL=content-column.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.js.map b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.js.map deleted file mode 100644 index 511410ad0c..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"content-column.js","sourceRoot":"","sources":["content-column.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUH;gBAiBI,uBACY,IAAuB;oBAAvB,SAAI,GAAJ,IAAI,CAAmB;oBAfnC,UAAK,GAAW,EAAE,CAAC;gBAgBnB,CAAC;gBAED,gCAAQ,GAAR;oBACI,IAAI,KAAK,GAAG,IAAI,yCAAkB,EAAE,CAAC;oBACrC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBACzB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;oBAC7B,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;oBAC3B,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;oBAE/B,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC;wBAClD,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC;oBAChC,CAAC;oBAED,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;wBACZ,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;oBACpC,CAAC;gBACL,CAAC;gBAjCD;oBAAC,YAAK,EAAE;;4DAAA;gBAMR;oBAAC,YAAK,CAAC,UAAU,CAAC;;8DAAA;gBAGlB;oBAAC,YAAK,EAAE;;6DAAA;gBAGR;oBAAC,YAAK,CAAC,OAAO,CAAC;;+DAAA;gBAlBnB;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,EAAE;qBACf,CAAC;;iCAAA;gBAqCF,oBAAC;YAAD,CAAC,AApCD,IAoCC;YApCD,yCAoCC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts index cc62d35db2..3f3d3c4226 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts @@ -15,9 +15,9 @@ * limitations under the License. */ -import {Component, OnInit, Input} from 'angular2/core'; -import {ContentColumnList} from './content-column-list' -import {ContentColumnModel} from './../models/content-column.model'; +import { Component, OnInit, Input } from 'angular2/core'; +import { ContentColumnList } from './content-column-list'; +import { ContentColumnModel } from './../models/content-column.model'; @Component({ selector: 'content-column', @@ -40,8 +40,7 @@ export class ContentColumn implements OnInit { @Input('class') cssClass: string; - constructor( - private list: ContentColumnList) { + constructor(private list: ContentColumnList) { } ngOnInit() { diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.d.ts b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.d.ts deleted file mode 100644 index 05df7e227a..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.d.ts +++ /dev/null @@ -1,112 +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. - */ -import { OnInit, EventEmitter, AfterContentInit, AfterViewChecked } from 'angular2/core'; -import { AlfrescoService } from './../services/alfresco.service'; -import { MinimalNodeEntity, NodePaging } from './../models/document-library.model'; -import { ContentActionModel } from './../models/content-action.model'; -import { ContentColumnModel } from './../models/content-column.model'; -export declare class DocumentList implements OnInit, AfterViewChecked, AfterContentInit { - private _alfrescoService; - navigate: boolean; - breadcrumb: boolean; - folderIcon: string; - itemClick: EventEmitter; - rootFolder: { - name: string; - path: string; - }; - currentFolderPath: string; - folder: NodePaging; - errorMessage: any; - route: any[]; - actions: ContentActionModel[]; - columns: ContentColumnModel[]; - /** - * Determines whether navigation to parent folder is available. - * @returns {boolean} - */ - canNavigateParent(): boolean; - constructor(_alfrescoService: AlfrescoService); - ngOnInit(): void; - ngAfterContentInit(): void; - ngAfterViewChecked(): void; - /** - * Get a list of content actions based on target and type. - * @param target Target to filter actions by. - * @param type Type to filter actions by. - * @returns {ContentActionModel[]} List of actions filtered by target and type. - */ - getContentActions(target: string, type: string): ContentActionModel[]; - /** - * Invoked when 'parent folder' element is clicked. - * @param e DOM event - */ - onNavigateParentClick(e: any): void; - /** - * Invoked when list row is clicked. - * @param item Underlying node item - * @param e DOM event (optional) - */ - onItemClick(item: MinimalNodeEntity, e?: any): void; - /** - * Invoked when a breadcrumb route is clicked. - * @param r Route to navigate to - * @param e DOM event - */ - goToRoute(r: any, e: any): void; - /** - * Gets content URL for the given node. - * @param node Node to get URL for. - * @returns {string} URL address. - */ - getContentUrl(node: MinimalNodeEntity): string; - /** - * Gets thumbnail URL for the given document node. - * @param node Node to get URL for. - * @returns {string} URL address. - */ - getDocumentThumbnailUrl(node: MinimalNodeEntity): string; - /** - * Invoked when executing content action for a document or folder. - * @param node Node to be the context of the execution. - * @param action Action to be executed against the context. - */ - executeContentAction(node: MinimalNodeEntity, action: ContentActionModel): void; - /** - * Loads and displays folder content - * @param path Node path - */ - displayFolderContent(path: any): void; - /** - * Gets a path for a given node. - * @param node - * @returns {string} - */ - getNodePath(node: MinimalNodeEntity): string; - /** - * Gets a value from an object by composed key - * documentList.getObjectValue({ item: { nodeType: 'cm:folder' }}, 'item.nodeType') ==> 'cm:folder' - * @param target - * @param key - * @returns {string} - */ - getObjectValue(target: any, key: string): any; - /** - * Creates a set of predefined columns. - */ - setupDefaultColumns(): void; -} diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.js b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.js deleted file mode 100644 index a3e86a2456..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.js +++ /dev/null @@ -1,293 +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(['angular2/core', './../services/alfresco.service', './../models/content-column.model'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - 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 DocumentList; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }, - 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 () { - function DocumentList(_alfrescoService) { - this._alfrescoService = _alfrescoService; - this.navigate = true; - this.breadcrumb = false; - this.itemClick = new core_1.EventEmitter(); - this.folderClick = new core_1.EventEmitter(); - this.rootFolder = { - name: 'Document Library', - path: 'Sites/swsdp/documentLibrary' - }; - this.currentFolderPath = 'swsdp/documentLibrary'; - this.route = []; - this.actions = []; - this.columns = []; - } - /** - * Determines whether navigation to parent folder is available. - * @returns {boolean} - */ - DocumentList.prototype.canNavigateParent = function () { - return this.navigate && !this.breadcrumb && - this.currentFolderPath !== this.rootFolder.path; - }; - DocumentList.prototype.ngOnInit = function () { - 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(); - } - }; - /** - * Get a list of content actions based on target and type. - * @param target Target to filter actions by. - * @param type Type to filter actions by. - * @returns {ContentActionModel[]} List of actions filtered by target and type. - */ - 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 []; - }; - /** - * Invoked when 'parent folder' element is clicked. - * @param e DOM event - */ - DocumentList.prototype.onNavigateParentClick = function (e) { - if (e) { - e.preventDefault(); - } - if (this.navigate) { - this.route.pop(); - var parent_1 = this.route.length > 0 ? this.route[this.route.length - 1] : this.rootFolder; - if (parent_1) { - this.displayFolderContent(parent_1.path); - } - } - }; - /** - * Invoked when list row is clicked. - * @param item Underlying node item - * @param e DOM event (optional) - */ - DocumentList.prototype.onItemClick = function (item, e) { - if (e === void 0) { e = null; } - if (e) { - e.preventDefault(); - } - this.itemClick.emit({ - value: item - }); - if (this.navigate && item) { - if (item.entry.isFolder) { - var path = this.getNodePath(item); - this.route.push({ - name: item.entry.name, - path: path - }); - this.displayFolderContent(path); - } - } - }; - /** - * Invoked when a breadcrumb route is clicked. - * @param r Route to navigate to - * @param e DOM event - */ - DocumentList.prototype.goToRoute = function (r, e) { - if (e) { - e.preventDefault(); - } - if (this.navigate) { - var idx = this.route.indexOf(r); - if (idx > -1) { - this.route.splice(idx + 1); - this.displayFolderContent(r.path); - } - } - }; - /** - * Gets content URL for the given node. - * @param node Node to get URL for. - * @returns {string} URL address. - */ - DocumentList.prototype.getContentUrl = function (node) { - if (this._alfrescoService) { - return this._alfrescoService.getContentUrl(node); - } - return null; - }; - /** - * Gets thumbnail URL for the given document node. - * @param node Node to get URL for. - * @returns {string} URL address. - */ - DocumentList.prototype.getDocumentThumbnailUrl = function (node) { - if (this._alfrescoService) { - return this._alfrescoService.getDocumentThumbnailUrl(node); - } - return null; - }; - /** - * Invoked when executing content action for a document or folder. - * @param node Node to be the context of the execution. - * @param action Action to be executed against the context. - */ - DocumentList.prototype.executeContentAction = function (node, action) { - if (action) { - action.handler(node); - } - }; - /** - * Loads and displays folder content - * @param path Node path - */ - DocumentList.prototype.displayFolderContent = function (path) { - var _this = this; - if (path !== null) { - this.folderClick.emit({ - value: path - }); - this.currentFolderPath = path; - this._alfrescoService - .getFolder(path) - .subscribe(function (folder) { return _this.folder = folder; }, function (error) { return _this.errorMessage = error; }); - } - }; - /** - * Gets a path for a given node. - * @param node - * @returns {string} - */ - DocumentList.prototype.getNodePath = function (node) { - if (node) { - var pathWithCompanyHome = item.entry.path.name; - return pathWithCompanyHome.replace('/Company Home', '') + '/' + item.entry.name; - } - return null; - }; - /** - * Gets a value from an object by composed key - * documentList.getObjectValue({ item: { nodeType: 'cm:folder' }}, 'item.nodeType') ==> 'cm:folder' - * @param target - * @param key - * @returns {string} - */ - DocumentList.prototype.getObjectValue = function (target, key) { - var keys = key.split('.'); - key = ''; - do { - key += keys.shift(); - var value = target[key]; - if (value !== undefined && (typeof value === 'object' || !keys.length)) { - target = value; - key = ''; - } - else if (!keys.length) { - target = undefined; - } - else { - key += '.'; - } - } while (keys.length); - return target; - }; - /** - * Creates a set of predefined columns. - */ - 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) - ], DocumentList.prototype, "navigate", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', Boolean) - ], DocumentList.prototype, "breadcrumb", void 0); - __decorate([ - core_1.Input('folder-icon'), - __metadata('design:type', String) - ], DocumentList.prototype, "folderIcon", void 0); - __decorate([ - core_1.Output(), - __metadata('design:type', core_1.EventEmitter) - ], DocumentList.prototype, "itemClick", void 0); - __decorate([ - core_1.Output(), - __metadata('design:type', core_1.EventEmitter) - ], DocumentList.prototype, "folderClick", void 0); - DocumentList = __decorate([ - core_1.Component({ - moduleId: __moduleName, - selector: 'alfresco-document-list', - styleUrls: ['./document-list.css'], - templateUrl: './document-list.html', - providers: [alfresco_service_1.AlfrescoService] - }), - __metadata('design:paramtypes', [alfresco_service_1.AlfrescoService]) - ], DocumentList); - return DocumentList; - }()); - exports_1("DocumentList", DocumentList); - } - } -}); -//# sourceMappingURL=document-list.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.js.map b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.js.map deleted file mode 100644 index 6b44e39a08..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"document-list.js","sourceRoot":"","sources":["document-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0BH;gBAuCI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBArC7C,aAAQ,GAAY,IAAI,CAAC;oBAGzB,eAAU,GAAY,KAAK,CAAC;oBAM5B,cAAS,GAAsB,IAAI,mBAAY,EAAE,CAAC;oBAGlD,gBAAW,GAAsB,IAAI,mBAAY,EAAE,CAAC;oBAEpD,eAAU,GAAG;wBACT,IAAI,EAAE,kBAAkB;wBACxB,IAAI,EAAE,uBAAuB;qBAChC,CAAC;oBACF,sBAAiB,GAAW,uBAAuB,CAAC;oBAIpD,UAAK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AC;;gEAAA;gBAGrB;oBAAC,aAAM,EAAE;;+DAAA;gBAGT;oBAAC,aAAM,EAAE;;iEAAA;gBArBb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,YAAY;wBACtB,QAAQ,EAAE,wBAAwB;wBAClC,SAAS,EAAE,CAAC,qBAAqB,CAAC;wBAClC,WAAW,EAAE,sBAAsB;wBACnC,SAAS,EAAE,CAAC,kCAAe,CAAC;qBAC/B,CAAC;;gCAAA;gBAkQF,mBAAC;YAAD,CAAC,AAjQD,IAiQC;YAjQD,uCAiQC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.ts b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.ts index b5360a1698..7baa1ee122 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.ts @@ -24,10 +24,10 @@ import { AfterContentInit, AfterViewChecked } from 'angular2/core'; -import {AlfrescoService} from './../services/alfresco.service'; -import {MinimalNodeEntity,NodePaging} from './../models/document-library.model'; -import {ContentActionModel} from './../models/content-action.model'; -import {ContentColumnModel} from './../models/content-column.model'; +import { AlfrescoService } from './../services/alfresco.service'; +import { MinimalNodeEntity, NodePaging } from './../models/document-library.model'; +import { ContentActionModel } from './../models/content-action.model'; +import { ContentColumnModel } from './../models/content-column.model'; declare var componentHandler; declare let __moduleName: string; @@ -78,8 +78,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit this.currentFolderPath !== this.rootFolder.path; } - constructor( - private _alfrescoService: AlfrescoService) { + constructor(private _alfrescoService: AlfrescoService) { } ngOnInit() { diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js deleted file mode 100644 index fc2a5ec1ef..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/models/content-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 ContentActionModel; - return { - setters:[], - execute: function() { - ContentActionModel = (function () { - function ContentActionModel() { - } - return ContentActionModel; - }()); - exports_1("ContentActionModel", ContentActionModel); - } - } -}); -//# 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 deleted file mode 100644 index 841221b034..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.ts b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.ts index 3bcc827c02..23797e6202 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/models/content-action.model.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.js b/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.js deleted file mode 100644 index ec8e76b2c4..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/models/content-column.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 ContentColumnModel; - return { - setters:[], - execute: function() { - ContentColumnModel = (function () { - function ContentColumnModel() { - } - return ContentColumnModel; - }()); - exports_1("ContentColumnModel", ContentColumnModel); - } - } -}); -//# sourceMappingURL=content-column.model.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.js.map b/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.js.map deleted file mode 100644 index 431c2144c5..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"content-column.model.js","sourceRoot":"","sources":["content-column.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH;gBAAA;gBAKA,CAAC;gBAAD,yBAAC;YAAD,CAAC,AALD,IAKC;YALD,mDAKC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.ts b/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.ts index 5fe2d6d890..8ea94acc53 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/models/content-column.model.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.js b/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.js deleted file mode 100644 index c869fee534..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.js +++ /dev/null @@ -1,100 +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 FolderEntity, DocumentEntity, LocationEntity, LocationParentEntity, NodePaging, NodePagingList, MinimalNodeEntity, MinimalNodeEntryEntity, UserInfo, ContentInfo, PathInfoEntity, PathElementEntity; - return { - setters:[], - execute: function() { - // Note: contains only limited subset of available fields - FolderEntity = (function () { - function FolderEntity() { - } - return FolderEntity; - }()); - exports_1("FolderEntity", FolderEntity); - DocumentEntity = (function () { - function DocumentEntity() { - } - return DocumentEntity; - }()); - exports_1("DocumentEntity", DocumentEntity); - LocationEntity = (function () { - function LocationEntity() { - } - return LocationEntity; - }()); - exports_1("LocationEntity", LocationEntity); - LocationParentEntity = (function () { - function LocationParentEntity() { - } - return LocationParentEntity; - }()); - exports_1("LocationParentEntity", LocationParentEntity); - NodePaging = (function () { - function NodePaging() { - } - return NodePaging; - }()); - exports_1("NodePaging", NodePaging); - NodePagingList = (function () { - function NodePagingList() { - } - return NodePagingList; - }()); - exports_1("NodePagingList", NodePagingList); - MinimalNodeEntity = (function () { - function MinimalNodeEntity() { - } - return MinimalNodeEntity; - }()); - exports_1("MinimalNodeEntity", MinimalNodeEntity); - MinimalNodeEntryEntity = (function () { - function MinimalNodeEntryEntity() { - } - return MinimalNodeEntryEntity; - }()); - exports_1("MinimalNodeEntryEntity", MinimalNodeEntryEntity); - UserInfo = (function () { - function UserInfo() { - } - return UserInfo; - }()); - exports_1("UserInfo", UserInfo); - ContentInfo = (function () { - function ContentInfo() { - } - return ContentInfo; - }()); - exports_1("ContentInfo", ContentInfo); - PathInfoEntity = (function () { - function PathInfoEntity() { - } - return PathInfoEntity; - }()); - exports_1("PathInfoEntity", PathInfoEntity); - PathElementEntity = (function () { - function PathElementEntity() { - } - return PathElementEntity; - }()); - exports_1("PathElementEntity", PathElementEntity); - } - } -}); -//# sourceMappingURL=document-library.model.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.js.map b/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.js.map deleted file mode 100644 index 2eea2bd017..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"document-library.model.js","sourceRoot":"","sources":["document-library.model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;YAEH,yDAAyD;YAEzD;gBAAA;gBAEA,CAAC;gBAAD,mBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,uCAEC,CAAA;YAED;gBAAA;gBA6BA,CAAC;gBAAD,qBAAC;YAAD,CAAC,AA7BD,IA6BC;YA7BD,2CA6BC,CAAA;YAED;gBAAA;gBAQA,CAAC;gBAAD,qBAAC;YAAD,CAAC,AARD,IAQC;YARD,2CAQC,CAAA;YAED;gBAAA;gBAEA,CAAC;gBAAD,2BAAC;YAAD,CAAC,AAFD,IAEC;YAFD,uDAEC,CAAA;YAED;gBAAA;gBAEA,CAAC;gBAAD,iBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,mCAEC,CAAA;YAED;gBAAA;gBAEA,CAAC;gBAAD,qBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,2CAEC,CAAA;YAED;gBAAA;gBAEA,CAAC;gBAAD,wBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,iDAEC,CAAA;YAED;gBAAA;gBAaA,CAAC;gBAAD,6BAAC;YAAD,CAAC,AAbD,IAaC;YAbD,2DAaC,CAAA;YAED;gBAAA;gBAGA,CAAC;gBAAD,eAAC;YAAD,CAAC,AAHD,IAGC;YAHD,+BAGC,CAAA;YAED;gBAAA;gBAKA,CAAC;gBAAD,kBAAC;YAAD,CAAC,AALD,IAKC;YALD,qCAKC,CAAA;YAED;gBAAA;gBAIA,CAAC;gBAAD,qBAAC;YAAD,CAAC,AAJD,IAIC;YAJD,2CAIC,CAAA;YAED;gBAAA;gBAGA,CAAC;gBAAD,wBAAC;YAAD,CAAC,AAHD,IAGC;YAHD,iDAGC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.ts b/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.ts index be570729eb..8859ae1c3b 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/models/document-library.model.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * @@ -15,8 +15,8 @@ * limitations under the License. */ -// Note: contains only limited subset of available fields - +// note: contains only limited subset of available fields + export class FolderEntity { items: DocumentEntity[]; } @@ -90,7 +90,7 @@ export class MinimalNodeEntryEntity { createdAt: string; createdByUser: UserInfo; content: ContentInfo; - path: PathInfoEntity + path: PathInfoEntity; } export class UserInfo { @@ -108,7 +108,7 @@ export class ContentInfo { export class PathInfoEntity { elements: PathElementEntity; isComplete: boolean; - name: string + name: string; } export class PathElementEntity { diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.d.ts b/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.d.ts deleted file mode 100644 index b4dd4d8eed..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Http } from 'angular2/http'; -import { Observable } from 'rxjs/Observable'; -import { NodePaging, MinimalNodeEntity } from './../models/document-library.model'; -import { AlfrescoSettingsService } from '../../../ng2-alfresco-core/services'; -/** - * Internal service used by Document List component. - */ -export declare class AlfrescoService { - private http; - private settings; - constructor(http: Http, settings: AlfrescoSettingsService); - private _host; - private _baseUrlPath; - host: string; - private getBaseUrl(); - /** - * Gets the folder node with the content. - * @param folder Path to folder. - * @returns {Observable} Folder entity. - */ - getFolder(folder: string): Observable; - /** - * Get thumbnail URL for the given document node. - * @param document Node to get URL for. - * @returns {string} URL address. - */ - getDocumentThumbnailUrl(document: MinimalNodeEntity): string; - /** - * Get content URL for the given node. - * @param document Node to get URL for. - * @returns {string} URL address. - */ - getContentUrl(document: MinimalNodeEntity): string; - private handleError(error); -} diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.js b/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.js deleted file mode 100644 index 27de2d398f..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.js +++ /dev/null @@ -1,151 +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(['angular2/core', 'angular2/http', 'rxjs/Observable', '../../../ng2-alfresco-core/services'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var core_1, http_1, Observable_1, services_1; - var AlfrescoService; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }, - function (http_1_1) { - http_1 = http_1_1; - }, - function (Observable_1_1) { - Observable_1 = Observable_1_1; - }, - function (services_1_1) { - services_1 = services_1_1; - }], - execute: function() { - /** - * Internal service used by Document List component. - */ - AlfrescoService = (function () { - function AlfrescoService(http, settings) { - this.http = http; - this.settings = settings; - this._host = 'http://127.0.0.1:8080'; - this._baseUrlPath = '/alfresco/api/-default-/public/alfresco/versions/1'; - if (settings) { - this._host = settings.host; - } - } - Object.defineProperty(AlfrescoService.prototype, "host", { - get: function () { - return this._host; - }, - set: function (value) { - this._host = value; - }, - enumerable: true, - configurable: true - }); - AlfrescoService.prototype.getBaseUrl = function () { - return this.host + this._baseUrlPath; - }; - AlfrescoService.prototype.getAlfrescoTicket = function () { - return localStorage.getItem('token'); - }; - AlfrescoService.prototype.getAlfrescoClient = function () { - var defaultClient = new AlfrescoApi.ApiClient(); - defaultClient.basePath = this.getBaseUrl(); - // Configure HTTP basic authorization: basicAuth - var basicAuth = defaultClient.authentications['basicAuth']; - basicAuth.username = 'ROLE_TICKET'; - basicAuth.password = this.getAlfrescoTicket(); - return defaultClient; - }; - AlfrescoService.prototype.getNodesPromise = function (folder) { - var alfrescoClient = this.getAlfrescoClient(); - return new Promise(function (resolve, reject) { - var apiInstance = new AlfrescoApi.NodesApi(alfrescoClient); - var nodeId = '-root-'; - var opts = { - relativePath: folder, - include: ['path'] - }; - var callback = function (error, data /*, response*/) { - if (error) { - console.error(error); - reject(error); - } - else { - console.log('API returned data', data); - resolve(data); - } - }; - apiInstance.getNodeChildren(nodeId, opts, callback); - }); - }; - /** - * Gets the folder node with the content. - * @param folder Path to folder. - * @returns {Observable} Folder entity. - */ - AlfrescoService.prototype.getFolder = function (folder) { - return Observable_1.Observable.fromPromise(this.getNodesPromise(folder)) - .map(function (res) { return res; }) - .do(function (data) { return console.log('Node data', data); }) // eyeball results in the console - .catch(this.handleError); - }; - /** - * Get thumbnail URL for the given document node. - * @param document Node to get URL for. - * @returns {string} URL address. - */ - AlfrescoService.prototype.getDocumentThumbnailUrl = function (document) { - return this.getContentUrl(document) + '/thumbnails/doclib?c=queue&ph=true&lastModified=1'; - }; - /** - * Get content URL for the given node. - * @param document Node to get URL for. - * @returns {string} URL address. - */ - AlfrescoService.prototype.getContentUrl = function (document) { - return this._host + - '/alfresco/service/api/node/workspace/SpacesStore/' + - document.entry.id + '/content'; - }; - AlfrescoService.prototype.handleError = function (error) { - // in a real world app, we may send the error to some remote logging infrastructure - // instead of just logging it to the console - console.error(error); - return Observable_1.Observable.throw(error || 'Server error'); - }; - AlfrescoService = __decorate([ - core_1.Injectable(), - __metadata('design:paramtypes', [http_1.Http, services_1.AlfrescoSettingsService]) - ], AlfrescoService); - return AlfrescoService; - }()); - exports_1("AlfrescoService", AlfrescoService); - } - } -}); -//# sourceMappingURL=alfresco.service.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.js.map b/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.js.map deleted file mode 100644 index e789bb13d4..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"alfresco.service.js","sourceRoot":"","sources":["alfresco.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUH;;eAEG;YAEH;gBAEI,yBACY,IAAU,EACV,QAAiC;oBADjC,SAAI,GAAJ,IAAI,CAAM;oBACV,aAAQ,GAAR,QAAQ,CAAyB;oBAOrC,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CAAC,EAAE,GAAG,UAAU,CAAC;gBACvC,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,IAAI,cAAc,CAAC,CAAC;gBACrD,CAAC;gBAvGL;oBAAC,iBAAU,EAAE;;mCAAA;gBAwGb,sBAAC;YAAD,CAAC,AAvGD,IAuGC;YAvGD,6CAuGC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.ts b/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.ts index b203c93506..b0c38c7fda 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/services/alfresco.service.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * @@ -15,13 +15,13 @@ * limitations under the License. */ -import {Injectable} from 'angular2/core'; -import {Http, Response, RequestOptions, Headers} from 'angular2/http'; -import {Observable} from 'rxjs/Observable'; -import {NodePaging, MinimalNodeEntity} from './../models/document-library.model'; -import {AlfrescoSettingsService} from '../../../ng2-alfresco-core/services'; +import { Injectable } from 'angular2/core'; +import { Http, Response } from 'angular2/http'; +import { Observable } from 'rxjs/Observable'; +import { NodePaging, MinimalNodeEntity } from './../models/document-library.model'; +import { AlfrescoSettingsService } from '../../../ng2-alfresco-core/services'; -declare var AlfrescoApi: any; +declare let AlfrescoApi: any; /** * Internal service used by Document List component. @@ -29,27 +29,25 @@ declare var AlfrescoApi: any; @Injectable() export class AlfrescoService { - constructor( - private http: Http, - private settings: AlfrescoSettingsService - ) { + private _host: string = 'http://127.0.0.1:8080'; + private _baseUrlPath: string = '/alfresco/api/-default-/public/alfresco/versions/1'; + + constructor(private http: Http, + private settings: AlfrescoSettingsService) { if (settings) { this._host = settings.host; } } - private _host: string = 'http://127.0.0.1:8080'; - private _baseUrlPath: string = '/alfresco/api/-default-/public/alfresco/versions/1'; - - public get host():string { + public get host(): string { return this._host; } - public set host(value:string) { + public set host(value: string) { this._host = value; } - private getBaseUrl():string { + private getBaseUrl(): string { return this.host + this._baseUrlPath; } @@ -58,11 +56,11 @@ export class AlfrescoService { } private getAlfrescoClient() { - var defaultClient = new AlfrescoApi.ApiClient(); + let defaultClient = new AlfrescoApi.ApiClient(); defaultClient.basePath = this.getBaseUrl(); // Configure HTTP basic authorization: basicAuth - var basicAuth = defaultClient.authentications['basicAuth']; + let basicAuth = defaultClient.authentications['basicAuth']; basicAuth.username = 'ROLE_TICKET'; basicAuth.password = this.getAlfrescoTicket(); @@ -71,15 +69,15 @@ export class AlfrescoService { private getNodesPromise(folder: string) { - var alfrescoClient = this.getAlfrescoClient(); - return new Promise(function(resolve, reject) { - var apiInstance = new AlfrescoApi.NodesApi(alfrescoClient); - var nodeId = '-root-'; - var opts = { + let alfrescoClient = this.getAlfrescoClient(); + return new Promise(function (resolve, reject) { + let apiInstance = new AlfrescoApi.NodesApi(alfrescoClient); + let nodeId = '-root-'; + let opts = { relativePath: folder, include: ['path'] }; - var callback = function(error, data /*, response*/) { + let callback = function (error, data /*, response*/) { if (error) { console.error(error); reject(error); @@ -124,7 +122,7 @@ export class AlfrescoService { document.entry.id + '/content'; } - private handleError (error: Response) { + private handleError(error: Response) { // in a real world app, we may send the error to some remote logging infrastructure // instead of just logging it to the console console.error(error); diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.js b/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.js deleted file mode 100644 index c0bf009745..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.js +++ /dev/null @@ -1,91 +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(['angular2/core', './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) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - 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 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; - this.handlers = {}; - this.setupActionHandlers(); - } - DocumentActionsService.prototype.getHandler = function (key) { - if (key) { - var lkey = key.toLowerCase(); - return this.handlers[lkey] || null; - } - return null; - }; - 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) { - window.alert('standard document action 1'); - }; - DocumentActionsService.prototype.handleStandardAction2 = function (obj) { - window.alert('standard document action 2'); - }; - DocumentActionsService.prototype.download = function (obj) { - if (this._alfrescoService && 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]) - ], DocumentActionsService); - return DocumentActionsService; - }()); - exports_1("DocumentActionsService", DocumentActionsService); - } - } -}); -//# sourceMappingURL=document-actions.service.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.js.map b/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.js.map deleted file mode 100644 index fbf975bc28..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"document-actions.service.js","sourceRoot":"","sources":["document-actions.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAOH;gBAGI,gCAAoB,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBAF7C,aAAQ,GAA4C,EAAE,CAAC;oBAG3D,IAAI,CAAC,mBAAmB,EAAE,CAAC;gBAC/B,CAAC;gBAED,2CAAU,GAAV,UAAW,GAAW;oBAClB,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;wBACN,IAAI,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;wBAC7B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;oBACvC,CAAC;oBACD,MAAM,CAAC,IAAI,CAAC;gBAChB,CAAC;gBAED,2CAAU,GAAV,UAAW,GAAW,EAAE,OAA6B;oBACjD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;wBACN,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,CAAC;oBACpC,CAAC;gBACL,CAAC;gBAhDL;oBAAC,iBAAU,EAAE;;0CAAA;gBAiDb,6BAAC;YAAD,CAAC,AAhDD,IAgDC;YAhDD,2DAgDC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.ts b/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.ts index d15ef780ad..26eb3a1bdb 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.js b/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.js deleted file mode 100644 index 6997fb6e9a..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.js +++ /dev/null @@ -1,73 +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(['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) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var core_1; - var FolderActionsService; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }], - execute: function() { - FolderActionsService = (function () { - 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); - } - FolderActionsService.prototype.getHandler = function (key) { - if (key) { - var lkey = key.toLowerCase(); - return this.handlers[lkey] || null; - } - return null; - }; - FolderActionsService.prototype.setHandler = function (key, handler) { - if (key) { - var lkey = key.toLowerCase(); - this.handlers[lkey] = handler; - } - }; - FolderActionsService.prototype.handleStandardAction1 = function (document) { - window.alert('standard folder action 1'); - }; - FolderActionsService.prototype.handleStandardAction2 = function (document) { - window.alert('standard folder action 2'); - }; - FolderActionsService = __decorate([ - core_1.Injectable(), - __metadata('design:paramtypes', []) - ], FolderActionsService); - return FolderActionsService; - }()); - exports_1("FolderActionsService", FolderActionsService); - } - } -}); -//# sourceMappingURL=folder-actions.service.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.js.map b/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.js.map deleted file mode 100644 index 34251d612c..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,CAAC,GAAG,CAAC,CAAC,CAAC;wBACN,IAAI,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;wBAC7B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;oBACvC,CAAC;oBACD,MAAM,CAAC,IAAI,CAAC;gBAChB,CAAC;gBAED,yCAAU,GAAV,UAAW,GAAW,EAAE,OAA6B;oBACjD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;wBACN,IAAI,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;wBAC7B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;oBAClC,CAAC;gBACL,CAAC;gBAEO,oDAAqB,GAA7B,UAA8B,QAAa;oBACvC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;gBAC7C,CAAC;gBAEO,oDAAqB,GAA7B,UAA8B,QAAa;oBACvC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;gBAC7C,CAAC;gBA/BL;oBAAC,iBAAU,EAAE;;wCAAA;gBAgCb,2BAAC;YAAD,CAAC,AA/BD,IA+BC;YA/BD,uDA+BC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.ts b/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.ts index f364b6d6a8..9d5cee348f 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/ng2-components/ng2-alfresco-documentlist/test/assets/alfresco.service.mock.ts b/ng2-components/ng2-alfresco-documentlist/test/assets/alfresco.service.mock.ts index 0254984937..5cccc913aa 100644 --- a/ng2-components/ng2-alfresco-documentlist/test/assets/alfresco.service.mock.ts +++ b/ng2-components/ng2-alfresco-documentlist/test/assets/alfresco.service.mock.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/ng2-components/ng2-alfresco-documentlist/test/components/content-action.spec.ts b/ng2-components/ng2-alfresco-documentlist/test/components/content-action.spec.ts index 48932490fd..9fcaaf1bf8 100644 --- a/ng2-components/ng2-alfresco-documentlist/test/components/content-action.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/test/components/content-action.spec.ts @@ -48,7 +48,7 @@ describe('ContentAction', () => { expect(actionList.registerAction).toHaveBeenCalled(); }); - + it('should setup and register model', () => { let action = new ContentAction(actionList, null, null); action.type = 'button'; diff --git a/ng2-components/ng2-alfresco-documentlist/test/components/content-column.spec.ts b/ng2-components/ng2-alfresco-documentlist/test/components/content-column.spec.ts index 192fbc854a..7289c70337 100644 --- a/ng2-components/ng2-alfresco-documentlist/test/components/content-column.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/test/components/content-column.spec.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * @@ -36,7 +36,7 @@ describe('ContentColumn', () => { documentList = new DocumentList(alfrescoServiceMock); columnList = new ContentColumnList(documentList); }); - + it('should register model within parent column list', () => { spyOn(columnList, 'registerColumn').and.callThrough(); diff --git a/ng2-components/ng2-alfresco-documentlist/test/components/document-list.spec.ts b/ng2-components/ng2-alfresco-documentlist/test/components/document-list.spec.ts index aae9acbe5a..83c322e0bc 100644 --- a/ng2-components/ng2-alfresco-documentlist/test/components/document-list.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/test/components/document-list.spec.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * @@ -21,11 +21,11 @@ import { expect, beforeEach } from 'angular2/testing'; -import {DocumentList} from '../../src/components/document-list'; -import {ContentColumnModel} from '../../src/models/content-column.model'; -import {AlfrescoServiceMock} from '../assets/alfresco.service.mock'; -import {DocumentEntity, LocationEntity} from '../../src/models/document-library.model'; -import {ContentActionModel} from '../../src/models/content-action.model'; +import { DocumentList } from '../../src/components/document-list'; +import { ContentColumnModel } from '../../src/models/content-column.model'; +import { AlfrescoServiceMock } from '../assets/alfresco.service.mock'; +import { DocumentEntity, LocationEntity } from '../../src/models/document-library.model'; +import { ContentActionModel } from '../../src/models/content-action.model'; describe('DocumentList', () => { @@ -38,7 +38,9 @@ describe('DocumentList', () => { documentList = new DocumentList(alfrescoServiceMock); eventMock = { - preventDefault: function() {} + preventDefault: function () { + console.log('mock preventDefault'); + } }; }); @@ -125,11 +127,13 @@ describe('DocumentList', () => { let node = new DocumentEntity(); expect(list.getDocumentThumbnailUrl(node)).toBeNull(); }); - + it('should execute action with node', () => { let node = new DocumentEntity(); let action = new ContentActionModel(); - action.handler = function() {}; + action.handler = function () { + console.log('mock handler'); + }; spyOn(action, 'handler').and.stub(); @@ -140,7 +144,9 @@ describe('DocumentList', () => { it('should execute action without node provided', () => { let action = new ContentActionModel(); - action.handler = function() {}; + action.handler = function () { + console.log('mock handler'); + }; spyOn(action, 'handler').and.stub(); documentList.executeContentAction(null, action); @@ -167,21 +173,21 @@ describe('DocumentList', () => { }); it('should filter content actions for various types and targets', () => { - var folderButton = new ContentActionModel(); - folderButton.target = "folder"; - folderButton.type = "button"; + let folderButton = new ContentActionModel(); + folderButton.target = 'folder'; + folderButton.type = 'button'; - var folderMenu = new ContentActionModel(); - folderMenu.target = "folder"; - folderMenu.type = "menu"; + let folderMenu = new ContentActionModel(); + folderMenu.target = 'folder'; + folderMenu.type = 'menu'; - var documentButton = new ContentActionModel(); - documentButton.target = "document"; - documentButton.type = "button"; + let documentButton = new ContentActionModel(); + documentButton.target = 'document'; + documentButton.type = 'button'; - var documentMenu = new ContentActionModel(); - documentMenu.target = "document"; - documentMenu.type = "menu"; + let documentMenu = new ContentActionModel(); + documentMenu.target = 'document'; + documentMenu.type = 'menu'; documentList.actions = [ folderButton, @@ -208,25 +214,25 @@ describe('DocumentList', () => { }); it('should be case insensitive when filtering content actions', () => { - var documentButton = new ContentActionModel(); + let documentButton = new ContentActionModel(); documentButton.target = 'document'; documentButton.type = 'button'; documentList.actions = [documentButton]; - var actions = documentList.getContentActions('DoCuMeNt', 'BUTTON'); + let actions = documentList.getContentActions('DoCuMeNt', 'BUTTON'); expect(actions.length).toBe(1); expect(actions[0]).toBe(documentButton); }); it('should find no content actions', () => { - var documentButton = new ContentActionModel(); + let documentButton = new ContentActionModel(); documentButton.target = 'document'; documentButton.type = 'button'; documentList.actions = [documentButton]; - var actions = documentList.getContentActions('unknown', 'value'); + let actions = documentList.getContentActions('unknown', 'value'); expect(actions.length).toBe(0); }); @@ -260,7 +266,7 @@ describe('DocumentList', () => { expect(documentList.displayFolderContent).toHaveBeenCalledWith(path); - var routeEntry = documentList.route.pop(); + let routeEntry = documentList.route.pop(); expect(routeEntry.name).toBe(node.displayName); expect(routeEntry.path).toBe(path); }); @@ -302,7 +308,7 @@ describe('DocumentList', () => { it('should require node to get path', () => { expect(documentList.getNodePath(null)).toBe(null); }); - + it('should get node path', () => { let location = new LocationEntity(); location.site = 'swsdp'; @@ -317,29 +323,29 @@ describe('DocumentList', () => { }); it('should return root object value', () => { - var target = { + let target = { key1: 'value1' }; expect(documentList.getObjectValue(target, 'key1')).toBe('value1'); }); - + it('should return no object value when key is missing', () => { - var target = { + let target = { key1: 'value1' }; expect(documentList.getObjectValue(target, 'missing')).toBeUndefined(); }); it('should return nested object value', () => { - var target = { + let target = { key1: { key2: { key3: 'value1' } - } + } }; - + expect(documentList.getObjectValue(target, 'key1.key2.key3')).toBe('value1'); }); diff --git a/ng2-components/ng2-alfresco-documentlist/test/services/document-actions.service.spec.ts b/ng2-components/ng2-alfresco-documentlist/test/services/document-actions.service.spec.ts index c0b1fef9a7..0f7809fb05 100644 --- a/ng2-components/ng2-alfresco-documentlist/test/services/document-actions.service.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/test/services/document-actions.service.spec.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * @@ -28,7 +28,7 @@ import {AlfrescoServiceMock} from '../assets/alfresco.service.mock'; describe('DocumentActionsService', () => { let service: DocumentActionsService; - + beforeEach(() => { let alfrescoServiceMock = new AlfrescoServiceMock(); service = new DocumentActionsService(alfrescoServiceMock); @@ -39,7 +39,7 @@ describe('DocumentActionsService', () => { }); it('should register custom action handler', () => { - var handler: ContentActionHandler = function (obj: any) {}; + let handler: ContentActionHandler = function (obj: any) {}; service.setHandler('', handler); expect(service.getHandler('')).toBe(handler); }); @@ -49,7 +49,7 @@ describe('DocumentActionsService', () => { }); it('should be case insensitive for keys', () => { - var handler: ContentActionHandler = function (obj: any) {}; + let handler: ContentActionHandler = function (obj: any) {}; service.setHandler('', handler); expect(service.getHandler('')).toBe(handler); diff --git a/ng2-components/ng2-alfresco-documentlist/test/services/folder-actions.service.spec.ts b/ng2-components/ng2-alfresco-documentlist/test/services/folder-actions.service.spec.ts index 6d6293cd99..3c01c50302 100644 --- a/ng2-components/ng2-alfresco-documentlist/test/services/folder-actions.service.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/test/services/folder-actions.service.spec.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * @@ -33,7 +33,7 @@ describe('FolderActionsService', () => { }); it('should register custom action handler', () => { - var handler: ContentActionHandler = function (obj: any) {}; + let handler: ContentActionHandler = function (obj: any) {}; service.setHandler('', handler); expect(service.getHandler('')).toBe(handler); }); @@ -43,7 +43,7 @@ describe('FolderActionsService', () => { }); it('should be case insensitive for keys', () => { - var handler: ContentActionHandler = function (obj: any) {}; + let handler: ContentActionHandler = function (obj: any) {}; service.setHandler('', handler); expect(service.getHandler('')).toBe(handler); diff --git a/ng2-components/ng2-alfresco-documentlist/test/tsconfig.json b/ng2-components/ng2-alfresco-documentlist/test/tsconfig.json index ea9b9a42dc..6d6c8be320 100644 --- a/ng2-components/ng2-alfresco-documentlist/test/tsconfig.json +++ b/ng2-components/ng2-alfresco-documentlist/test/tsconfig.json @@ -8,7 +8,8 @@ "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false, - "declaration": false + "declaration": false, + "outDir": "../dist" }, "files": [ "../node_modules/angular2/typings/browser.d.ts", diff --git a/ng2-components/ng2-alfresco-documentlist/tslint.json b/ng2-components/ng2-alfresco-documentlist/tslint.json index e13980d341..e0afb6fc9c 100644 --- a/ng2-components/ng2-alfresco-documentlist/tslint.json +++ b/ng2-components/ng2-alfresco-documentlist/tslint.json @@ -9,8 +9,7 @@ "class-name": true, "comment-format": [ true, - "check-space", - "check-lowercase" + "check-space" ], "curly": true, "eofline": true, @@ -50,7 +49,7 @@ "no-debugger": true, "no-duplicate-key": true, "no-duplicate-variable": true, - "no-empty": true, + "no-empty": false, "no-eval": true, "no-inferrable-types": false, "no-internal-module": true, diff --git a/ng2-components/ng2-alfresco-login/test/tsconfig.json b/ng2-components/ng2-alfresco-login/test/tsconfig.json new file mode 100644 index 0000000000..d24362499a --- /dev/null +++ b/ng2-components/ng2-alfresco-login/test/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "system", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "removeComments": false, + "noImplicitAny": false, + "declaration": false, + "outDir": "../dist" + }, + "exclude": [ + ] +} diff --git a/ng2-components/ng2-alfresco-login/tslint.json b/ng2-components/ng2-alfresco-login/tslint.json index e13980d341..dde69dd07e 100644 --- a/ng2-components/ng2-alfresco-login/tslint.json +++ b/ng2-components/ng2-alfresco-login/tslint.json @@ -1,120 +1,119 @@ { - "rules": { - "align": [ - true, - "parameters", - "statements" - ], - "ban": false, - "class-name": true, - "comment-format": [ - true, - "check-space", - "check-lowercase" - ], - "curly": true, - "eofline": true, - "forin": true, - "indent": [ - true, - "spaces" - ], - "interface-name": false, - "jsdoc-format": true, - "label-position": true, - "label-undefined": true, - "max-line-length": [ - true, - 140 - ], - "member-ordering": [ - true, - "static-before-instance", - "variables-before-functions" - ], - "no-any": false, - "no-arg": true, - "no-bitwise": false, - "no-conditional-assignment": true, - "no-consecutive-blank-lines": false, - "no-console": [ - true, - "debug", - "info", - "time", - "timeEnd", - "trace" - ], - "no-construct": true, - "no-constructor-vars": false, - "no-debugger": true, - "no-duplicate-key": true, - "no-duplicate-variable": true, - "no-empty": true, - "no-eval": true, - "no-inferrable-types": false, - "no-internal-module": true, - "no-require-imports": true, - "no-shadowed-variable": true, - "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unreachable": true, - "no-unused-expression": true, - "no-unused-variable": true, - "no-use-before-declare": true, - "no-var-keyword": true, - "no-var-requires": true, - "object-literal-sort-keys": false, - "one-line": [ - true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" - ], - "quotemark": [ - true, - "single", - "avoid-escape" - ], - "radix": true, - "semicolon": true, - "switch-default": true, - "trailing-comma": [ - true, - { - "multiline": "never", - "singleline": "never" - } - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef": false, - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "use-strict": false, - "variable-name": [ - true, - "check-format", - "allow-leading-underscore", - "ban-keywords" - ], - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator" - ] - } + "rules": { + "align": [ + true, + "parameters", + "statements" + ], + "ban": false, + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "curly": true, + "eofline": true, + "forin": true, + "indent": [ + true, + "spaces" + ], + "interface-name": false, + "jsdoc-format": true, + "label-position": true, + "label-undefined": true, + "max-line-length": [ + true, + 140 + ], + "member-ordering": [ + true, + "static-before-instance", + "variables-before-functions" + ], + "no-any": false, + "no-arg": true, + "no-bitwise": false, + "no-conditional-assignment": true, + "no-consecutive-blank-lines": false, + "no-console": [ + true, + "debug", + "info", + "time", + "timeEnd", + "trace" + ], + "no-construct": true, + "no-constructor-vars": false, + "no-debugger": true, + "no-duplicate-key": true, + "no-duplicate-variable": true, + "no-empty": false, + "no-eval": true, + "no-inferrable-types": false, + "no-internal-module": true, + "no-require-imports": true, + "no-shadowed-variable": true, + "no-switch-case-fall-through": true, + "no-trailing-whitespace": true, + "no-unreachable": true, + "no-unused-expression": true, + "no-unused-variable": true, + "no-use-before-declare": true, + "no-var-keyword": true, + "no-var-requires": true, + "object-literal-sort-keys": false, + "one-line": [ + true, + "check-open-brace", + "check-catch", + "check-else", + "check-whitespace" + ], + "quotemark": [ + true, + "single", + "avoid-escape" + ], + "radix": true, + "semicolon": true, + "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": "never", + "singleline": "never" + } + ], + "triple-equals": [ + true, + "allow-null-check" + ], + "typedef": false, + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "use-strict": false, + "variable-name": [ + true, + "check-format", + "allow-leading-underscore", + "ban-keywords" + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator" + ] + } } diff --git a/ng2-components/ng2-alfresco-upload/test/tsconfig.json b/ng2-components/ng2-alfresco-upload/test/tsconfig.json new file mode 100644 index 0000000000..d24362499a --- /dev/null +++ b/ng2-components/ng2-alfresco-upload/test/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "system", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "removeComments": false, + "noImplicitAny": false, + "declaration": false, + "outDir": "../dist" + }, + "exclude": [ + ] +} diff --git a/ng2-components/ng2-alfresco-upload/tslint.json b/ng2-components/ng2-alfresco-upload/tslint.json index e13980d341..dde69dd07e 100644 --- a/ng2-components/ng2-alfresco-upload/tslint.json +++ b/ng2-components/ng2-alfresco-upload/tslint.json @@ -1,120 +1,119 @@ { - "rules": { - "align": [ - true, - "parameters", - "statements" - ], - "ban": false, - "class-name": true, - "comment-format": [ - true, - "check-space", - "check-lowercase" - ], - "curly": true, - "eofline": true, - "forin": true, - "indent": [ - true, - "spaces" - ], - "interface-name": false, - "jsdoc-format": true, - "label-position": true, - "label-undefined": true, - "max-line-length": [ - true, - 140 - ], - "member-ordering": [ - true, - "static-before-instance", - "variables-before-functions" - ], - "no-any": false, - "no-arg": true, - "no-bitwise": false, - "no-conditional-assignment": true, - "no-consecutive-blank-lines": false, - "no-console": [ - true, - "debug", - "info", - "time", - "timeEnd", - "trace" - ], - "no-construct": true, - "no-constructor-vars": false, - "no-debugger": true, - "no-duplicate-key": true, - "no-duplicate-variable": true, - "no-empty": true, - "no-eval": true, - "no-inferrable-types": false, - "no-internal-module": true, - "no-require-imports": true, - "no-shadowed-variable": true, - "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unreachable": true, - "no-unused-expression": true, - "no-unused-variable": true, - "no-use-before-declare": true, - "no-var-keyword": true, - "no-var-requires": true, - "object-literal-sort-keys": false, - "one-line": [ - true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" - ], - "quotemark": [ - true, - "single", - "avoid-escape" - ], - "radix": true, - "semicolon": true, - "switch-default": true, - "trailing-comma": [ - true, - { - "multiline": "never", - "singleline": "never" - } - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef": false, - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "use-strict": false, - "variable-name": [ - true, - "check-format", - "allow-leading-underscore", - "ban-keywords" - ], - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator" - ] - } + "rules": { + "align": [ + true, + "parameters", + "statements" + ], + "ban": false, + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "curly": true, + "eofline": true, + "forin": true, + "indent": [ + true, + "spaces" + ], + "interface-name": false, + "jsdoc-format": true, + "label-position": true, + "label-undefined": true, + "max-line-length": [ + true, + 140 + ], + "member-ordering": [ + true, + "static-before-instance", + "variables-before-functions" + ], + "no-any": false, + "no-arg": true, + "no-bitwise": false, + "no-conditional-assignment": true, + "no-consecutive-blank-lines": false, + "no-console": [ + true, + "debug", + "info", + "time", + "timeEnd", + "trace" + ], + "no-construct": true, + "no-constructor-vars": false, + "no-debugger": true, + "no-duplicate-key": true, + "no-duplicate-variable": true, + "no-empty": false, + "no-eval": true, + "no-inferrable-types": false, + "no-internal-module": true, + "no-require-imports": true, + "no-shadowed-variable": true, + "no-switch-case-fall-through": true, + "no-trailing-whitespace": true, + "no-unreachable": true, + "no-unused-expression": true, + "no-unused-variable": true, + "no-use-before-declare": true, + "no-var-keyword": true, + "no-var-requires": true, + "object-literal-sort-keys": false, + "one-line": [ + true, + "check-open-brace", + "check-catch", + "check-else", + "check-whitespace" + ], + "quotemark": [ + true, + "single", + "avoid-escape" + ], + "radix": true, + "semicolon": true, + "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": "never", + "singleline": "never" + } + ], + "triple-equals": [ + true, + "allow-null-check" + ], + "typedef": false, + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "use-strict": false, + "variable-name": [ + true, + "check-format", + "allow-leading-underscore", + "ban-keywords" + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator" + ] + } }