UNPKG

nakedobjects.spa

Version:

Single Page Application client for a Naked Objects application.

69 lines 3.28 kB
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); }; import { Component } from '@angular/core'; import { ViewModelFactoryService } from '../view-model-factory.service'; import * as Msg from '../user-messages'; import { AuthService } from '../auth.service'; var ApplicationPropertiesComponent = (function () { function ApplicationPropertiesComponent(viewModelFactory, authService) { this.viewModelFactory = viewModelFactory; this.authService = authService; } Object.defineProperty(ApplicationPropertiesComponent.prototype, "applicationName", { get: function () { return this.applicationProperties.applicationName; }, enumerable: true, configurable: true }); Object.defineProperty(ApplicationPropertiesComponent.prototype, "userName", { get: function () { return this.applicationProperties.user ? this.applicationProperties.user.userName : Msg.noUserMessage; }, enumerable: true, configurable: true }); Object.defineProperty(ApplicationPropertiesComponent.prototype, "serverUrl", { get: function () { return this.applicationProperties.serverUrl; }, enumerable: true, configurable: true }); Object.defineProperty(ApplicationPropertiesComponent.prototype, "implVersion", { get: function () { return this.applicationProperties.serverVersion ? this.applicationProperties.serverVersion.implVersion : ""; }, enumerable: true, configurable: true }); Object.defineProperty(ApplicationPropertiesComponent.prototype, "clientVersion", { get: function () { return this.applicationProperties.clientVersion; }, enumerable: true, configurable: true }); ApplicationPropertiesComponent.prototype.ngOnInit = function () { this.applicationProperties = this.viewModelFactory.applicationPropertiesViewModel(); }; return ApplicationPropertiesComponent; }()); ApplicationPropertiesComponent = __decorate([ Component({ selector: 'nof-application-properties', template: require('./application-properties.component.html'), styles: [require('./application-properties.component.css')] }), __metadata("design:paramtypes", [ViewModelFactoryService, AuthService]) ], ApplicationPropertiesComponent); export { ApplicationPropertiesComponent }; //# sourceMappingURL=application-properties.component.js.map