#33 draft gulp

This commit is contained in:
Mario Romano
2016-04-19 11:57:05 +01:00
parent c90fac92a8
commit 88bd8ea345
91 changed files with 52110 additions and 96 deletions

View File

@@ -0,0 +1,66 @@
System.register(['angular2/core', 'angular2/router', '../services/authentication'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
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 __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
var core_1, router_1, authentication_1;
var AuthRouterOutlet;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (router_1_1) {
router_1 = router_1_1;
},
function (authentication_1_1) {
authentication_1 = authentication_1_1;
}],
execute: function() {
AuthRouterOutlet = (function (_super) {
__extends(AuthRouterOutlet, _super);
function AuthRouterOutlet(_elementRef, _loader, _parentRouter, nameAttr, authentication) {
_super.call(this, _elementRef, _loader, _parentRouter, nameAttr);
this.authentication = authentication;
this.router = _parentRouter;
this.publicRoutes = [
'', 'login', 'signup'
];
}
AuthRouterOutlet.prototype.activate = function (instruction) {
if (this._canActivate(instruction.urlPath)) {
return _super.prototype.activate.call(this, instruction);
}
this.router.navigate(['Login']);
};
AuthRouterOutlet.prototype._canActivate = function (url) {
return this.publicRoutes.indexOf(url) !== -1
|| this.authentication.isLoggedIn();
};
AuthRouterOutlet = __decorate([
core_1.Directive({ selector: 'auth-router-outlet' }),
__param(3, core_1.Attribute('name')),
__metadata('design:paramtypes', [core_1.ElementRef, core_1.DynamicComponentLoader, router_1.Router, String, authentication_1.Authentication])
], AuthRouterOutlet);
return AuthRouterOutlet;
}(router_1.RouterOutlet));
exports_1("AuthRouterOutlet", AuthRouterOutlet);
}
}
});
//# sourceMappingURL=AuthRouterOutlet.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"AuthRouterOutlet.js","sourceRoot":"","sources":["AuthRouterOutlet.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAKA;gBAAsC,oCAAY;gBAK9C,0BACI,WAAuB,EAAE,OAA+B,EACxD,aAAqB,EAAqB,QAAgB,EAClD,cAA8B;oBAEtC,kBAAM,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;oBAF7C,mBAAc,GAAd,cAAc,CAAgB;oBAItC,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC;oBAC5B,IAAI,CAAC,YAAY,GAAG;wBAChB,EAAE,EAAE,OAAO,EAAE,QAAQ;qBACxB,CAAC;gBACN,CAAC;gBAED,mCAAQ,GAAR,UAAS,WAAiC;oBACtC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;wBACzC,MAAM,CAAC,gBAAK,CAAC,QAAQ,YAAC,WAAW,CAAC,CAAC;oBACvC,CAAC;oBAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;gBACpC,CAAC;gBAED,uCAAY,GAAZ,UAAa,GAAG;oBACZ,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;2BACrC,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;gBAC5C,CAAC;gBA9BL;oBAAC,gBAAS,CAAC,EAAC,QAAQ,EAAE,oBAAoB,EAAC,CAAC;+BAQZ,gBAAS,CAAC,MAAM,CAAC;;oCARL;gBA+B5C,uBAAC;YAAD,CAAC,AA9BD,CAAsC,qBAAY,GA8BjD;YA9BD,+CA8BC,CAAA"}

View File

@@ -0,0 +1,61 @@
System.register(['angular2/core', 'angular2/http', 'rxjs/Observable'], 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;
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;
}],
execute: function() {
AlfrescoService = (function () {
function AlfrescoService(http) {
this.http = http;
this._host = 'http://192.168.99.100:8080';
this._baseUrl = this._host + '/alfresco/service/slingshot/doclib/doclist/all/site/';
}
AlfrescoService.prototype.getFolder = function (folder) {
var headers = new http_1.Headers({
'Content-Type': 'application/json',
'Authorization': 'Basic ' + btoa('admin:admin')
});
var options = new http_1.RequestOptions({ headers: headers });
return this.http
.get(this._baseUrl + folder, options)
.map(function (res) { return res.json(); })
.do(function (data) { return console.log(data); }) // eyeball results in the console
.catch(this.handleError);
};
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.json().error || 'Server error');
};
AlfrescoService = __decorate([
core_1.Injectable(),
__metadata('design:paramtypes', [http_1.Http])
], AlfrescoService);
return AlfrescoService;
}());
exports_1("AlfrescoService", AlfrescoService);
}
}
});
//# sourceMappingURL=alfresco.service.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"alfresco.service.js","sourceRoot":"","sources":["alfresco.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;YAMA;gBACI,yBAAoB,IAAU;oBAAV,SAAI,GAAJ,IAAI,CAAM;oBAEtB,UAAK,GAAW,4BAA4B,CAAC;oBAC7C,aAAQ,GAAW,IAAI,CAAC,KAAK,GAAG,sDAAsD,CAAC;gBAH9D,CAAC;gBAKlC,mCAAS,GAAT,UAAU,MAAc;oBACpB,IAAI,OAAO,GAAG,IAAI,cAAO,CAAC;wBACtB,cAAc,EAAE,kBAAkB;wBAClC,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC;qBAClD,CAAC,CAAC;oBACH,IAAI,OAAO,GAAG,IAAI,qBAAc,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;oBACvD,MAAM,CAAC,IAAI,CAAC,IAAI;yBACX,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAM,EAAE,OAAO,CAAC;yBACpC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAe,GAAG,CAAC,IAAI,EAAE,EAAzB,CAAyB,CAAC;yBACrC,EAAE,CAAC,UAAA,IAAI,IAAI,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAjB,CAAiB,CAAC,CAAC,iCAAiC;yBAC/D,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBACjC,CAAC;gBAEO,qCAAW,GAAnB,UAAqB,KAAe;oBAChC,mFAAmF;oBACnF,4CAA4C;oBAC5C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrB,MAAM,CAAC,uBAAU,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,cAAc,CAAC,CAAC;gBAClE,CAAC;gBAzBL;oBAAC,iBAAU,EAAE;;mCAAA;gBA0Bb,sBAAC;YAAD,CAAC,AAzBD,IAyBC;YAzBD,6CAyBC,CAAA"}

View File

@@ -0,0 +1,65 @@
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 SideMenu;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
SideMenu = (function () {
function SideMenu(el) {
this.el = el;
this.title = '';
this.direction = 'left';
this.isOpen = false;
}
SideMenu.prototype.onClick = function (event) {
event.preventDefault();
event.stopPropagation();
};
SideMenu.prototype.toggle = function () {
this.isOpen = !this.isOpen;
};
SideMenu.prototype.open = function () {
this.isOpen = true;
};
SideMenu.prototype.close = function () {
this.isOpen = false;
};
__decorate([
core_1.Input(),
__metadata('design:type', String)
], SideMenu.prototype, "title", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', String)
], SideMenu.prototype, "direction", void 0);
SideMenu = __decorate([
core_1.Component({
selector: 'side-menu',
host: {
'(click)': 'onClick($event)',
},
template: "\n <nav class=\"cbp-spmenu cbp-spmenu-vertical cbp-spmenu-{{direction}} inline-menu\" \n [ngClass]=\"{ 'cbp-spmenu-open': isOpen }\">\n <h3>\n {{title}}\n <a href=\"#\" class=\"menu-close pull-right\" (click)=\"close()\">\n <i class=\"glyphicon glyphicon-remove\"></i>\n </a>\n </h3>\n <ng-content></ng-content>\n </nav>\n "
}),
__metadata('design:paramtypes', [core_1.ElementRef])
], SideMenu);
return SideMenu;
}());
exports_1("SideMenu", SideMenu);
}
}
});
//# sourceMappingURL=SideMenu.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SideMenu.js","sourceRoot":"","sources":["SideMenu.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAqBA;gBAKI,kBAAoB,EAAc;oBAAd,OAAE,GAAF,EAAE,CAAY;oBAJzB,UAAK,GAAW,EAAE,CAAC;oBACnB,cAAS,GAAW,MAAM,CAAC;oBACpC,WAAM,GAAY,KAAK,CAAC;gBAIxB,CAAC;gBAED,0BAAO,GAAP,UAAQ,KAAK;oBACT,KAAK,CAAC,cAAc,EAAE,CAAC;oBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;gBAC5B,CAAC;gBAED,yBAAM,GAAN;oBACI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC/B,CAAC;gBAED,uBAAI,GAAJ;oBACI,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;gBACvB,CAAC;gBAED,wBAAK,GAAL;oBACI,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;gBACxB,CAAC;gBAvBD;oBAAC,YAAK,EAAE;;uDAAA;gBACR;oBAAC,YAAK,EAAE;;2DAAA;gBArBZ;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,WAAW;wBACrB,IAAI,EAAE;4BACF,SAAS,EAAE,iBAAiB;yBAE/B;wBACD,QAAQ,EAAE,kcAWT;qBACJ,CAAC;;4BAAA;gBA0BF,eAAC;YAAD,CAAC,AAzBD,IAyBC;YAzBD,+BAyBC,CAAA"}

View File

@@ -0,0 +1,17 @@
System.register([], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var DocumentEntity;
return {
setters:[],
execute: function() {
DocumentEntity = (function () {
function DocumentEntity() {
}
return DocumentEntity;
}());
exports_1("DocumentEntity", DocumentEntity);
}
}
});
//# sourceMappingURL=document.entity.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"document.entity.js","sourceRoot":"","sources":["document.entity.ts"],"names":[],"mappings":";;;;;;;YAGA;gBAAA;gBA6BA,CAAC;gBAAD,qBAAC;YAAD,CAAC,AA7BD,IA6BC;YA7BD,2CA6BC,CAAA"}

View File

@@ -0,0 +1,18 @@
System.register([], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var FolderEntity;
return {
setters:[],
execute: function() {
// contains only limited subset of available fields
FolderEntity = (function () {
function FolderEntity() {
}
return FolderEntity;
}());
exports_1("FolderEntity", FolderEntity);
}
}
});
//# sourceMappingURL=folder.entity.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["folder.entity.ts"],"names":[],"mappings":";;;;;;;YAEA,mDAAmD;YACnD;gBAAA;gBAEA,CAAC;gBAAD,mBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,uCAEC,CAAA"}

View File

@@ -0,0 +1,24 @@
System.register([], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var LocationEntity, LocationParentEntity;
return {
setters:[],
execute: function() {
// contains only limited subset of available fields
LocationEntity = (function () {
function LocationEntity() {
}
return LocationEntity;
}());
exports_1("LocationEntity", LocationEntity);
LocationParentEntity = (function () {
function LocationParentEntity() {
}
return LocationParentEntity;
}());
exports_1("LocationParentEntity", LocationParentEntity);
}
}
});
//# sourceMappingURL=location.entity.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"location.entity.js","sourceRoot":"","sources":["location.entity.ts"],"names":[],"mappings":";;;;;;;YAAA,mDAAmD;YACnD;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"}

View File

@@ -0,0 +1,40 @@
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 AppNavBar;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
AppNavBar = (function () {
function AppNavBar() {
}
AppNavBar = __decorate([
core_1.Component({
selector: 'app-navbar',
template: "\n <nav class=\"navbar navbar-default navbar-fixed-top\">\n <div class=\"container-fluid\">\n <ng-content></ng-content>\n </div>\n </nav>\n ",
styles: [
"\n :host .image-button {\n padding-bottom: 10px;\n padding-top: 12px;\n max-height: 50px;\n }\n "
]
}),
__metadata('design:paramtypes', [])
], AppNavBar);
return AppNavBar;
}());
exports_1("AppNavBar", AppNavBar);
}
}
});
//# sourceMappingURL=navbar.component.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"navbar.component.js","sourceRoot":"","sources":["navbar.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAqBA;gBAAA;gBAEA,CAAC;gBArBD;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,YAAY;wBACtB,QAAQ,EAAE,oMAMT;wBACD,MAAM,EAAE;4BACJ,wJAMC;yBACJ;qBACJ,CAAC;;6BAAA;gBAGF,gBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,iCAEC,CAAA"}

View File

@@ -0,0 +1,71 @@
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 Tabs, Tab;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
Tabs = (function () {
function Tabs() {
this.tabs = [];
}
Tabs.prototype.selectTab = function (tab, $event) {
this.tabs.forEach(function (tab) {
tab.active = false;
});
tab.active = true;
if ($event) {
$event.preventDefault();
}
};
Tabs.prototype.addTab = function (tab) {
if (this.tabs.length === 0) {
tab.active = true;
}
this.tabs.push(tab);
};
Tabs = __decorate([
core_1.Component({
selector: 'tabs',
template: "\n <ul class=\"nav nav-tabs\">\n <li *ngFor=\"#tab of tabs\" (click)=\"selectTab(tab, $event)\" [class.active]=\"tab.active\">\n <a href=\"#\">{{tab.title}}</a>\n </li>\n </ul>\n <ng-content></ng-content>\n "
}),
__metadata('design:paramtypes', [])
], Tabs);
return Tabs;
}());
exports_1("Tabs", Tabs);
Tab = (function () {
function Tab(tabs) {
tabs.addTab(this);
}
__decorate([
core_1.Input('tabTitle'),
__metadata('design:type', Object)
], Tab.prototype, "title", void 0);
Tab = __decorate([
core_1.Component({
selector: 'tab',
template: "\n <div [hidden]=\"!active\">\n <ng-content></ng-content>\n </div>\n "
}),
__metadata('design:paramtypes', [Tabs])
], Tab);
return Tab;
}());
exports_1("Tab", Tab);
}
}
});
//# sourceMappingURL=tabs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["tabs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAaA;gBAAA;oBACI,SAAI,GAAU,EAAE,CAAC;gBAkBrB,CAAC;gBAhBG,wBAAS,GAAT,UAAU,GAAO,EAAE,MAAM;oBACrB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAA,GAAG;wBACjB,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC;oBACvB,CAAC,CAAC,CAAC;oBACH,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC;oBAClB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;wBACT,MAAM,CAAC,cAAc,EAAE,CAAC;oBAC5B,CAAC;gBACL,CAAC;gBAED,qBAAM,GAAN,UAAO,GAAO;oBACV,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;wBACzB,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC;oBACtB,CAAC;oBACD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACxB,CAAC;gBA7BL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,MAAM;wBAChB,QAAQ,EAAE,8QAOT;qBACJ,CAAC;;wBAAA;gBAoBF,WAAC;YAAD,CAAC,AAnBD,IAmBC;YAnBD,uBAmBC,CAAA;YAWD;gBAII,aAAY,IAAU;oBAClB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC;gBALD;oBAAC,YAAK,CAAC,UAAU,CAAC;;kDAAA;gBATtB;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE,mGAIT;qBACJ,CAAC;;uBAAA;gBAQF,UAAC;YAAD,CAAC,AAPD,IAOC;YAPD,qBAOC,CAAA"}

View File

@@ -0,0 +1,95 @@
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 DocumentList;
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() {
DocumentList = (function () {
function DocumentList(_alfrescoService) {
this._alfrescoService = _alfrescoService;
// example: <alfresco-document-list [navigate]="false"></alfresco-document-list>
this.navigate = true;
this.rootFolderPath = 'swsdp/documentLibrary';
this.currentFolderPath = 'swsdp/documentLibrary';
this.route = [];
}
DocumentList.prototype.canNavigateParent = function () {
return this.currentFolderPath !== this.rootFolderPath;
};
DocumentList.prototype.ngOnInit = function () {
this.route.push(this.rootFolderPath);
this.displayFolderContent(this.rootFolderPath);
};
DocumentList.prototype.displayFolderContent = function (path) {
var _this = this;
this.currentFolderPath = path;
this._alfrescoService
.getFolder(path)
.subscribe(function (folder) { return _this.folder = folder; }, function (error) { return _this.errorMessage = error; });
};
DocumentList.prototype.onNavigateParentClick = function ($event) {
if ($event) {
$event.preventDefault();
}
if (this.navigate) {
this.route.pop();
var parent = this.route.length > 0 ? this.route[this.route.length - 1] : this.rootFolderPath;
if (parent) {
this.displayFolderContent(parent);
}
}
};
DocumentList.prototype.onItemClick = function (item, $event) {
if ($event) {
$event.preventDefault();
}
if (this.navigate && item) {
if (item.isFolder) {
var path = this.getItemPath(item);
this.route.push(path);
this.displayFolderContent(path);
}
}
};
DocumentList.prototype.getItemPath = function (item) {
var container = item.location.container;
var path = item.location.path !== '/' ? (item.location.path + '/') : '/';
var relativePath = container + path + item.fileName;
return item.location.site + '/' + relativePath;
};
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], DocumentList.prototype, "navigate", void 0);
DocumentList = __decorate([
core_1.Component({
selector: 'alfresco-document-list',
template: "\n <div *ngIf=\"folder\" class=\"list-group\">\n <a href=\"#\" *ngIf=\"canNavigateParent()\" (click)=\"onNavigateParentClick($event)\" class=\"list-group-item\">\n <i class=\"fa fa-level-up\"></i> ...\n </a>\n <a href=\"#\" *ngFor=\"#document of folder.items\" (click)=\"onItemClick(document, $event)\" class=\"list-group-item\">\n <i *ngIf=\"document.isFolder\" class=\"fa fa-folder-o\"></i>\n {{document.displayName}}\n </a>\n </div>\n ",
providers: [alfresco_service_1.AlfrescoService]
}),
__metadata('design:paramtypes', [alfresco_service_1.AlfrescoService])
], DocumentList);
return DocumentList;
}());
exports_1("DocumentList", DocumentList);
}
}
});
//# sourceMappingURL=document-list.component.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"document-list.component.js","sourceRoot":"","sources":["document-list.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAoBA;gBAgBI,sBACY,gBAAiC;oBAAjC,qBAAgB,GAAhB,gBAAgB,CAAiB;oBAf7C,gFAAgF;oBACvE,aAAQ,GAAY,IAAI,CAAC;oBAElC,mBAAc,GAAW,uBAAuB,CAAC;oBACjD,sBAAiB,GAAW,uBAAuB,CAAC;oBAI5C,UAAK,GAAa,EAAE,CAAC;gBAQ1B,CAAC;gBANJ,wCAAiB,GAAjB;oBACI,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CAAC,CAAC;wBACT,MAAM,CAAC,cAAc,EAAE,CAAC;oBAC5B,CAAC;oBAED,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC;wBACxB,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;4BAChB,IAAI,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;4BAClC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;4BACtB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;wBACpC,CAAC;oBACL,CAAC;gBACL,CAAC;gBAEO,kCAAW,GAAnB,UAAoB,IAAoB;oBACpC,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;oBACxC,IAAI,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAE,GAAG,GAAG,CAAC;oBAC1E,IAAI,YAAY,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC;oBACpD,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,GAAG,YAAY,CAAC;gBACnD,CAAC;gBAjED;oBAAC,YAAK,EAAE;;8DAAA;gBAlBZ;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,wBAAwB;wBAClC,QAAQ,EAAE,kiBAUT;wBACD,SAAS,EAAE,CAAC,kCAAe,CAAC;qBAC/B,CAAC;;gCAAA;gBAsEF,mBAAC;YAAD,CAAC,AArED,IAqEC;YArED,uCAqEC,CAAA"}

View File

@@ -0,0 +1,113 @@
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 FormDesignSurface;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
FormDesignSurface = (function () {
function FormDesignSurface(elementRef) {
this.elementRef = elementRef;
//el.nativeElement.style.backgroundColor = 'yellow';
}
Object.defineProperty(FormDesignSurface.prototype, "selectedWidget", {
get: function () {
return this._selectedWidget;
},
set: function (val) {
if (this.selectedWidget && this.selectedWidget != val) {
this._selectedWidget.classList.remove('selected');
}
this._selectedWidget = val;
if (this._selectedWidget) {
this._selectedWidget.classList.add('selected');
}
},
enumerable: true,
configurable: true
});
FormDesignSurface.prototype.ngOnInit = function () {
// Create root container
var container = widgets.container.create();
container.dataset.widgetType = 'container';
this.setupWidget(container);
this.elementRef.nativeElement.appendChild(container);
};
FormDesignSurface.prototype.setupWidget = function (widget) {
// initialize all drop placeholders
var dropPlaceholders = widget.querySelectorAll('.drop-zone');
for (var i = 0; i < dropPlaceholders.length; i++) {
var placeholder = dropPlaceholders[i];
var z = new dropZone({
element: placeholder,
onDrop: this.onWidgetDrop.bind(this)
});
}
// initialize clicks
if (widget.dataset['widgetId']) {
widget.addEventListener('mouseup', this.onWidgetMouseUp.bind(this), false);
}
// wire child element clicks
var nested = widget.querySelectorAll('[data-widget-id]');
for (var x = 0; x < nested.length; x++) {
nested[x].addEventListener('mouseup', this.onWidgetMouseUp.bind(this), false);
}
};
FormDesignSurface.prototype.onWidgetMouseUp = function (e) {
var wid = e.currentTarget.dataset.widgetId;
if (wid) {
console.log('Selected Widget Id: ' + wid);
this.selectedWidget = e.currentTarget;
e.stopPropagation();
}
};
FormDesignSurface.prototype.onWidgetDrop = function (dz, opts) {
var widgetType = opts.widgetType;
if (widgetType) {
var component = widgets[widgetType];
if (component) {
var widget = component.create();
if (widget) {
widget.dataset.widgetType = widgetType;
this.setupWidget(widget);
// insert widget before drop zone
var container = dz.parentElement;
container.insertBefore(widget, dz);
// create new drop zone
var zone = new dropZone({
onDrop: this.onWidgetDrop.bind(this),
minHeight: '5px'
});
// insert new drop zone before widget
container.insertBefore(zone.element, widget);
}
}
}
};
FormDesignSurface = __decorate([
core_1.Component({
selector: 'form-design-surface',
template: '<div></div>'
}),
__metadata('design:paramtypes', [core_1.ElementRef])
], FormDesignSurface);
return FormDesignSurface;
}());
exports_1("FormDesignSurface", FormDesignSurface);
}
}
});
//# sourceMappingURL=form-design-surface.component.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"form-design-surface.component.js","sourceRoot":"","sources":["form-design-surface.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YASA;gBAII,2BAAmB,UAAsB;oBAAtB,eAAU,GAAV,UAAU,CAAY;oBACrC,oDAAoD;gBACxD,CAAC;gBAED,sBAAI,6CAAc;yBAAlB;wBACI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;oBAChC,CAAC;yBAED,UAAmB,GAAY;wBAC3B,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,IAAI,GAAG,CAAC,CAAC,CAAC;4BACpD,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;wBACtD,CAAC;wBACD,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;wBAC3B,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;4BACvB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;wBACnD,CAAC;oBACL,CAAC;;;m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gCACH,qCAAqC;gCACrC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;4BACjD,CAAC;wBACL,CAAC;oBACL,CAAC;gBACL,CAAC;gBAzFL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,qBAAqB;wBAC/B,QAAQ,EAAE,aAAa;qBAC1B,CAAC;;qCAAA;gBAuFF,wBAAC;YAAD,CAAC,AAtFD,IAsFC;YAtFD,iDAsFC,CAAA"}

View File

@@ -0,0 +1,66 @@
System.register(["angular2/core", "../services/form-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, form_service_1;
var FormDesignToolbar;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (form_service_1_1) {
form_service_1 = form_service_1_1;
}],
execute: function() {
FormDesignToolbar = (function () {
function FormDesignToolbar(_formService) {
this._formService = _formService;
}
FormDesignToolbar.prototype.ngOnInit = function () {
this.categories = this._formService.getWidgetCategories();
// Stores drag ghost elements
this.dragCache = document.getElementById('drag-images-cache');
};
FormDesignToolbar.prototype.onElementDragStart = function (e) {
e.dataTransfer.effectAllowed = 'move';
var widgetType = e.target.dataset.widgetType;
var payload = { "widgetType": widgetType };
e.dataTransfer.setData('text', JSON.stringify(payload));
//var dragImage = getDragImage(widgetType);
var dragImage = this._formService.getDragImage(widgetType);
this.dragCache.appendChild(dragImage);
//e.dataTransfer.setDragImage(dragImage, dragImage.offsetWidth / 2, 0);
e.dataTransfer.setDragImage(dragImage, 0, 0);
e.stopPropagation();
};
FormDesignToolbar.prototype.onElementDragEnd = function (e) {
if (this.dragCache) {
this.dragCache.innerHTML = '';
}
};
FormDesignToolbar = __decorate([
core_1.Component({
selector: 'form-design-toolbar',
providers: [form_service_1.FormService],
//encapsulation: ViewEncapsulation.Native,
styles: ["\n .category-header {\n color: #555;\n padding: 11px;\n margin: 0;\n background: #e7e7e7;\n cursor: default;\n font-size: 14px;\n font-weight: bold;\n }\n \n a.toolbar-item {\n cursor: move;\n \n display: block;\n color: #777;\n font-size: 1.1em;\n font-weight: 300;\n text-decoration: none;\n \n border-bottom: 1px solid #e7e7e7;\n padding: 1em;\n }\n \n a.toolbar-item:hover {\n color: #555;\n background: #f8f8f8;\n }\n \n a.toolbar-item:active, a.toolbar-item.active {\n color: #fff;\n border-color: #428bca;\n background-color: #428bca;\n }\n "],
template: "\n <template ngFor #category [ngForOf]=\"categories\">\n <h3 class=\"category-header\">{{category.name}}</h3>\n <a *ngFor=\"#widget of category.widgets\" class=\"toolbar-item\" attr.data-widget-type=\"{{widget.type}}\" draggable=\"true\"\n (dragstart)=\"onElementDragStart($event)\" (dragend)=\"onElementDragEnd($event)\">\n <i class=\"{{widget.iconClass || 'fa fa-puzzle-piece'}}\"></i> {{widget.name}}\n </a>\n </template>\n "
}),
__metadata('design:paramtypes', [form_service_1.FormService])
], FormDesignToolbar);
return FormDesignToolbar;
}());
exports_1("FormDesignToolbar", FormDesignToolbar);
}
}
});
//# sourceMappingURL=form-design-toolbar.component.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"form-design-toolbar.component.js","sourceRoot":"","sources":["form-design-toolbar.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAoDA;gBAKI,2BACY,YAAyB;oBAAzB,iBAAY,GAAZ,YAAY,CAAa;gBAClC,CAAC;gBA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BAAC;YAAD,CAAC,AAtCD,IAsCC;YAtCD,iDAsCC,CAAA"}

View File

@@ -0,0 +1,41 @@
System.register(['angular2/core', "./form-design-surface.component"], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
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, form_design_surface_component_1;
var FormsView;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (form_design_surface_component_1_1) {
form_design_surface_component_1 = form_design_surface_component_1_1;
}],
execute: function() {
FormsView = (function () {
function FormsView() {
}
FormsView = __decorate([
core_1.Component({
selector: 'forms-view',
template: "\n <div class=\"container\" style=\"width:970px;\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <!-- Design surface -->\n <form-design-surface></form-design-surface>\n </div>\n </div>\n </div>\n ",
directives: [form_design_surface_component_1.FormDesignSurface]
}),
__metadata('design:paramtypes', [])
], FormsView);
return FormsView;
}());
exports_1("FormsView", FormsView);
}
}
});
//# sourceMappingURL=forms.view.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"forms.view.js","sourceRoot":"","sources":["forms.view.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAiBA;gBAAA;gBAKA,CAAC;gBAnBD;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,YAAY;wBACtB,QAAQ,EAAE,wTAST;wBACD,UAAU,EAAE,CAAC,iDAAiB,CAAC;qBAClC,CAAC;;6BAAA;gBAMF,gBAAC;YAAD,CAAC,AALD,IAKC;YALD,iCAKC,CAAA"}

View File

@@ -0,0 +1,38 @@
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 HomeView;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
HomeView = (function () {
function HomeView() {
}
HomeView = __decorate([
core_1.Component({
selector: 'home-view',
template: "\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <h1>Home View</h1>\n </div>\n </div>\n </div>\n ",
directives: []
}),
__metadata('design:paramtypes', [])
], HomeView);
return HomeView;
}());
exports_1("HomeView", HomeView);
}
}
});
//# sourceMappingURL=home.view.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"home.view.js","sourceRoot":"","sources":["home.view.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAeA;gBAAA;gBACA,CAAC;gBAdD;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,WAAW;wBACrB,QAAQ,EAAE,2NAQT;wBACD,UAAU,EAAE,EAAE;qBACjB,CAAC;;4BAAA;gBAEF,eAAC;YAAD,CAAC,AADD,IACC;YADD,+BACC,CAAA"}

View File

@@ -0,0 +1,62 @@
System.register(["angular2/core", "angular2/router", "angular2/common", "../services/authentication"], 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, router_1, common_1, authentication_1;
var Login;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (router_1_1) {
router_1 = router_1_1;
},
function (common_1_1) {
common_1 = common_1_1;
},
function (authentication_1_1) {
authentication_1 = authentication_1_1;
}],
execute: function() {
Login = (function () {
function Login(fb, auth, router) {
this.auth = auth;
this.router = router;
this.error = false;
this.form = fb.group({
username: ['', common_1.Validators.required],
password: ['', common_1.Validators.required]
});
}
Login.prototype.onSubmit = function (value, event) {
var _this = this;
//event.preventDefault();
this.auth.login(value.username, value.password)
.subscribe(
//(token: any) => this.router.navigate(['../Home']),
function (token) { return _this.router.navigate(['Home']); }, function () { _this.error = true; });
};
Login = __decorate([
core_1.Component({
selector: 'login',
directives: [router_1.ROUTER_DIRECTIVES, common_1.FORM_DIRECTIVES],
template: "\n <div class=\"row\">\n <div class=\"col-md-4 col-md-offset-4\">\n <form [ngFormModel]=\"form\" (submit)=\"onSubmit(form.value, $event)\">\n <div *ngIf=\"error\">Check your password</div>\n <div class=\"form-group\">\n <label for=\"username\">Username</label>\n <input class=\"form-control\" type=\"text\" ngControl=\"username\">\n </div>\n <div class=\"form-group\">\n <label for=\"password\">Password</label>\n <input class=\"form-control\" type=\"password\" ngControl=\"password\">\n </div>\n <button type=\"submit\" class=\"btn btn-default\" [disabled]=\"!form.valid\">Login</button>\n </form>\n </div>\n </div>\n "
}),
__metadata('design:paramtypes', [common_1.FormBuilder, authentication_1.Authentication, router_1.Router])
], Login);
return Login;
}());
exports_1("Login", Login);
}
}
});
//# sourceMappingURL=login.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"login.js","sourceRoot":"","sources":["login.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2BA;gBAII,eAAY,EAAe,EAAS,IAAoB,EAAS,MAAc;oBAA3C,SAAI,GAAJ,IAAI,CAAgB;oBAAS,WAAM,GAAN,MAAM,CAAQ;oBAF/E,UAAK,GAAY,KAAK,CAAC;oBAGnB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,KAAK,CAAC;wBACjB,QAAQ,EAAG,CAAC,EAAE,EAAE,mBAAU,CAAC,QAAQ,CAAC;wBACpC,QAAQ,EAAG,CAAC,EAAE,EAAE,mBAAU,CAAC,QAAQ,CAAC;qBACvC,CAAC,CAAC;gBACP,CAAC;gBAED,wBAAQ,GAAR,UAAS,KAAU,EAAE,KAAK;oBAA1B,iBAQC;oBAPG,yBAAyB;oBACzB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;yBAC1C,SAAS;oBACN,oDAAoD;oBACpD,UAAC,KAAU,IAAK,OAAA,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,EAA9B,CAA8B,EAC9C,cAAQ,KAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAC/B,CAAC;gBACV,CAAC;gBAzCL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,OAAO;wBACjB,UAAU,EAAE,CAAC,0BAAiB,EAAE,wBAAe,CAAC;wBAChD,QAAQ,EAAE,g4BAiBT;qBACJ,CAAC;;yBAAA;gBAqBF,YAAC;YAAD,CAAC,AApBD,IAoBC;YApBD,yBAoBC,CAAA"}

View File

@@ -0,0 +1,41 @@
System.register(["angular2/core", "./document-list.component"], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
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_component_1;
var Page1View;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (document_list_component_1_1) {
document_list_component_1 = document_list_component_1_1;
}],
execute: function() {
Page1View = (function () {
function Page1View() {
}
Page1View = __decorate([
core_1.Component({
selector: 'page1-view',
template: "\n <div class=\"container\">\n <div class=\"row\">\n <alfresco-document-list></alfresco-document-list>\n </div>\n </div>\n ",
directives: [document_list_component_1.DocumentList]
}),
__metadata('design:paramtypes', [])
], Page1View);
return Page1View;
}());
exports_1("Page1View", Page1View);
}
}
});
//# sourceMappingURL=page1.view.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"page1.view.js","sourceRoot":"","sources":["page1.view.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAaA;gBAAA;gBAEA,CAAC;gBAbD;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,YAAY;wBACtB,QAAQ,EAAE,mLAMT;wBACD,UAAU,EAAE,CAAC,sCAAY,CAAC;qBAC7B,CAAC;;6BAAA;gBAGF,gBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,iCAEC,CAAA"}

View File

@@ -0,0 +1,38 @@
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 Page2View;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
Page2View = (function () {
function Page2View() {
this.username = 'Unicorn';
}
Page2View = __decorate([
core_1.Component({
selector: 'page2-view',
template: "\n <div class=\"container\">\n <div class=\"row\">\n <h1>Page 2</h1>\n <input [(ngModel)]=\"username\">\n <span>Username: {{username}}</span>\n <hello-world [text]=\"username\"></hello-world>\n <hello-world text=\"test user\"></hello-world>\n <alfresco-login (submit)=methodAngular></alfresco-login>\n </div>\n </div>\n "
}),
__metadata('design:paramtypes', [])
], Page2View);
return Page2View;
}());
exports_1("Page2View", Page2View);
}
}
});
//# sourceMappingURL=page2.view.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"page2.view.js","sourceRoot":"","sources":["page2.view.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAgBA;gBAAA;oBACI,aAAQ,GAAW,SAAS,CAAC;gBACjC,CAAC;gBAjBD;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,YAAY;wBACtB,QAAQ,EAAE,ocAWT;qBACJ,CAAC;;6BAAA;gBAGF,gBAAC;YAAD,CAAC,AAFD,IAEC;YAFD,iCAEC,CAAA"}