ngx-sp-auth 3.2.4 → 3.2.7
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/fesm2022/ngx-sp-auth.mjs +233 -10
- package/fesm2022/ngx-sp-auth.mjs.map +1 -1
- package/lib/components/login-os/login-os.component.d.ts +5 -3
- package/lib/components/menu-lateral/model/ret-navsubmenu.d.ts +2 -1
- package/lib/widgets/sub-menu/list/list.component.d.ts +13 -0
- package/lib/widgets/sub-menu/nav-tabs/nav-tabs.component.d.ts +13 -0
- package/lib/widgets/sub-menu/sub-menu.component.d.ts +37 -0
- package/lib/widgets/sub-menu-card/sub-menu-card.component.d.ts +26 -0
- package/package.json +2 -2
- package/public-api.d.ts +5 -0
package/fesm2022/ngx-sp-auth.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import * as i1$1 from '@angular/router';
|
|
|
10
10
|
import { RouterLink, NavigationEnd, RouterOutlet } from '@angular/router';
|
|
11
11
|
import { BehaviorSubject, take, tap, Subject, Subscription, timer, map as map$1, filter, of, lastValueFrom, from } from 'rxjs';
|
|
12
12
|
import * as i3 from 'ngx-sp-infra';
|
|
13
|
-
import { Utils, FormUtils, InfraModule } from 'ngx-sp-infra';
|
|
13
|
+
import { Utils, FormUtils, InfraModule, LibIconsComponent, ContentContainerComponent } from 'ngx-sp-infra';
|
|
14
14
|
import * as i3$2 from '@angular/common';
|
|
15
15
|
import { CommonModule, NgIf } from '@angular/common';
|
|
16
16
|
import * as i3$1 from '@angular/forms';
|
|
@@ -2089,12 +2089,13 @@ class LoginOSComponent {
|
|
|
2089
2089
|
// #endregion PUBLIC
|
|
2090
2090
|
// #endregion ==========> PROPERTIES <==========
|
|
2091
2091
|
// #region ==========> INITIALIZATION <==========
|
|
2092
|
-
constructor(_authService,
|
|
2092
|
+
constructor(_authService, _projectUtilService, _route, _router, _storageService, _messageService) {
|
|
2093
2093
|
this._authService = _authService;
|
|
2094
|
-
this.
|
|
2094
|
+
this._projectUtilService = _projectUtilService;
|
|
2095
2095
|
this._route = _route;
|
|
2096
2096
|
this._router = _router;
|
|
2097
2097
|
this._storageService = _storageService;
|
|
2098
|
+
this._messageService = _messageService;
|
|
2098
2099
|
// #endregion PRIVATE
|
|
2099
2100
|
// #region PUBLIC
|
|
2100
2101
|
this.loginStatus = "loading";
|
|
@@ -2133,13 +2134,13 @@ class LoginOSComponent {
|
|
|
2133
2134
|
},
|
|
2134
2135
|
error: (error) => {
|
|
2135
2136
|
this.loginStatus = "error";
|
|
2136
|
-
this.
|
|
2137
|
+
this._projectUtilService.showHttpError(error);
|
|
2137
2138
|
},
|
|
2138
2139
|
});
|
|
2139
2140
|
},
|
|
2140
2141
|
error: (error) => {
|
|
2141
2142
|
this.loginStatus = "error";
|
|
2142
|
-
this.
|
|
2143
|
+
this._projectUtilService.showHttpError(error);
|
|
2143
2144
|
}
|
|
2144
2145
|
});
|
|
2145
2146
|
}
|
|
@@ -2166,8 +2167,9 @@ class LoginOSComponent {
|
|
|
2166
2167
|
getParams() {
|
|
2167
2168
|
const payloadString = this._route.snapshot.queryParamMap.get('payload');
|
|
2168
2169
|
if (!payloadString) {
|
|
2169
|
-
|
|
2170
|
+
this._messageService.showAlertDanger('Payload não encontrado na URL.');
|
|
2170
2171
|
this.loginStatus = "error";
|
|
2172
|
+
console.warn('Payload não encontrado na URL.');
|
|
2171
2173
|
throw new Error('Payload não encontrado na URL.');
|
|
2172
2174
|
}
|
|
2173
2175
|
try {
|
|
@@ -2185,6 +2187,8 @@ class LoginOSComponent {
|
|
|
2185
2187
|
};
|
|
2186
2188
|
}
|
|
2187
2189
|
catch (error) {
|
|
2190
|
+
this._messageService.showAlertDanger('Erro ao fazer parse do payload.');
|
|
2191
|
+
this.loginStatus = "error";
|
|
2188
2192
|
console.error('Erro ao fazer parse do payload:', error);
|
|
2189
2193
|
throw error;
|
|
2190
2194
|
}
|
|
@@ -2193,7 +2197,7 @@ class LoginOSComponent {
|
|
|
2193
2197
|
ngOnDestroy() {
|
|
2194
2198
|
this._timerSubscription?.unsubscribe();
|
|
2195
2199
|
}
|
|
2196
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginOSComponent, deps: [{ token: AuthService }, { token: ProjectUtilservice }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: AuthStorageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginOSComponent, deps: [{ token: AuthService }, { token: ProjectUtilservice }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: AuthStorageService }, { token: i3.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2197
2201
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: LoginOSComponent, isStandalone: true, selector: "login-os", ngImport: i0, template: `
|
|
2198
2202
|
<div class="d-flex flex-column justify-content-center align-items-center h-100 w-100 bg-light" >
|
|
2199
2203
|
|
|
@@ -2301,7 +2305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
2301
2305
|
|
|
2302
2306
|
</div>
|
|
2303
2307
|
` }]
|
|
2304
|
-
}], ctorParameters: () => [{ type: AuthService }, { type: ProjectUtilservice }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: AuthStorageService }] });
|
|
2308
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: ProjectUtilservice }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: AuthStorageService }, { type: i3.MessageService }] });
|
|
2305
2309
|
|
|
2306
2310
|
class SecondaryDropdownComponent {
|
|
2307
2311
|
constructor(_projectUtilservice) {
|
|
@@ -3451,12 +3455,231 @@ const AUTH_ROUTES = [
|
|
|
3451
3455
|
{ path: 'novaSenha/:param', component: NovaSenhaComponent, data: { title: "Nova Senha" } }
|
|
3452
3456
|
];
|
|
3453
3457
|
|
|
3458
|
+
class NavSubmenuCards {
|
|
3459
|
+
constructor() {
|
|
3460
|
+
this.titulo = '';
|
|
3461
|
+
this.icon = '';
|
|
3462
|
+
this.descricao = '';
|
|
3463
|
+
this.urlPath = '';
|
|
3464
|
+
this.isExternal = false;
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
;
|
|
3468
|
+
class SubMenuCardComponent {
|
|
3469
|
+
GetExternalUrl(url) {
|
|
3470
|
+
return `${this.hostName == "" ? `https://${window.location.host}` : this.hostName}/${url}`;
|
|
3471
|
+
}
|
|
3472
|
+
ngOnInit() {
|
|
3473
|
+
this.GetHostName();
|
|
3474
|
+
}
|
|
3475
|
+
/**
|
|
3476
|
+
*
|
|
3477
|
+
*/
|
|
3478
|
+
constructor(_menuService, _projectUtil) {
|
|
3479
|
+
this._menuService = _menuService;
|
|
3480
|
+
this._projectUtil = _projectUtil;
|
|
3481
|
+
this.hostName = "";
|
|
3482
|
+
this.subMenuCards = [];
|
|
3483
|
+
}
|
|
3484
|
+
GetHostName() {
|
|
3485
|
+
this._menuService.GetHostServerOutSystems().subscribe({
|
|
3486
|
+
next: response => this.hostName = response.String,
|
|
3487
|
+
error: error => this._projectUtil.showHttpError(error)
|
|
3488
|
+
});
|
|
3489
|
+
}
|
|
3490
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SubMenuCardComponent, deps: [{ token: MenuServicesService }, { token: ProjectUtilservice }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3491
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: SubMenuCardComponent, isStandalone: true, selector: "sub-menu-card", inputs: { subMenuCards: "subMenuCards" }, ngImport: i0, template: `
|
|
3492
|
+
<div class="max-card-menu row">
|
|
3493
|
+
@for(card of subMenuCards; track $index) {
|
|
3494
|
+
<a href="{{ card.isExternal ? GetExternalUrl(card.urlPath) : card.urlPath }}" class="card-link col-4" target="_blank">
|
|
3495
|
+
<div class="card">
|
|
3496
|
+
<div class="card-icon">
|
|
3497
|
+
<div class="card-icon2">
|
|
3498
|
+
<lib-icon
|
|
3499
|
+
class="bold"
|
|
3500
|
+
iconName="{{ card.icon ? card.icon : 'engrenagem'}}"
|
|
3501
|
+
iconColor="blue"
|
|
3502
|
+
[iconFill]="true"
|
|
3503
|
+
[iconSize]="35"
|
|
3504
|
+
></lib-icon>
|
|
3505
|
+
</div>
|
|
3506
|
+
</div>
|
|
3507
|
+
<h3 class="card-title">{{ card.titulo }}</h3>
|
|
3508
|
+
<p class="card-text" title="{{ card.descricao }}">
|
|
3509
|
+
{{ card.descricao }}
|
|
3510
|
+
</p>
|
|
3511
|
+
</div>
|
|
3512
|
+
</a>
|
|
3513
|
+
}
|
|
3514
|
+
</div>
|
|
3515
|
+
`, isInline: true, styles: [".max-card-menu{display:flex;flex-wrap:wrap;justify-content:flex-start}.card-link{text-decoration:none;color:inherit;display:flex;box-sizing:border-box}.card{width:100%;border:none;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000000d;padding:24px;margin-bottom:16px;text-align:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;cursor:pointer}.card-icon{display:flex;align-items:center;justify-content:center;background-color:#e6eef6;border-radius:50%;width:72px;height:72px;margin:0 auto 16px}.card-icon2{display:flex;justify-content:center;align-items:center;background-color:#cde;border-radius:50%;width:52px;height:52px}.card-title{font-size:18px;font-weight:600;margin-bottom:12px;color:#333}.card-text{font-size:14px;color:#4f4f4f;line-height:1.6;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}\n"], dependencies: [{ kind: "component", type: LibIconsComponent, selector: "lib-icon", inputs: ["iconName", "iconColor", "iconSize", "iconFill"] }] }); }
|
|
3516
|
+
}
|
|
3517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SubMenuCardComponent, decorators: [{
|
|
3518
|
+
type: Component,
|
|
3519
|
+
args: [{ selector: 'sub-menu-card', imports: [LibIconsComponent], template: `
|
|
3520
|
+
<div class="max-card-menu row">
|
|
3521
|
+
@for(card of subMenuCards; track $index) {
|
|
3522
|
+
<a href="{{ card.isExternal ? GetExternalUrl(card.urlPath) : card.urlPath }}" class="card-link col-4" target="_blank">
|
|
3523
|
+
<div class="card">
|
|
3524
|
+
<div class="card-icon">
|
|
3525
|
+
<div class="card-icon2">
|
|
3526
|
+
<lib-icon
|
|
3527
|
+
class="bold"
|
|
3528
|
+
iconName="{{ card.icon ? card.icon : 'engrenagem'}}"
|
|
3529
|
+
iconColor="blue"
|
|
3530
|
+
[iconFill]="true"
|
|
3531
|
+
[iconSize]="35"
|
|
3532
|
+
></lib-icon>
|
|
3533
|
+
</div>
|
|
3534
|
+
</div>
|
|
3535
|
+
<h3 class="card-title">{{ card.titulo }}</h3>
|
|
3536
|
+
<p class="card-text" title="{{ card.descricao }}">
|
|
3537
|
+
{{ card.descricao }}
|
|
3538
|
+
</p>
|
|
3539
|
+
</div>
|
|
3540
|
+
</a>
|
|
3541
|
+
}
|
|
3542
|
+
</div>
|
|
3543
|
+
`, standalone: true, styles: [".max-card-menu{display:flex;flex-wrap:wrap;justify-content:flex-start}.card-link{text-decoration:none;color:inherit;display:flex;box-sizing:border-box}.card{width:100%;border:none;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000000d;padding:24px;margin-bottom:16px;text-align:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;cursor:pointer}.card-icon{display:flex;align-items:center;justify-content:center;background-color:#e6eef6;border-radius:50%;width:72px;height:72px;margin:0 auto 16px}.card-icon2{display:flex;justify-content:center;align-items:center;background-color:#cde;border-radius:50%;width:52px;height:52px}.card-title{font-size:18px;font-weight:600;margin-bottom:12px;color:#333}.card-text{font-size:14px;color:#4f4f4f;line-height:1.6;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}\n"] }]
|
|
3544
|
+
}], ctorParameters: () => [{ type: MenuServicesService }, { type: ProjectUtilservice }], propDecorators: { subMenuCards: [{
|
|
3545
|
+
type: Input
|
|
3546
|
+
}] } });
|
|
3547
|
+
|
|
3548
|
+
class ListComponent {
|
|
3549
|
+
/**
|
|
3550
|
+
*
|
|
3551
|
+
*/
|
|
3552
|
+
constructor() {
|
|
3553
|
+
this.telasItem = [];
|
|
3554
|
+
this.hostName = "";
|
|
3555
|
+
}
|
|
3556
|
+
GetExternalUrl(url) {
|
|
3557
|
+
return `${this.hostName}/${url}`;
|
|
3558
|
+
}
|
|
3559
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3560
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: ListComponent, isStandalone: true, selector: "app-list", inputs: { telasItem: "telasItem", hostName: "hostName" }, ngImport: i0, template: "<ul class=\"nav flex-column mt-3\">\n @if(telasItem.length) {\n @for(clickLink of telasItem; track $index) {\n <li class=\"nav-item\">\n <a class=\"nav-link\" [target]=\"clickLink.IsExternal ? '_blank' : '_self'\"\n [href]=\"clickLink.IsExternal ? (GetExternalUrl(clickLink.urlPath))\n : ('/SisproErpCloud/' + clickLink.urlPath)\">{{ clickLink.titulo }}</a>\n </li>\n }\n }\n</ul>\n", styles: ["a{color:#3e5154}\n"] }); }
|
|
3561
|
+
}
|
|
3562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ListComponent, decorators: [{
|
|
3563
|
+
type: Component,
|
|
3564
|
+
args: [{ selector: 'app-list', imports: [], standalone: true, template: "<ul class=\"nav flex-column mt-3\">\n @if(telasItem.length) {\n @for(clickLink of telasItem; track $index) {\n <li class=\"nav-item\">\n <a class=\"nav-link\" [target]=\"clickLink.IsExternal ? '_blank' : '_self'\"\n [href]=\"clickLink.IsExternal ? (GetExternalUrl(clickLink.urlPath))\n : ('/SisproErpCloud/' + clickLink.urlPath)\">{{ clickLink.titulo }}</a>\n </li>\n }\n }\n</ul>\n", styles: ["a{color:#3e5154}\n"] }]
|
|
3565
|
+
}], ctorParameters: () => [], propDecorators: { telasItem: [{
|
|
3566
|
+
type: Input
|
|
3567
|
+
}], hostName: [{
|
|
3568
|
+
type: Input
|
|
3569
|
+
}] } });
|
|
3570
|
+
|
|
3571
|
+
class NavTabsComponent {
|
|
3572
|
+
constructor() {
|
|
3573
|
+
this.subMenus = [];
|
|
3574
|
+
this.hostName = "";
|
|
3575
|
+
this.telasItem = [];
|
|
3576
|
+
this.listaAtiva = '';
|
|
3577
|
+
}
|
|
3578
|
+
ngOnInit() {
|
|
3579
|
+
if (this.subMenus.length != 0) {
|
|
3580
|
+
this.telasItem = this.subMenus[0].telasItem;
|
|
3581
|
+
this.listaAtiva = this.subMenus[0].titulo;
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3584
|
+
abaActive(b) {
|
|
3585
|
+
const index = this.subMenus.findIndex(submenu => {
|
|
3586
|
+
return submenu.titulo == b;
|
|
3587
|
+
});
|
|
3588
|
+
this.telasItem = this.subMenus[index].telasItem;
|
|
3589
|
+
this.listaAtiva = this.subMenus[index].titulo;
|
|
3590
|
+
}
|
|
3591
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: NavTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3592
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: NavTabsComponent, isStandalone: true, selector: "app-nav-tabs", inputs: { subMenus: "subMenus", hostName: "hostName" }, ngImport: i0, template: "<ul class=\"menu my-3\">\n @for(menu of subMenus; track $index) {\n <li class=\"menu-item\" (click)=\"abaActive(menu.titulo)\" [class.active]=\"menu.titulo === listaAtiva\">\n <a class=\"glb-cursor-pointer\" (click)=\"abaActive(menu.titulo)\" [tabindex]=\"$index\">\n {{ menu.titulo }}\n </a>\n </li>\n }\n</ul>\n@if(telasItem){\n <app-list [telasItem]=\"telasItem\" [hostName]=\"hostName\"></app-list>\n}\n", styles: ["@charset \"UTF-8\";.menu{list-style:none;padding:0;margin:0;display:flex;gap:20px}.menu-item a{text-align:center;position:relative;display:inline-block;padding-bottom:5px;color:#6c757d;text-decoration:none;transition:color .3s ease,border-bottom-color .3s ease;border-bottom:2px solid #fff;width:calc(100% + 15px)}.menu-item a:hover{color:#213b70;border-bottom:2px solid #213B70}.menu-item.active a:after{content:\"\";position:absolute;bottom:-2px;left:50%;transform:translate(-50%);width:calc(100% + 5px);height:2px;background-color:#213b70}.menu-item.active a{color:#213b70}.menu-item.active a:before{content:\"\";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:0;height:0;opacity:1;transition:all .2s ease-in-out}\n"], dependencies: [{ kind: "component", type: ListComponent, selector: "app-list", inputs: ["telasItem", "hostName"] }] }); }
|
|
3593
|
+
}
|
|
3594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: NavTabsComponent, decorators: [{
|
|
3595
|
+
type: Component,
|
|
3596
|
+
args: [{ selector: 'app-nav-tabs', imports: [ListComponent], template: "<ul class=\"menu my-3\">\n @for(menu of subMenus; track $index) {\n <li class=\"menu-item\" (click)=\"abaActive(menu.titulo)\" [class.active]=\"menu.titulo === listaAtiva\">\n <a class=\"glb-cursor-pointer\" (click)=\"abaActive(menu.titulo)\" [tabindex]=\"$index\">\n {{ menu.titulo }}\n </a>\n </li>\n }\n</ul>\n@if(telasItem){\n <app-list [telasItem]=\"telasItem\" [hostName]=\"hostName\"></app-list>\n}\n", styles: ["@charset \"UTF-8\";.menu{list-style:none;padding:0;margin:0;display:flex;gap:20px}.menu-item a{text-align:center;position:relative;display:inline-block;padding-bottom:5px;color:#6c757d;text-decoration:none;transition:color .3s ease,border-bottom-color .3s ease;border-bottom:2px solid #fff;width:calc(100% + 15px)}.menu-item a:hover{color:#213b70;border-bottom:2px solid #213B70}.menu-item.active a:after{content:\"\";position:absolute;bottom:-2px;left:50%;transform:translate(-50%);width:calc(100% + 5px);height:2px;background-color:#213b70}.menu-item.active a{color:#213b70}.menu-item.active a:before{content:\"\";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:0;height:0;opacity:1;transition:all .2s ease-in-out}\n"] }]
|
|
3597
|
+
}], propDecorators: { subMenus: [{
|
|
3598
|
+
type: Input
|
|
3599
|
+
}], hostName: [{
|
|
3600
|
+
type: Input
|
|
3601
|
+
}] } });
|
|
3602
|
+
|
|
3603
|
+
class NavSubMenus {
|
|
3604
|
+
constructor() {
|
|
3605
|
+
this.icon = '';
|
|
3606
|
+
this.titulo = '';
|
|
3607
|
+
this.subMenuItem = [];
|
|
3608
|
+
}
|
|
3609
|
+
}
|
|
3610
|
+
class SubMenuItem {
|
|
3611
|
+
constructor() {
|
|
3612
|
+
this.titulo = '';
|
|
3613
|
+
this.telasItem = [];
|
|
3614
|
+
}
|
|
3615
|
+
}
|
|
3616
|
+
class TelaItem {
|
|
3617
|
+
constructor() {
|
|
3618
|
+
this.titulo = '';
|
|
3619
|
+
this.urlPath = '';
|
|
3620
|
+
this.IsExternal = false;
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
class SubMenuComponent {
|
|
3624
|
+
/**
|
|
3625
|
+
*
|
|
3626
|
+
*/
|
|
3627
|
+
constructor(_menuService, _projectUtil) {
|
|
3628
|
+
this._menuService = _menuService;
|
|
3629
|
+
this._projectUtil = _projectUtil;
|
|
3630
|
+
this.navSubmenus = [];
|
|
3631
|
+
this.isProduction = true;
|
|
3632
|
+
this.hostname = "https://siscandesv6.sispro.com.br";
|
|
3633
|
+
this.hostNameOutSystems = "";
|
|
3634
|
+
this.activeItem = '';
|
|
3635
|
+
this.listaSubMenus = [];
|
|
3636
|
+
}
|
|
3637
|
+
ngOnInit() {
|
|
3638
|
+
this.GetHostName();
|
|
3639
|
+
if (this.navSubmenus.length > 0 &&
|
|
3640
|
+
this.navSubmenus[0].subMenuItem &&
|
|
3641
|
+
this.navSubmenus[0].subMenuItem.length > 0) {
|
|
3642
|
+
this.activeItem = this.navSubmenus[0].subMenuItem[0].titulo.toString();
|
|
3643
|
+
}
|
|
3644
|
+
this.listaFunction();
|
|
3645
|
+
}
|
|
3646
|
+
listaFunction() {
|
|
3647
|
+
for (let i = 0; i < this.navSubmenus.length; i++) {
|
|
3648
|
+
this.listaSubMenus.push(...this.navSubmenus[i].subMenuItem);
|
|
3649
|
+
}
|
|
3650
|
+
}
|
|
3651
|
+
GetHostName() {
|
|
3652
|
+
this._menuService.GetHostServerOutSystems().subscribe({
|
|
3653
|
+
next: response => {
|
|
3654
|
+
console.log(response.String);
|
|
3655
|
+
this.hostNameOutSystems = response.String;
|
|
3656
|
+
},
|
|
3657
|
+
error: error => this._projectUtil.showHttpError(error)
|
|
3658
|
+
});
|
|
3659
|
+
}
|
|
3660
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SubMenuComponent, deps: [{ token: MenuServicesService }, { token: ProjectUtilservice }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3661
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: SubMenuComponent, isStandalone: true, selector: "app-nav-sub-menu", inputs: { navSubmenus: "navSubmenus", isProduction: "isProduction", hostname: "hostname" }, ngImport: i0, template: "<lib-container>\n <div class=\"px-5\" innerContent1>\n @for(subMenu of navSubmenus; track $index) {\n <div\n [class]=\"\n $first && subMenu.titulo == '' && subMenu.icon == ''\n ? ' mb-2'\n : 'mt-4 mb-2'\n \"\n >\n @if(subMenu.icon != ''){\n <lib-icon\n class=\"bold engrenagem-ajustada\"\n iconName=\"{{ subMenu.icon }}\"\n ></lib-icon>\n } @if(subMenu.titulo != ''){\n <span class=\"fw-bold fs-4 ms-1\">{{ subMenu.titulo }}</span>\n\n }\n <app-nav-tabs [subMenus]=\"navSubmenus[$index].subMenuItem\" [hostName]=\"hostNameOutSystems\"></app-nav-tabs>\n </div>\n @if(!$last){\n <hr />\n } }\n </div>\n</lib-container>\n", styles: [".engrenagem-ajustada{position:relative;top:-4px}\n"], dependencies: [{ kind: "component", type: NavTabsComponent, selector: "app-nav-tabs", inputs: ["subMenus", "hostName"] }, { kind: "component", type: LibIconsComponent, selector: "lib-icon", inputs: ["iconName", "iconColor", "iconSize", "iconFill"] }, { kind: "component", type: ContentContainerComponent, selector: "lib-container", inputs: ["documentation", "tabs", "advancedTabs", "containerTitle", "useBorder", "currentTab"], outputs: ["onChangeTab"] }] }); }
|
|
3662
|
+
}
|
|
3663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SubMenuComponent, decorators: [{
|
|
3664
|
+
type: Component,
|
|
3665
|
+
args: [{ selector: 'app-nav-sub-menu', imports: [
|
|
3666
|
+
NavTabsComponent,
|
|
3667
|
+
LibIconsComponent,
|
|
3668
|
+
ContentContainerComponent
|
|
3669
|
+
], standalone: true, template: "<lib-container>\n <div class=\"px-5\" innerContent1>\n @for(subMenu of navSubmenus; track $index) {\n <div\n [class]=\"\n $first && subMenu.titulo == '' && subMenu.icon == ''\n ? ' mb-2'\n : 'mt-4 mb-2'\n \"\n >\n @if(subMenu.icon != ''){\n <lib-icon\n class=\"bold engrenagem-ajustada\"\n iconName=\"{{ subMenu.icon }}\"\n ></lib-icon>\n } @if(subMenu.titulo != ''){\n <span class=\"fw-bold fs-4 ms-1\">{{ subMenu.titulo }}</span>\n\n }\n <app-nav-tabs [subMenus]=\"navSubmenus[$index].subMenuItem\" [hostName]=\"hostNameOutSystems\"></app-nav-tabs>\n </div>\n @if(!$last){\n <hr />\n } }\n </div>\n</lib-container>\n", styles: [".engrenagem-ajustada{position:relative;top:-4px}\n"] }]
|
|
3670
|
+
}], ctorParameters: () => [{ type: MenuServicesService }, { type: ProjectUtilservice }], propDecorators: { navSubmenus: [{
|
|
3671
|
+
type: Input
|
|
3672
|
+
}], isProduction: [{
|
|
3673
|
+
type: Input
|
|
3674
|
+
}], hostname: [{
|
|
3675
|
+
type: Input
|
|
3676
|
+
}] } });
|
|
3677
|
+
|
|
3454
3678
|
/** Modules */
|
|
3455
|
-
//???f
|
|
3456
3679
|
|
|
3457
3680
|
/**
|
|
3458
3681
|
* Generated bundle index. Do not edit.
|
|
3459
3682
|
*/
|
|
3460
3683
|
|
|
3461
|
-
export { AUTH_ROUTES, AuthAplicInterceptor, AuthGuard, AuthInfraInterceptor, AuthModule, AuthService, AuthStorageService, DynamicMenuComponent, ExternaLoginlGuard, IMenu, InfraUsuarioImg, LIB_CUSTOM_ENVIRONMENT_SERVICE, LIB_CUSTOM_LOGIN_SERVICE, LIB_CUSTOM_MENU_SERVICE, LIB_CUSTOM_STORAGE_SERVICE, LIB_MENU_CONFIG, LibCustomEnvironmentService, LibCustomLoginService, LibCustomMenuService, LibCustomStorageService, LibMenuConfigService, LoginComponent, LoginGuard, LoginOSComponent, LoginOSGuard, LoginProgress, MenuLateralComponent, MenuServicesService, NavSubmenuSearchItem, NotifSubmenuComponent, NovaSenhaComponent, PrimaryDropdownComponent, RetInfraUsuarioImg, RetMenuItemStructure, RetMenuLateral, RetMenuPromise, RetNavSubMenu, RetSubmenuWithCards, SecondaryDropdownComponent, SelecaoEstabelecimentosModalComponent, SituacaoLogin };
|
|
3684
|
+
export { AUTH_ROUTES, AuthAplicInterceptor, AuthGuard, AuthInfraInterceptor, AuthModule, AuthService, AuthStorageService, DynamicMenuComponent, ExternaLoginlGuard, IMenu, InfraUsuarioImg, LIB_CUSTOM_ENVIRONMENT_SERVICE, LIB_CUSTOM_LOGIN_SERVICE, LIB_CUSTOM_MENU_SERVICE, LIB_CUSTOM_STORAGE_SERVICE, LIB_MENU_CONFIG, LibCustomEnvironmentService, LibCustomLoginService, LibCustomMenuService, LibCustomStorageService, LibMenuConfigService, ListComponent, LoginComponent, LoginGuard, LoginOSComponent, LoginOSGuard, LoginProgress, MenuLateralComponent, MenuServicesService, NavSubMenus, NavSubmenuCards, NavSubmenuSearchItem, NavTabsComponent, NotifSubmenuComponent, NovaSenhaComponent, PrimaryDropdownComponent, RetInfraUsuarioImg, RetMenuItemStructure, RetMenuLateral, RetMenuPromise, RetNavSubMenu, RetSubmenuWithCards, SecondaryDropdownComponent, SelecaoEstabelecimentosModalComponent, SituacaoLogin, SubMenuCardComponent, SubMenuComponent, SubMenuItem, TelaItem };
|
|
3462
3685
|
//# sourceMappingURL=ngx-sp-auth.mjs.map
|