From 66a8eb039f57bebe5749387570c297a738217ddc Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Mon, 25 Apr 2016 14:11:44 +0100 Subject: [PATCH] core library implementation; license fixes - library with code/utils to be shared across other components or top level application; - moved MDL directive to core as an example - license fixes --- demo-shell-ng2/README.md | 9 + demo-shell-ng2/app/app.component.ts | 18 +- .../MaterialDesignLiteUpgradeElement.ts | 11 -- .../app/components/files/files.component.ts | 18 +- .../app/components/router/AuthRouterOutlet.ts | 16 ++ demo-shell-ng2/app/license_header.txt | 4 +- demo-shell-ng2/index.html | 4 + ng2-components/ng2-alfresco-core/.gitignore | 5 + ng2-components/ng2-alfresco-core/LICENSE | 177 ++++++++++++++++++ ng2-components/ng2-alfresco-core/README.md | 4 + .../ng2-alfresco-core/material.d.ts | 17 ++ ng2-components/ng2-alfresco-core/material.js | 20 ++ .../ng2-alfresco-core/material.js.map | 1 + ng2-components/ng2-alfresco-core/material.ts | 17 ++ .../MaterialDesignLiteUpgradeElement.d.ts | 20 ++ .../MaterialDesignLiteUpgradeElement.js | 39 ++++ .../MaterialDesignLiteUpgradeElement.js.map | 1 + .../MaterialDesignLiteUpgradeElement.ts | 27 +++ ng2-components/ng2-alfresco-core/package.json | 39 ++++ .../ng2-alfresco-core/tsconfig.json | 18 ++ ng2-components/ng2-alfresco-core/typings.json | 6 + .../ng2-alfresco-documentlist/package.json | 3 +- .../src/document-list.component.d.ts | 16 ++ .../src/document-list.component.js | 3 +- .../src/document-list.component.js.map | 2 +- .../src/document-list.component.ts | 19 +- .../ng2-alfresco-login/package.json | 3 +- 27 files changed, 495 insertions(+), 22 deletions(-) delete mode 100644 demo-shell-ng2/app/components/common/MaterialDesignLiteUpgradeElement.ts create mode 100644 ng2-components/ng2-alfresco-core/.gitignore create mode 100644 ng2-components/ng2-alfresco-core/LICENSE create mode 100644 ng2-components/ng2-alfresco-core/README.md create mode 100644 ng2-components/ng2-alfresco-core/material.d.ts create mode 100644 ng2-components/ng2-alfresco-core/material.js create mode 100644 ng2-components/ng2-alfresco-core/material.js.map create mode 100644 ng2-components/ng2-alfresco-core/material.ts create mode 100644 ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.d.ts create mode 100644 ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js create mode 100644 ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js.map create mode 100644 ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.ts create mode 100644 ng2-components/ng2-alfresco-core/package.json create mode 100644 ng2-components/ng2-alfresco-core/tsconfig.json create mode 100644 ng2-components/ng2-alfresco-core/typings.json diff --git a/demo-shell-ng2/README.md b/demo-shell-ng2/README.md index 09ce33b836..f42a8c17d3 100644 --- a/demo-shell-ng2/README.md +++ b/demo-shell-ng2/README.md @@ -21,6 +21,15 @@ **Install symlinks for Alfresco components** +*ng2-alfresco-core:* + +```sh +cd ng2-components/ng2-alfresco-core +npm link +cd ../../demo-shell-ng +npm link ng2-alfresco-core +``` + *ng2-alfresco-documentlist component:* ```sh diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index 97db24acee..828d5c55ac 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -1,8 +1,24 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * 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 {Component} from 'angular2/core'; import {Router, RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; import {Authentication} from 'ng2-alfresco-login/ng2-alfresco-login'; import {AlfrescoService} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist'; -import {MDL} from './components/common/MaterialDesignLiteUpgradeElement'; +import {MDL} from 'ng2-alfresco-core/material'; import {FilesComponent} from './components/files/files.component'; import {Login} from 'ng2-alfresco-login/ng2-alfresco-login'; import {AuthRouterOutlet} from './components/router/AuthRouterOutlet'; diff --git a/demo-shell-ng2/app/components/common/MaterialDesignLiteUpgradeElement.ts b/demo-shell-ng2/app/components/common/MaterialDesignLiteUpgradeElement.ts deleted file mode 100644 index 599ca5a8f0..0000000000 --- a/demo-shell-ng2/app/components/common/MaterialDesignLiteUpgradeElement.ts +++ /dev/null @@ -1,11 +0,0 @@ -import {Directive, AfterViewInit} from 'angular2/core'; -declare var componentHandler; - -@Directive({ - selector: '[mdl]' -}) -export class MDL implements AfterViewInit { - ngAfterViewInit() { - componentHandler.upgradeAllRegistered(); - } -} diff --git a/demo-shell-ng2/app/components/files/files.component.ts b/demo-shell-ng2/app/components/files/files.component.ts index cbd8f1ae15..864bb4cc9c 100644 --- a/demo-shell-ng2/app/components/files/files.component.ts +++ b/demo-shell-ng2/app/components/files/files.component.ts @@ -1,6 +1,22 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * 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 {Component} from 'angular2/core'; import {DocumentList} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist'; -import {MDL} from '../common/MaterialDesignLiteUpgradeElement'; +import {MDL} from 'ng2-alfresco-core/material'; @Component({ selector: 'files-component', diff --git a/demo-shell-ng2/app/components/router/AuthRouterOutlet.ts b/demo-shell-ng2/app/components/router/AuthRouterOutlet.ts index 6a23d51eee..76cc2387e3 100644 --- a/demo-shell-ng2/app/components/router/AuthRouterOutlet.ts +++ b/demo-shell-ng2/app/components/router/AuthRouterOutlet.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * 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 { ElementRef, DynamicComponentLoader, Directive, Attribute } from 'angular2/core'; import { Router, RouterOutlet, ComponentInstruction } from 'angular2/router'; import {Authentication} from 'ng2-alfresco-login/ng2-alfresco-login'; diff --git a/demo-shell-ng2/app/license_header.txt b/demo-shell-ng2/app/license_header.txt index 7b691733f0..c657b3bfb5 100644 --- a/demo-shell-ng2/app/license_header.txt +++ b/demo-shell-ng2/app/license_header.txt @@ -1,6 +1,6 @@ /** * @license - * Copyright (C) 2005-2017 Alfresco Software Limited. + * Copyright (C) 2016 Alfresco Software Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,4 @@ * 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. - */ \ No newline at end of file + */ diff --git a/demo-shell-ng2/index.html b/demo-shell-ng2/index.html index f3db922faf..380361401f 100644 --- a/demo-shell-ng2/index.html +++ b/demo-shell-ng2/index.html @@ -35,6 +35,7 @@ System.config({ map: { 'ng2-uploader': 'node_modules/ng2-uploader', + 'ng2-alfresco-core': 'node_modules/ng2-alfresco-core', 'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist', 'ng2-alfresco-login': 'node_modules/ng2-alfresco-login' }, @@ -46,6 +47,9 @@ 'ng2-uploader': { defaultExtension: 'js' }, + 'ng2-alfresco-core': { + defaultExtension: 'js' + }, 'ng2-alfresco-documentlist': { defaultExtension: 'js' }, diff --git a/ng2-components/ng2-alfresco-core/.gitignore b/ng2-components/ng2-alfresco-core/.gitignore new file mode 100644 index 0000000000..5b9865affb --- /dev/null +++ b/ng2-components/ng2-alfresco-core/.gitignore @@ -0,0 +1,5 @@ +npm-debug.log +node_modules +jspm_packages +.idea +typings diff --git a/ng2-components/ng2-alfresco-core/LICENSE b/ng2-components/ng2-alfresco-core/LICENSE new file mode 100644 index 0000000000..430d42bbea --- /dev/null +++ b/ng2-components/ng2-alfresco-core/LICENSE @@ -0,0 +1,177 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS diff --git a/ng2-components/ng2-alfresco-core/README.md b/ng2-components/ng2-alfresco-core/README.md new file mode 100644 index 0000000000..cb6d6aa875 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/README.md @@ -0,0 +1,4 @@ +### Alfresco Angular2 Components core + +Core library for other ng2-alfresco components. +This should be added as a dependency for any project using the components. diff --git a/ng2-components/ng2-alfresco-core/material.d.ts b/ng2-components/ng2-alfresco-core/material.d.ts new file mode 100644 index 0000000000..7a4040a671 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material.d.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export * from './material/MaterialDesignLiteUpgradeElement'; diff --git a/ng2-components/ng2-alfresco-core/material.js b/ng2-components/ng2-alfresco-core/material.js new file mode 100644 index 0000000000..3eb3c496bb --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material.js @@ -0,0 +1,20 @@ +System.register(['./material/MaterialDesignLiteUpgradeElement'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + function exportStar_1(m) { + var exports = {}; + for(var n in m) { + if (n !== "default") exports[n] = m[n]; + } + exports_1(exports); + } + return { + setters:[ + function (MaterialDesignLiteUpgradeElement_1_1) { + exportStar_1(MaterialDesignLiteUpgradeElement_1_1); + }], + execute: function() { + } + } +}); +//# sourceMappingURL=material.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-core/material.js.map b/ng2-components/ng2-alfresco-core/material.js.map new file mode 100644 index 0000000000..24c78b2f94 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material.js.map @@ -0,0 +1 @@ +{"version":3,"file":"material.js","sourceRoot":"","sources":["material.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-core/material.ts b/ng2-components/ng2-alfresco-core/material.ts new file mode 100644 index 0000000000..7a4040a671 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export * from './material/MaterialDesignLiteUpgradeElement'; diff --git a/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.d.ts b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.d.ts new file mode 100644 index 0000000000..cc51e8c345 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.d.ts @@ -0,0 +1,20 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * 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 { AfterViewInit } from 'angular2/core'; +export declare class MDL implements AfterViewInit { + ngAfterViewInit(): void; +} diff --git a/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js new file mode 100644 index 0000000000..9e20c2fd36 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js @@ -0,0 +1,39 @@ +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 MDL; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }], + execute: function() { + MDL = (function () { + function MDL() { + } + MDL.prototype.ngAfterViewInit = function () { + componentHandler.upgradeAllRegistered(); + }; + MDL = __decorate([ + core_1.Directive({ + selector: '[mdl]' + }), + __metadata('design:paramtypes', []) + ], MDL); + return MDL; + }()); + exports_1("MDL", MDL); + } + } +}); +//# sourceMappingURL=MaterialDesignLiteUpgradeElement.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js.map b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js.map new file mode 100644 index 0000000000..45076211e4 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MaterialDesignLiteUpgradeElement.js","sourceRoot":"","sources":["MaterialDesignLiteUpgradeElement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAsBA;gBAAA;gBAIA,CAAC;gBAHG,6BAAe,GAAf;oBACI,gBAAgB,CAAC,oBAAoB,EAAE,CAAC;gBAC5C,CAAC;gBANL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,OAAO;qBACpB,CAAC;;uBAAA;gBAKF,UAAC;YAAD,CAAC,AAJD,IAIC;YAJD,qBAIC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.ts b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.ts new file mode 100644 index 0000000000..8a50a5b852 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/material/MaterialDesignLiteUpgradeElement.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * 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 {Directive, AfterViewInit} from 'angular2/core'; +declare var componentHandler; + +@Directive({ + selector: '[mdl]' +}) +export class MDL implements AfterViewInit { + ngAfterViewInit() { + componentHandler.upgradeAllRegistered(); + } +} diff --git a/ng2-components/ng2-alfresco-core/package.json b/ng2-components/ng2-alfresco-core/package.json new file mode 100644 index 0000000000..17f86bc184 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/package.json @@ -0,0 +1,39 @@ +{ + "name": "ng2-alfresco-core", + "description": "Alfresco Angular 2 Components core", + "version": "0.1.0", + "author": "Alfresco Software, Ltd.", + "scripts": { + "build": "typings install && tsc", + "tsc": "tsc", + "tsc:w": "tsc -w", + "typings": "typings" + }, + "repository": { + "type": "git", + "url": "https://github.com/Alfresco/dev-platform-webcomponents.git" + }, + "bugs": { + "url": "https://github.com/Alfresco/dev-platform-webcomponents/issues" + }, + "license": "Apache-2.0", + "contributors": [ + { + "name": "Denys Vuika", + "email": "denis.vuyka@gmail.com" + } + ], + "keywords": [ + "ng2", + "angular", + "angular2", + "alfresco" + ], + "peerDependencies": { + "angular2": "2.0.0-beta.15" + }, + "devDependencies": { + "typescript": "^1.8.10", + "typings": "^0.7.12" + } +} diff --git a/ng2-components/ng2-alfresco-core/tsconfig.json b/ng2-components/ng2-alfresco-core/tsconfig.json new file mode 100644 index 0000000000..2f3531e7b9 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "system", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "removeComments": false, + "noImplicitAny": false, + "declaration": true + }, + "exclude": [ + "node_modules", + "typings/main", + "typings/main.d.ts" + ] +} diff --git a/ng2-components/ng2-alfresco-core/typings.json b/ng2-components/ng2-alfresco-core/typings.json new file mode 100644 index 0000000000..8d5672dbcf --- /dev/null +++ b/ng2-components/ng2-alfresco-core/typings.json @@ -0,0 +1,6 @@ +{ + "ambientDependencies": { + "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd", + "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#5c182b9af717f73146399c2485f70f1e2ac0ff2b" + } +} diff --git a/ng2-components/ng2-alfresco-documentlist/package.json b/ng2-components/ng2-alfresco-documentlist/package.json index 0ce57d2dc3..daf10b3c40 100644 --- a/ng2-components/ng2-alfresco-documentlist/package.json +++ b/ng2-components/ng2-alfresco-documentlist/package.json @@ -30,7 +30,8 @@ "alfresco" ], "peerDependencies": { - "angular2": "2.0.0-beta.15" + "angular2": "2.0.0-beta.15", + "ng2-alfresco-core": "0.1.0" }, "devDependencies": { "typescript": "^1.8.10", diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts index 21704be29f..13cc3e151a 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.d.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * 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 } from "angular2/core"; import { AlfrescoService } from "./alfresco.service"; import { FolderEntity } from "./core/entities/folder.entity"; diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js index f085d63a8e..7fb3ad1d7d 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js +++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js @@ -145,8 +145,7 @@ System.register(["angular2/core", "./alfresco.service"], function(exports_1, con styles: [ "\n :host .breadcrumb {\n margin-bottom: 4px;\n }\n\n :host .folder-icon {\n float: left;\n margin-right: 10px;\n }\n\n :host .file-icon {\n width: 52px;\n height: 52px;\n float: left;\n margin-right: 10px;\n }\n\n :host .document-header:hover {\n text-decoration: underline;\n }\n\n :host .download-button {\n color: #777;\n text-decoration: none;\n }\n\n :host .download-button:hover {\n color: #555;\n }\n " ], - template: "\n
    \n
  1. \n {{r.name}}\n {{r.name}}\n
  2. \n
\n
\n \n ...\n \n \n \n \n \n \n \n

\n {{document.displayName}}\n

\n

{{document.description}}

\n \n Modified {{document.modifiedOn}} by {{document.modifiedBy}}\n \n \n
\n " /*, - providers: [AlfrescoService]*/ + template: "\n
    \n
  1. \n {{r.name}}\n {{r.name}}\n
  2. \n
\n
\n \n ...\n \n \n \n \n \n \n \n

\n {{document.displayName}}\n

\n

{{document.description}}

\n \n Modified {{document.modifiedOn}} by {{document.modifiedBy}}\n \n \n
\n " }), __metadata('design:paramtypes', [alfresco_service_1.AlfrescoService]) ], DocumentList); diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map index 84f7e810d6..d40f5fa365 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map +++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.js.map @@ -1 +1 @@ -{"version":3,"file":"document-list.component.js","sourceRoot":"","sources":["document-list.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAoEA;gBA+BI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBA9B7C,gFAAgF;oBACvE,aAAQ,GAAY,IAAI,CAAC;oBAClC,iFAAiF;oBACxE,eAAU,GAAY,KAAK,CAAC;oBACrC,oGAAoG;oBACxE,oBAAe,GAAW,sBAAsB,CAAC;oBAC7E,wFAAwF;oBAC/E,eAAU,GAAY,IAAI,CAAC;oBACpC,uFAAuF;oBAC9E,cAAS,GAAY,IAAI,CAAC;oBAEzB,cAAS,GAAsB,IAAI,mBAAY,EAAE,CAAC;oBAE5D,eAAU,GAAG;wBACT,IAAI,EAAE,kBAAkB;wBACxB,IAAI,EAAE,uBAAuB;qBAChC,CAAC;oBACF,sBAAiB,GAAW,uBAAuB,CAAC;oBAIpD,UAAK,GAAU,EAAE,CAAC;gBAUf,CAAC;gBAR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AC,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;gBACnE,CAAC;gBAjHD;oBAAC,YAAK,EAAE;;8DAAA;gBAER;oBAAC,YAAK,EAAE;;gEAAA;gBAER;oBAAC,YAAK,CAAC,mBAAmB,CAAC;;qEAAA;gBAE3B;oBAAC,YAAK,EAAE;;gEAAA;gBAER;oBAAC,YAAK,EAAE;;+DAAA;gBAER;oBAAC,aAAM,EAAE;;+DAAA;gBA3Eb;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,wBAAwB;wBAClC,MAAM,EAAE;4BACJ,0sBA6BC;yBACJ;wBACD,QAAQ,EAAE,4nDA0BT;qBACJ,CAAC;;gCAAA;gBAsHF,mBAAC;YAAD,CAAC,AArHD,IAqHC;YArHD,uCAqHC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts index 7f7cc1e7d2..338acae665 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/document-list.component.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright (C) 2016 Alfresco Software Limited. + * + * 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 {Component, OnInit, Input, Output, EventEmitter} from "angular2/core"; import {AlfrescoService} from "./alfresco.service"; import {FolderEntity} from "./core/entities/folder.entity"; @@ -63,8 +79,7 @@ import {DocumentEntity} from "./core/entities/document.entity"; - `/*, - providers: [AlfrescoService]*/ + ` }) export class DocumentList implements OnInit { diff --git a/ng2-components/ng2-alfresco-login/package.json b/ng2-components/ng2-alfresco-login/package.json index 2b7e2da298..1d1c98aa90 100644 --- a/ng2-components/ng2-alfresco-login/package.json +++ b/ng2-components/ng2-alfresco-login/package.json @@ -31,7 +31,8 @@ "alfresco" ], "peerDependencies": { - "angular2": "2.0.0-beta.15" + "angular2": "2.0.0-beta.15", + "ng2-alfresco-core": "0.1.0" }, "devDependencies": { "typescript": "^1.8.10",