diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index 3a468bd9ea..6098fe70ed 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -6,7 +6,7 @@ import {AuthRouterOutlet} from './components/AuthRouterOutlet'; import {HomeView} from './components/home.view'; import {Page1View} from './components/page1.view'; import {Page2View} from './components/page2.view'; -import {AlfrescoService} from 'ng2-alfresco-documentlist/component'; +import {AlfrescoService} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist'; @Component({ selector: 'my-app', diff --git a/demo-shell-ng2/app/components/home.view.ts b/demo-shell-ng2/app/components/home.view.ts index 3897a2cf1d..88abd1c8b5 100644 --- a/demo-shell-ng2/app/components/home.view.ts +++ b/demo-shell-ng2/app/components/home.view.ts @@ -1,5 +1,5 @@ import {Component} from 'angular2/core'; -import {DocumentList} from 'ng2-alfresco-documentlist/component'; +import {DocumentList} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist'; @Component({ selector: 'home-view', diff --git a/demo-shell-ng2/app/main.ts b/demo-shell-ng2/app/main.ts index 07c2103b10..2d21904f1f 100644 --- a/demo-shell-ng2/app/main.ts +++ b/demo-shell-ng2/app/main.ts @@ -3,7 +3,7 @@ import {AppComponent} from './app.component'; import {ROUTER_PROVIDERS} from 'angular2/router'; import {HTTP_PROVIDERS} from 'angular2/http'; import {Authentication} from './services/authentication'; -import {ALFRESCO_PROVIDERS} from 'ng2-alfresco-documentlist/component'; +import {ALFRESCO_PROVIDERS} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist'; bootstrap(AppComponent, [ ROUTER_PROVIDERS, diff --git a/ng2-components/ng2-alfresco-documentlist/component.js.map b/ng2-components/ng2-alfresco-documentlist/component.js.map deleted file mode 100644 index 019094a660..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component.js","sourceRoot":"","sources":["component.ts"],"names":[],"mappings":";;;;QAaa,mBAAmB,EACnB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;YAN/B,oBAAe;gBACX,UAAU,EAAE,CAAC,uBAAU,EAAE,sCAAY,CAAC;gBACtC,SAAS,EAAE,CAAC,kCAAe,CAAC;aAC/B,EAAA;YAEY,iCAAA,mBAAmB,GAAU,CAAC,uBAAU,EAAE,sCAAY,CAAC,CAAA,CAAC;YACxD,gCAAA,kBAAkB,GAAU,CAAC,kCAAe,CAAC,CAAA,CAAC"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/component.d.ts b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.d.ts similarity index 73% rename from ng2-components/ng2-alfresco-documentlist/component.d.ts rename to ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.d.ts index 105b3fa3e7..081f2c7813 100644 --- a/ng2-components/ng2-alfresco-documentlist/component.d.ts +++ b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.d.ts @@ -1,11 +1,9 @@ -import { HelloWorld } from './src/HelloWorld'; import { DocumentList } from './src/document-list.component'; import { AlfrescoService } from './src/alfresco.service'; -export * from './src/HelloWorld'; export * from './src/document-list.component'; export * from './src/alfresco.service'; declare var _default: { - directives: (typeof HelloWorld | typeof DocumentList)[]; + directives: typeof DocumentList[]; providers: typeof AlfrescoService[]; }; export default _default; diff --git a/ng2-components/ng2-alfresco-documentlist/component.js b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js similarity index 68% rename from ng2-components/ng2-alfresco-documentlist/component.js rename to ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js index abcad8c5cb..ae6f2c956a 100644 --- a/ng2-components/ng2-alfresco-documentlist/component.js +++ b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js @@ -1,7 +1,7 @@ -System.register(['./src/HelloWorld', './src/document-list.component', './src/alfresco.service'], function(exports_1, context_1) { +System.register(['./src/document-list.component', './src/alfresco.service'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; - var HelloWorld_1, document_list_component_1, alfresco_service_1; + var document_list_component_1, alfresco_service_1; var ALFRESCO_DIRECTIVES, ALFRESCO_PROVIDERS; var exportedNames_1 = { 'ALFRESCO_DIRECTIVES': true, @@ -16,10 +16,6 @@ System.register(['./src/HelloWorld', './src/document-list.component', './src/alf } return { setters:[ - function (HelloWorld_1_1) { - HelloWorld_1 = HelloWorld_1_1; - exportStar_1(HelloWorld_1_1); - }, function (document_list_component_1_1) { document_list_component_1 = document_list_component_1_1; exportStar_1(document_list_component_1_1); @@ -30,12 +26,12 @@ System.register(['./src/HelloWorld', './src/document-list.component', './src/alf }], execute: function() { exports_1("default",{ - directives: [HelloWorld_1.HelloWorld, document_list_component_1.DocumentList], + directives: [document_list_component_1.DocumentList], providers: [alfresco_service_1.AlfrescoService] }); - exports_1("ALFRESCO_DIRECTIVES", ALFRESCO_DIRECTIVES = [HelloWorld_1.HelloWorld, document_list_component_1.DocumentList]); + exports_1("ALFRESCO_DIRECTIVES", ALFRESCO_DIRECTIVES = [document_list_component_1.DocumentList]); exports_1("ALFRESCO_PROVIDERS", ALFRESCO_PROVIDERS = [alfresco_service_1.AlfrescoService]); } } }); -//# sourceMappingURL=component.js.map \ No newline at end of file +//# 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 new file mode 100644 index 0000000000..9f138a95a5 --- /dev/null +++ b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ng2-alfresco-documentlist.js","sourceRoot":"","sources":["ng2-alfresco-documentlist.ts"],"names":[],"mappings":";;;;QAWa,mBAAmB,EACnB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;YAN/B,oBAAe;gBACX,UAAU,EAAE,CAAC,sCAAY,CAAC;gBAC1B,SAAS,EAAE,CAAC,kCAAe,CAAC;aAC/B,EAAA;YAEY,iCAAA,mBAAmB,GAAU,CAAC,sCAAY,CAAC,CAAA,CAAC;YAC5C,gCAAA,kBAAkB,GAAU,CAAC,kCAAe,CAAC,CAAA,CAAC"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/component.ts b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.ts similarity index 62% rename from ng2-components/ng2-alfresco-documentlist/component.ts rename to ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.ts index 18c18e186a..24059de9cd 100644 --- a/ng2-components/ng2-alfresco-documentlist/component.ts +++ b/ng2-components/ng2-alfresco-documentlist/ng2-alfresco-documentlist.ts @@ -1,15 +1,13 @@ -import {HelloWorld} from './src/HelloWorld'; import {DocumentList} from './src/document-list.component'; import {AlfrescoService} from './src/alfresco.service'; -export * from './src/HelloWorld'; export * from './src/document-list.component'; export * from './src/alfresco.service'; export default { - directives: [HelloWorld, DocumentList], + directives: [DocumentList], providers: [AlfrescoService] } -export const ALFRESCO_DIRECTIVES: [any] = [HelloWorld, DocumentList]; +export const ALFRESCO_DIRECTIVES: [any] = [DocumentList]; export const ALFRESCO_PROVIDERS: [any] = [AlfrescoService]; diff --git a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.d.ts b/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.d.ts deleted file mode 100644 index e5156d2fe5..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class HelloWorld { - message: string; - onClick(): void; -} diff --git a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.js b/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.js deleted file mode 100644 index 0c12da0d18..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.js +++ /dev/null @@ -1,43 +0,0 @@ -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 HelloWorld; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }], - execute: function() { - HelloWorld = (function () { - function HelloWorld() { - this.message = "Click Me ..."; - } - HelloWorld.prototype.onClick = function () { - this.message = "Hello World!"; - console.log(this.message); - }; - HelloWorld = __decorate([ - core_1.Component({ - selector: 'hello-world', - styles: ["\n h1 {\n color: blue;\n }\n "], - template: "
\n

{{message}}

\n
" - }), - __metadata('design:paramtypes', []) - ], HelloWorld); - return HelloWorld; - }()); - exports_1("HelloWorld", HelloWorld); - } - } -}); -//# sourceMappingURL=HelloWorld.js.map \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.js.map b/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.js.map deleted file mode 100644 index e64fb92780..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HelloWorld.js","sourceRoot":"","sources":["HelloWorld.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAaA;gBAAA;oBAEI,YAAO,GAAG,cAAc,CAAC;gBAQ7B,CAAC;gBANG,4BAAO,GAAP;oBACI,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC;oBAC9B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAE9B,CAAC;gBAnBL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,aAAa;wBACvB,MAAM,EAAE,CAAC,0DAIR,CAAC;wBACF,QAAQ,EAAE,4FAEQ;qBACrB,CAAC;;8BAAA;gBAWF,iBAAC;YAAD,CAAC,AAVD,IAUC;YAVD,mCAUC,CAAA"} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.ts b/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.ts deleted file mode 100644 index d36fb5216e..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/src/HelloWorld.ts +++ /dev/null @@ -1,24 +0,0 @@ -import {Component} from 'angular2/core'; - -@Component({ - selector: 'hello-world', - styles: [` - h1 { - color: blue; - } - `], - template: `
-

{{message}}

-
` -}) -export class HelloWorld { - - message = "Click Me ..."; - - onClick() { - this.message = "Hello World!"; - console.log(this.message); - - } - -}