iptdevs-design-system 1.3.14 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +166 -62
- package/fesm2015/iptdevs-design-system.mjs +164 -59
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +164 -59
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/components/molecules/sidenav/sidenav.component.d.ts +6 -4
- package/package.json +1 -1
|
@@ -1,95 +1,199 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "../../../core/services/user-service/user-service";
|
|
4
|
-
import * as i2 from "../../../core/
|
|
5
|
-
import * as i3 from "
|
|
6
|
-
import * as i4 from "@angular/material/
|
|
7
|
-
import * as i5 from "@angular/material/
|
|
8
|
-
import * as i6 from "@angular/material/
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "
|
|
11
|
-
import * as i9 from "@angular/common";
|
|
4
|
+
import * as i2 from "../../../core/services/storage-service/storage-service";
|
|
5
|
+
import * as i3 from "@angular/material/sidenav";
|
|
6
|
+
import * as i4 from "@angular/material/toolbar";
|
|
7
|
+
import * as i5 from "@angular/material/icon";
|
|
8
|
+
import * as i6 from "@angular/material/list";
|
|
9
|
+
import * as i7 from "../../atoms/aside-button/aside-button.component";
|
|
10
|
+
import * as i8 from "@angular/common";
|
|
12
11
|
export class SidenavComponent {
|
|
13
|
-
constructor(userService,
|
|
12
|
+
constructor(userService, storageService) {
|
|
14
13
|
this.userService = userService;
|
|
15
|
-
this.baseService = baseService;
|
|
16
14
|
this.storageService = storageService;
|
|
17
15
|
this.pageChangeEvent = new EventEmitter();
|
|
18
16
|
this.routes = [];
|
|
17
|
+
this.options = { weekday: 'long', month: 'long', day: 'numeric' };
|
|
18
|
+
this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
|
|
19
|
+
this.hour = new Date().getHours();
|
|
19
20
|
}
|
|
20
21
|
ngOnInit() {
|
|
21
22
|
let user = this.storageService.getCurrentUser()?.token;
|
|
22
23
|
let token = user === undefined ? '' : user;
|
|
23
24
|
let request = {
|
|
24
|
-
token: token
|
|
25
|
+
token: token,
|
|
25
26
|
};
|
|
26
|
-
this.userService.getRoutesForRole(request).subscribe(response => {
|
|
27
|
-
this.routes =
|
|
28
|
-
console.log(this.routes);
|
|
27
|
+
this.userService.getRoutesForRole(request).subscribe((response) => {
|
|
28
|
+
this.routes = response.data;
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
clickPage(event) {
|
|
32
32
|
this.pageChangeEvent.emit(event);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: i1.UserService }, { token: i2.
|
|
36
|
-
SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
|
|
35
|
+
SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: i1.UserService }, { token: i2.StorageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
+
SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage", userName: "userName" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
|
|
37
37
|
<mat-sidenav #sidenav mode="push">
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
<mat-toolbar color="primary">
|
|
39
|
+
<span>Departamento Académico</span>
|
|
40
|
+
<span class="spacer"></span>
|
|
41
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
42
|
+
<mat-icon class="mat-icon-button">menu</mat-icon>
|
|
43
|
+
</button>
|
|
44
|
+
</mat-toolbar>
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
<mat-nav-list *ngFor="let route of routes">
|
|
47
|
+
<ipt-aside-button
|
|
48
|
+
[buttonActive]="this.setPage === route.page"
|
|
49
|
+
[url]="route.url"
|
|
50
|
+
[type]="route.type"
|
|
51
|
+
[icon]="route.icon"
|
|
52
|
+
[text]="route.text"
|
|
53
|
+
(isClicked)="clickPage(route.page)"
|
|
54
|
+
>
|
|
55
|
+
</ipt-aside-button>
|
|
56
|
+
|
|
57
|
+
<ipt-aside-button
|
|
58
|
+
[buttonActive]="this.setPage === 'logout'"
|
|
59
|
+
[url]="''"
|
|
60
|
+
[type]="'0'"
|
|
61
|
+
[icon]="'/assets/icons/cerrar-sesion.png'"
|
|
62
|
+
[text]="'Cerrar sesión'"
|
|
63
|
+
(isClicked)="clickPage('logout')"
|
|
64
|
+
>
|
|
65
|
+
</ipt-aside-button>
|
|
66
|
+
</mat-nav-list>
|
|
67
|
+
</mat-sidenav>
|
|
68
|
+
|
|
69
|
+
<mat-toolbar class="header">
|
|
70
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
71
|
+
<mat-icon>menu</mat-icon>
|
|
72
|
+
</button>
|
|
73
|
+
<img class="img-logo" src="/assets/logos/IPT-logo.png" alt="" />
|
|
74
|
+
<div class="text-container">
|
|
75
|
+
<span class="p1">{{ currentDay }}</span>
|
|
76
|
+
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
77
|
+
Hey {{userName}}, Good moorning!
|
|
78
|
+
</span>
|
|
79
|
+
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
80
|
+
Hey {{userName}}, Good afternoon!
|
|
81
|
+
</p>
|
|
82
|
+
<p *ngIf="hour > 18 && hour < 4" class="p2">Hey {{userName}}, Good evening!</p>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div class="main-search-container">
|
|
86
|
+
<div class="search-container">
|
|
87
|
+
<input
|
|
88
|
+
type="text"
|
|
89
|
+
name="search"
|
|
90
|
+
placeholder="What are you doing today?"
|
|
91
|
+
class="search-input"
|
|
92
|
+
/>
|
|
93
|
+
<!-- <hr class="hr-icon-search"> -->
|
|
94
|
+
<a href="#" class="icon"> </a>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div class="icons-container">
|
|
99
|
+
<a href="#" class="notification-icon"></a>
|
|
100
|
+
<hr class="hr-icons" />
|
|
101
|
+
<a href="#" class="settings"></a>
|
|
102
|
+
<hr class="hr-icons" />
|
|
103
|
+
<a href="#" class="help"></a>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="profile-container">
|
|
107
|
+
<p class="name-profile">{{userName}}</p>
|
|
108
|
+
<div class="photo-profile"></div>
|
|
109
|
+
</div>
|
|
110
|
+
</mat-toolbar>
|
|
111
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.icon{background-image:url(/assets/icons/icono-buscador.png);background-size:cover;background-position:center;width:40px;height:40px}.icons-container{border-radius:30px;height:50px;display:flex;justify-content:center;align-items:center;gap:5%;width:auto}.notification-icon{height:35px;width:35px;background-image:url(/assets/icons/notification-icon.png);background-position:center;background-size:cover;background-repeat:no-repeat}.settings{height:35px;width:35px;background-image:url(/assets/icons/settings.png);background-position:center;background-size:cover;background-repeat:no-repeat}.help{background:url(/assets/icons/help.png);background-position:center;background-size:cover;background-repeat:no-repeat;width:35px;height:35px;border-radius:50%}.hr-icons{border:none;border-left:1px solid #1c77f7;height:70%;width:1px}.hr-icon-search{border:none;border-left:1px solid #1c77f7;height:100%;width:1px}.profile-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.name-profile{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-profile{background:url(/assets/icons/photo-profile.png);background-size:40px 40px;background-position:center;background-repeat:no-repeat}.main-search-container{display:none}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.main-search-container{display:flex;justify-content:flex-end;align-items:center;width:-moz-available}.search-container{margin-right:10px;height:20px;width:20px;border-radius:30px;padding:10px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:.4s;box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px}.search-container:hover{width:300px;border-radius:30px;padding:10px 10px 10px 20px}.search-container:hover>.search-input{width:320px;border-radius:10px;padding-left:15px}.search-input{background:transparent;border:none;outline:none;width:0px;font-size:13px;transition:.8s}}\n"], components: [{ type: i3.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: i7.AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "type", "url", "textColor", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
61
112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
|
|
62
113
|
type: Component,
|
|
63
114
|
args: [{ selector: 'ipt-sidenav', template: `
|
|
64
115
|
<mat-sidenav #sidenav mode="push">
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
116
|
+
<mat-toolbar color="primary">
|
|
117
|
+
<span>Departamento Académico</span>
|
|
118
|
+
<span class="spacer"></span>
|
|
119
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
120
|
+
<mat-icon class="mat-icon-button">menu</mat-icon>
|
|
121
|
+
</button>
|
|
122
|
+
</mat-toolbar>
|
|
123
|
+
|
|
124
|
+
<mat-nav-list *ngFor="let route of routes">
|
|
125
|
+
<ipt-aside-button
|
|
126
|
+
[buttonActive]="this.setPage === route.page"
|
|
127
|
+
[url]="route.url"
|
|
128
|
+
[type]="route.type"
|
|
129
|
+
[icon]="route.icon"
|
|
130
|
+
[text]="route.text"
|
|
131
|
+
(isClicked)="clickPage(route.page)"
|
|
132
|
+
>
|
|
133
|
+
</ipt-aside-button>
|
|
72
134
|
|
|
73
|
-
<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
135
|
+
<ipt-aside-button
|
|
136
|
+
[buttonActive]="this.setPage === 'logout'"
|
|
137
|
+
[url]="''"
|
|
138
|
+
[type]="'0'"
|
|
139
|
+
[icon]="'/assets/icons/cerrar-sesion.png'"
|
|
140
|
+
[text]="'Cerrar sesión'"
|
|
141
|
+
(isClicked)="clickPage('logout')"
|
|
142
|
+
>
|
|
143
|
+
</ipt-aside-button>
|
|
144
|
+
</mat-nav-list>
|
|
145
|
+
</mat-sidenav>
|
|
146
|
+
|
|
147
|
+
<mat-toolbar class="header">
|
|
148
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
149
|
+
<mat-icon>menu</mat-icon>
|
|
150
|
+
</button>
|
|
151
|
+
<img class="img-logo" src="/assets/logos/IPT-logo.png" alt="" />
|
|
152
|
+
<div class="text-container">
|
|
153
|
+
<span class="p1">{{ currentDay }}</span>
|
|
154
|
+
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
155
|
+
Hey {{userName}}, Good moorning!
|
|
156
|
+
</span>
|
|
157
|
+
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
158
|
+
Hey {{userName}}, Good afternoon!
|
|
159
|
+
</p>
|
|
160
|
+
<p *ngIf="hour > 18 && hour < 4" class="p2">Hey {{userName}}, Good evening!</p>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
<div class="main-search-container">
|
|
164
|
+
<div class="search-container">
|
|
165
|
+
<input
|
|
166
|
+
type="text"
|
|
167
|
+
name="search"
|
|
168
|
+
placeholder="What are you doing today?"
|
|
169
|
+
class="search-input"
|
|
170
|
+
/>
|
|
171
|
+
<!-- <hr class="hr-icon-search"> -->
|
|
172
|
+
<a href="#" class="icon"> </a>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<div class="icons-container">
|
|
177
|
+
<a href="#" class="notification-icon"></a>
|
|
178
|
+
<hr class="hr-icons" />
|
|
179
|
+
<a href="#" class="settings"></a>
|
|
180
|
+
<hr class="hr-icons" />
|
|
181
|
+
<a href="#" class="help"></a>
|
|
182
|
+
</div>
|
|
183
|
+
|
|
184
|
+
<div class="profile-container">
|
|
185
|
+
<p class="name-profile">{{userName}}</p>
|
|
186
|
+
<div class="photo-profile"></div>
|
|
187
|
+
</div>
|
|
188
|
+
</mat-toolbar>
|
|
189
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.icon{background-image:url(/assets/icons/icono-buscador.png);background-size:cover;background-position:center;width:40px;height:40px}.icons-container{border-radius:30px;height:50px;display:flex;justify-content:center;align-items:center;gap:5%;width:auto}.notification-icon{height:35px;width:35px;background-image:url(/assets/icons/notification-icon.png);background-position:center;background-size:cover;background-repeat:no-repeat}.settings{height:35px;width:35px;background-image:url(/assets/icons/settings.png);background-position:center;background-size:cover;background-repeat:no-repeat}.help{background:url(/assets/icons/help.png);background-position:center;background-size:cover;background-repeat:no-repeat;width:35px;height:35px;border-radius:50%}.hr-icons{border:none;border-left:1px solid #1c77f7;height:70%;width:1px}.hr-icon-search{border:none;border-left:1px solid #1c77f7;height:100%;width:1px}.profile-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.name-profile{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-profile{background:url(/assets/icons/photo-profile.png);background-size:40px 40px;background-position:center;background-repeat:no-repeat}.main-search-container{display:none}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.main-search-container{display:flex;justify-content:flex-end;align-items:center;width:-moz-available}.search-container{margin-right:10px;height:20px;width:20px;border-radius:30px;padding:10px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:.4s;box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px}.search-container:hover{width:300px;border-radius:30px;padding:10px 10px 10px 20px}.search-container:hover>.search-input{width:320px;border-radius:10px;padding-left:15px}.search-input{background:transparent;border:none;outline:none;width:0px;font-size:13px;transition:.8s}}\n"] }]
|
|
190
|
+
}], ctorParameters: function () { return [{ type: i1.UserService }, { type: i2.StorageService }]; }, propDecorators: { department: [{
|
|
89
191
|
type: Input
|
|
90
192
|
}], setPage: [{
|
|
91
193
|
type: Input
|
|
194
|
+
}], userName: [{
|
|
195
|
+
type: Input
|
|
92
196
|
}], pageChangeEvent: [{
|
|
93
197
|
type: Output
|
|
94
198
|
}] } });
|
|
95
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
199
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lkZW5hdi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9tb2xlY3VsZXMvc2lkZW5hdi9zaWRlbmF2LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLE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xuICAgIGxldCB0b2tlbjogc3RyaW5nID0gdXNlciA9PT0gdW5kZWZpbmVkID8gJycgOiB1c2VyO1xuXG4gICAgbGV0IHJlcXVlc3Q6IFVzZXJUb2tlblJxID0ge1xuICAgICAgdG9rZW46IHRva2VuLFxuICAgIH07XG5cbiAgICB0aGlzLnVzZXJTZXJ2aWNlLmdldFJvdXRlc0ZvclJvbGUocmVxdWVzdCkuc3Vic2NyaWJlKChyZXNwb25zZSkgPT4ge1xuICAgICAgdGhpcy5yb3V0ZXMgPSByZXNwb25zZS5kYXRhO1xuICAgIH0pO1xuICB9XG5cbiAgY2xpY2tQYWdlKGV2ZW50OiBzdHJpbmcpIHtcbiAgICB0aGlzLnBhZ2VDaGFuZ2VFdmVudC5lbWl0KGV2ZW50KTtcbiAgfVxufVxuIl19
|
|
@@ -8,13 +8,13 @@ import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
8
8
|
import Swal from 'sweetalert2';
|
|
9
9
|
import * as i1$2 from '@angular/common/http';
|
|
10
10
|
import { HttpHeaders } from '@angular/common/http';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i3 from '@angular/material/sidenav';
|
|
12
12
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i4 from '@angular/material/toolbar';
|
|
14
14
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i5 from '@angular/material/icon';
|
|
16
16
|
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i6 from '@angular/material/list';
|
|
18
18
|
import { MatListModule } from '@angular/material/list';
|
|
19
19
|
import * as i1$3 from '@angular/router';
|
|
20
20
|
|
|
@@ -896,86 +896,191 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
896
896
|
}] } });
|
|
897
897
|
|
|
898
898
|
class SidenavComponent {
|
|
899
|
-
constructor(userService,
|
|
899
|
+
constructor(userService, storageService) {
|
|
900
900
|
this.userService = userService;
|
|
901
|
-
this.baseService = baseService;
|
|
902
901
|
this.storageService = storageService;
|
|
903
902
|
this.pageChangeEvent = new EventEmitter();
|
|
904
903
|
this.routes = [];
|
|
904
|
+
this.options = { weekday: 'long', month: 'long', day: 'numeric' };
|
|
905
|
+
this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
|
|
906
|
+
this.hour = new Date().getHours();
|
|
905
907
|
}
|
|
906
908
|
ngOnInit() {
|
|
907
909
|
var _a;
|
|
908
910
|
let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
|
|
909
911
|
let token = user === undefined ? '' : user;
|
|
910
912
|
let request = {
|
|
911
|
-
token: token
|
|
913
|
+
token: token,
|
|
912
914
|
};
|
|
913
|
-
this.userService.getRoutesForRole(request).subscribe(response => {
|
|
914
|
-
this.routes =
|
|
915
|
-
console.log(this.routes);
|
|
915
|
+
this.userService.getRoutesForRole(request).subscribe((response) => {
|
|
916
|
+
this.routes = response.data;
|
|
916
917
|
});
|
|
917
918
|
}
|
|
918
919
|
clickPage(event) {
|
|
919
920
|
this.pageChangeEvent.emit(event);
|
|
920
921
|
}
|
|
921
922
|
}
|
|
922
|
-
SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token:
|
|
923
|
-
SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
|
|
923
|
+
SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
924
|
+
SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage", userName: "userName" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
|
|
924
925
|
<mat-sidenav #sidenav mode="push">
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
926
|
+
<mat-toolbar color="primary">
|
|
927
|
+
<span>Departamento Académico</span>
|
|
928
|
+
<span class="spacer"></span>
|
|
929
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
930
|
+
<mat-icon class="mat-icon-button">menu</mat-icon>
|
|
931
|
+
</button>
|
|
932
|
+
</mat-toolbar>
|
|
933
|
+
|
|
934
|
+
<mat-nav-list *ngFor="let route of routes">
|
|
935
|
+
<ipt-aside-button
|
|
936
|
+
[buttonActive]="this.setPage === route.page"
|
|
937
|
+
[url]="route.url"
|
|
938
|
+
[type]="route.type"
|
|
939
|
+
[icon]="route.icon"
|
|
940
|
+
[text]="route.text"
|
|
941
|
+
(isClicked)="clickPage(route.page)"
|
|
942
|
+
>
|
|
943
|
+
</ipt-aside-button>
|
|
944
|
+
|
|
945
|
+
<ipt-aside-button
|
|
946
|
+
[buttonActive]="this.setPage === 'logout'"
|
|
947
|
+
[url]="''"
|
|
948
|
+
[type]="'0'"
|
|
949
|
+
[icon]="'/assets/icons/cerrar-sesion.png'"
|
|
950
|
+
[text]="'Cerrar sesión'"
|
|
951
|
+
(isClicked)="clickPage('logout')"
|
|
952
|
+
>
|
|
953
|
+
</ipt-aside-button>
|
|
954
|
+
</mat-nav-list>
|
|
955
|
+
</mat-sidenav>
|
|
956
|
+
|
|
957
|
+
<mat-toolbar class="header">
|
|
958
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
959
|
+
<mat-icon>menu</mat-icon>
|
|
960
|
+
</button>
|
|
961
|
+
<img class="img-logo" src="/assets/logos/IPT-logo.png" alt="" />
|
|
962
|
+
<div class="text-container">
|
|
963
|
+
<span class="p1">{{ currentDay }}</span>
|
|
964
|
+
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
965
|
+
Hey {{userName}}, Good moorning!
|
|
966
|
+
</span>
|
|
967
|
+
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
968
|
+
Hey {{userName}}, Good afternoon!
|
|
969
|
+
</p>
|
|
970
|
+
<p *ngIf="hour > 18 && hour < 4" class="p2">Hey {{userName}}, Good evening!</p>
|
|
971
|
+
</div>
|
|
972
|
+
|
|
973
|
+
<div class="main-search-container">
|
|
974
|
+
<div class="search-container">
|
|
975
|
+
<input
|
|
976
|
+
type="text"
|
|
977
|
+
name="search"
|
|
978
|
+
placeholder="What are you doing today?"
|
|
979
|
+
class="search-input"
|
|
980
|
+
/>
|
|
981
|
+
<!-- <hr class="hr-icon-search"> -->
|
|
982
|
+
<a href="#" class="icon"> </a>
|
|
983
|
+
</div>
|
|
984
|
+
</div>
|
|
985
|
+
|
|
986
|
+
<div class="icons-container">
|
|
987
|
+
<a href="#" class="notification-icon"></a>
|
|
988
|
+
<hr class="hr-icons" />
|
|
989
|
+
<a href="#" class="settings"></a>
|
|
990
|
+
<hr class="hr-icons" />
|
|
991
|
+
<a href="#" class="help"></a>
|
|
992
|
+
</div>
|
|
993
|
+
|
|
994
|
+
<div class="profile-container">
|
|
995
|
+
<p class="name-profile">{{userName}}</p>
|
|
996
|
+
<div class="photo-profile"></div>
|
|
997
|
+
</div>
|
|
998
|
+
</mat-toolbar>
|
|
999
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.icon{background-image:url(/assets/icons/icono-buscador.png);background-size:cover;background-position:center;width:40px;height:40px}.icons-container{border-radius:30px;height:50px;display:flex;justify-content:center;align-items:center;gap:5%;width:auto}.notification-icon{height:35px;width:35px;background-image:url(/assets/icons/notification-icon.png);background-position:center;background-size:cover;background-repeat:no-repeat}.settings{height:35px;width:35px;background-image:url(/assets/icons/settings.png);background-position:center;background-size:cover;background-repeat:no-repeat}.help{background:url(/assets/icons/help.png);background-position:center;background-size:cover;background-repeat:no-repeat;width:35px;height:35px;border-radius:50%}.hr-icons{border:none;border-left:1px solid #1c77f7;height:70%;width:1px}.hr-icon-search{border:none;border-left:1px solid #1c77f7;height:100%;width:1px}.profile-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.name-profile{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-profile{background:url(/assets/icons/photo-profile.png);background-size:40px 40px;background-position:center;background-repeat:no-repeat}.main-search-container{display:none}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.main-search-container{display:flex;justify-content:flex-end;align-items:center;width:-moz-available}.search-container{margin-right:10px;height:20px;width:20px;border-radius:30px;padding:10px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:.4s;box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px}.search-container:hover{width:300px;border-radius:30px;padding:10px 10px 10px 20px}.search-container:hover>.search-input{width:320px;border-radius:10px;padding-left:15px}.search-input{background:transparent;border:none;outline:none;width:0px;font-size:13px;transition:.8s}}\n"], components: [{ type: i3.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "type", "url", "textColor", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
948
1000
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
|
|
949
1001
|
type: Component,
|
|
950
1002
|
args: [{ selector: 'ipt-sidenav', template: `
|
|
951
1003
|
<mat-sidenav #sidenav mode="push">
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1004
|
+
<mat-toolbar color="primary">
|
|
1005
|
+
<span>Departamento Académico</span>
|
|
1006
|
+
<span class="spacer"></span>
|
|
1007
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
1008
|
+
<mat-icon class="mat-icon-button">menu</mat-icon>
|
|
1009
|
+
</button>
|
|
1010
|
+
</mat-toolbar>
|
|
1011
|
+
|
|
1012
|
+
<mat-nav-list *ngFor="let route of routes">
|
|
1013
|
+
<ipt-aside-button
|
|
1014
|
+
[buttonActive]="this.setPage === route.page"
|
|
1015
|
+
[url]="route.url"
|
|
1016
|
+
[type]="route.type"
|
|
1017
|
+
[icon]="route.icon"
|
|
1018
|
+
[text]="route.text"
|
|
1019
|
+
(isClicked)="clickPage(route.page)"
|
|
1020
|
+
>
|
|
1021
|
+
</ipt-aside-button>
|
|
1022
|
+
|
|
1023
|
+
<ipt-aside-button
|
|
1024
|
+
[buttonActive]="this.setPage === 'logout'"
|
|
1025
|
+
[url]="''"
|
|
1026
|
+
[type]="'0'"
|
|
1027
|
+
[icon]="'/assets/icons/cerrar-sesion.png'"
|
|
1028
|
+
[text]="'Cerrar sesión'"
|
|
1029
|
+
(isClicked)="clickPage('logout')"
|
|
1030
|
+
>
|
|
1031
|
+
</ipt-aside-button>
|
|
1032
|
+
</mat-nav-list>
|
|
1033
|
+
</mat-sidenav>
|
|
1034
|
+
|
|
1035
|
+
<mat-toolbar class="header">
|
|
1036
|
+
<button mat-icon-button (click)="sidenav.toggle()">
|
|
1037
|
+
<mat-icon>menu</mat-icon>
|
|
1038
|
+
</button>
|
|
1039
|
+
<img class="img-logo" src="/assets/logos/IPT-logo.png" alt="" />
|
|
1040
|
+
<div class="text-container">
|
|
1041
|
+
<span class="p1">{{ currentDay }}</span>
|
|
1042
|
+
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
1043
|
+
Hey {{userName}}, Good moorning!
|
|
1044
|
+
</span>
|
|
1045
|
+
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
1046
|
+
Hey {{userName}}, Good afternoon!
|
|
1047
|
+
</p>
|
|
1048
|
+
<p *ngIf="hour > 18 && hour < 4" class="p2">Hey {{userName}}, Good evening!</p>
|
|
1049
|
+
</div>
|
|
1050
|
+
|
|
1051
|
+
<div class="main-search-container">
|
|
1052
|
+
<div class="search-container">
|
|
1053
|
+
<input
|
|
1054
|
+
type="text"
|
|
1055
|
+
name="search"
|
|
1056
|
+
placeholder="What are you doing today?"
|
|
1057
|
+
class="search-input"
|
|
1058
|
+
/>
|
|
1059
|
+
<!-- <hr class="hr-icon-search"> -->
|
|
1060
|
+
<a href="#" class="icon"> </a>
|
|
1061
|
+
</div>
|
|
1062
|
+
</div>
|
|
1063
|
+
|
|
1064
|
+
<div class="icons-container">
|
|
1065
|
+
<a href="#" class="notification-icon"></a>
|
|
1066
|
+
<hr class="hr-icons" />
|
|
1067
|
+
<a href="#" class="settings"></a>
|
|
1068
|
+
<hr class="hr-icons" />
|
|
1069
|
+
<a href="#" class="help"></a>
|
|
1070
|
+
</div>
|
|
1071
|
+
|
|
1072
|
+
<div class="profile-container">
|
|
1073
|
+
<p class="name-profile">{{userName}}</p>
|
|
1074
|
+
<div class="photo-profile"></div>
|
|
1075
|
+
</div>
|
|
1076
|
+
</mat-toolbar>
|
|
1077
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.icon{background-image:url(/assets/icons/icono-buscador.png);background-size:cover;background-position:center;width:40px;height:40px}.icons-container{border-radius:30px;height:50px;display:flex;justify-content:center;align-items:center;gap:5%;width:auto}.notification-icon{height:35px;width:35px;background-image:url(/assets/icons/notification-icon.png);background-position:center;background-size:cover;background-repeat:no-repeat}.settings{height:35px;width:35px;background-image:url(/assets/icons/settings.png);background-position:center;background-size:cover;background-repeat:no-repeat}.help{background:url(/assets/icons/help.png);background-position:center;background-size:cover;background-repeat:no-repeat;width:35px;height:35px;border-radius:50%}.hr-icons{border:none;border-left:1px solid #1c77f7;height:70%;width:1px}.hr-icon-search{border:none;border-left:1px solid #1c77f7;height:100%;width:1px}.profile-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.name-profile{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-profile{background:url(/assets/icons/photo-profile.png);background-size:40px 40px;background-position:center;background-repeat:no-repeat}.main-search-container{display:none}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.main-search-container{display:flex;justify-content:flex-end;align-items:center;width:-moz-available}.search-container{margin-right:10px;height:20px;width:20px;border-radius:30px;padding:10px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:.4s;box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px}.search-container:hover{width:300px;border-radius:30px;padding:10px 10px 10px 20px}.search-container:hover>.search-input{width:320px;border-radius:10px;padding-left:15px}.search-input{background:transparent;border:none;outline:none;width:0px;font-size:13px;transition:.8s}}\n"] }]
|
|
1078
|
+
}], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
|
|
976
1079
|
type: Input
|
|
977
1080
|
}], setPage: [{
|
|
978
1081
|
type: Input
|
|
1082
|
+
}], userName: [{
|
|
1083
|
+
type: Input
|
|
979
1084
|
}], pageChangeEvent: [{
|
|
980
1085
|
type: Output
|
|
981
1086
|
}] } });
|