site-menu.component.js
11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"use strict";
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 = require('@angular/core');
var application_service_1 = require('../../services/application.service');
var router_1 = require('@angular/router');
var SiteMenuComponent = (function () {
function SiteMenuComponent(application, router) {
this.application = application;
this.router = router;
this.type = 'fixed';
this.hidden = true;
}
SiteMenuComponent.prototype.hiddenClass = function () {
if (this.hidden)
return "hidden";
else
"";
};
SiteMenuComponent.prototype.ngAfterViewInit = function () {
var _this = this;
setTimeout(function () { return _this.attachSideBar(); }, 2000);
};
SiteMenuComponent.prototype.getMenuIconOrText = function (menuItem) {
if (menuItem.icon == null)
return menuItem.name;
else
return "<i class='large " + menuItem.icon + " icon'></i>";
};
SiteMenuComponent.prototype.makeActive = function (index) {
if (index == 0)
return "active";
else
return "";
};
SiteMenuComponent.prototype.attachSideBar = function () {
if (jQuery != null) {
jQuery('.ui.sidebar')
.sidebar('attach events', '.toc.item');
jQuery('.ui.dropdown')
.dropdown();
}
};
SiteMenuComponent.prototype.navigateToUrl = function (url) {
this.router.navigate([url]);
};
__decorate([
core_1.Input('type'),
__metadata('design:type', String)
], SiteMenuComponent.prototype, "type", void 0);
__decorate([
core_1.Input('hidden'),
__metadata('design:type', Boolean)
], SiteMenuComponent.prototype, "hidden", void 0);
SiteMenuComponent = __decorate([
core_1.Component({
selector: 'site-menu',
template: "\n<nav class=\"navbar navbar-inverse navbar-fixed-top\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n\n <a class=\"navbar-brand\" href=\"#\"><img src=\"app/assets/img/logo-main.png\" class=\"img-responsive\" alt=\"\"></a>\n <div class=\"\">\n <div class=\"btn-group pull-right\">\n <ul class=\"nav navbar-nav navbar-right visible-sm visible-md\">\n <li class=\"marginR5\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Logout\"><a href=\"login.html\"><i class=\"fa fa-power-off\"></i></a></li>\n </ul>\n </div>\n <div class=\"btn-group pull-right mar-top17 visible-sm visible-md\">\n <button type=\"button\" class=\"btn btn-primary dropdown-toggle \" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n Welcome Maribel Brogden <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\"><strong>Date:</strong> 11/21/2016</a></li>\n </ul>\n </div>\n </div>\n <button type=\"button\" class=\"navbar-toggle collapsed mar-top17\" data-toggle=\"collapse\" data-target=\"#navbar\" aria-expanded=\"false\" aria-controls=\"navbar\">\n <span class=\"sr-only\">Toggle navigation</span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n </div>\n\n <div id=\"navbar\" class=\"navbar-collapse collapse\">\n <ul class=\"nav navbar-nav toperMenu-spaceleft\">\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Profile<span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">\n <li><a routerLink=\"/update-profile\" routerLinkActive=\"active\">Update Profile</a></li>\n <li><a routerLink=\"/change-password\" routerLinkActive=\"active\">Change Password</a></li>\n <li><a routerLink=\"/change-user-id\" routerLinkActive=\"active\">Change User ID</a></li>\n </ul>\n </li>\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Licenses<span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">\n <li><a routerLink=\"/search-license\" routerLinkActive=\"active\">Search License</a></li>\n <li><a routerLink=\"/add-new-license\" routerLinkActive=\"active\">Add New License</a></li>\n <li><a routerLink=\"/setup-test-account\" routerLinkActive=\"active\">Setup Test Account</a></li>\n </ul>\n </li>\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Product Features<span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">\n <li><a routerLink=\"/manage-discount-code\" routerLinkActive=\"active\">Manage Discount Code</a></li>\n <li><a routerLink=\"/subscription-price\" routerLinkActive=\"active\">Subscription Price</a></li>\n </ul>\n </li>\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Users<span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">\n <li><a routerLink=\"/list-user\" routerLinkActive=\"active\">List User</a></li>\n <li><a routerLink=\"/add-user\" routerLinkActive=\"active\">Add User</a></li>\n <li><a routerLink=\"/unblock-user\" routerLinkActive=\"active\">Unblock User</a></li>\n <li><a routerLink=\"/user-group\" routerLinkActive=\"active\">User Group</a></li>\n </ul>\n </li>\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Reports<span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">\n <li><a routerLink=\"/usage-report\" routerLinkActive=\"active\">Usage Report</a></li>\n <li><a routerLink=\"/customer-summary-report\" routerLinkActive=\"active\">Customer Summary Report</a></li>\n <li><a routerLink=\"/expiring-subscription-report\" routerLinkActive=\"active\">Expiring Subscription Report</a></li>\n <li><a routerLink=\"/new-subscription-report\" routerLinkActive=\"active\">New Subscription Report</a></li>\n <li><a routerLink=\"/subscription-cancellation-report\" routerLinkActive=\"active\">Subscription Cancellation Report</a></li>\n <li><a routerLink=\"/net-ad-subscription-report\" routerLinkActive=\"active\">Net AD Subscription Report</a></li>\n <li><a routerLink=\"/site-license-usage-report\" routerLinkActive=\"active\">Site License Usage Report</a></li>\n <li><a routerLink=\"/discount-code-report\" routerLinkActive=\"active\">Discount Code Report</a></li>\n <li><a routerLink=\"/image-export-report\" routerLinkActive=\"active\">Image Export Report</a></li>\n </ul>\n </li>\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Site Account<span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">\n <li><a routerLink=\"/add-building-level-account\" routerLinkActive=\"active\">Add Building Level Account</a></li>\n </ul>\n </li>\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Profile<span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\">\n <li><a routerLink=\"/view-update-profile\" routerLinkActive=\"active\">View/Update Profile</a></li>\n <li><a routerLink=\"/manage-modesty-settings\" routerLinkActive=\"active\">Manage Modesty Settings</a></li>\n <li><a routerLink=\"/manage-module\" routerLinkActive=\"active\">Manage Module</a></li>\n </ul>\n </li>\n <li><a href=\"#\">Product</a></li>\n </ul>\n <!--logout-->\n <div class=\"wel-brog\">\n <div class=\"btn-group pull-right mob1\">\n <ul class=\"nav navbar-nav navbar-right hidden-sm\">\n <li class=\"marginR5\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Logout\"><a href=\"login.html\"><i class=\"fa fa-power-off\"></i></a></li>\n </ul>\n </div>\n <div class=\"btn-group pull-right hidden-sm mar-top17 mob2\">\n <button type=\"button\" class=\"btn btn-primary dropdown-toggle btn-sm\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n Welcome Maribel Brogden <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\"><strong>Date:</strong> 05/08/2017</a></li>\n </ul>\n </div>\n </div>\n <!--logout-->\n </div>\n </div>\n </nav>\n"
}),
__metadata('design:paramtypes', [application_service_1.ApplicationService, router_1.Router])
], SiteMenuComponent);
return SiteMenuComponent;
}());
exports.SiteMenuComponent = SiteMenuComponent;
//# sourceMappingURL=site-menu.component.js.map