ngx-sp-auth 4.1.0 → 4.1.1
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
CHANGED
|
@@ -3734,7 +3734,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
3734
3734
|
}] } });
|
|
3735
3735
|
|
|
3736
3736
|
class NavTabsComponent {
|
|
3737
|
+
// #endregion PUBLIC
|
|
3738
|
+
// #endregion ==========> PROPERTIES <==========
|
|
3737
3739
|
constructor() {
|
|
3740
|
+
// #region ==========> PROPERTIES <==========
|
|
3741
|
+
// #region PUBLIC
|
|
3738
3742
|
this.subMenus = [];
|
|
3739
3743
|
this.hostName = "";
|
|
3740
3744
|
this.telasItem = [];
|
|
@@ -3743,9 +3747,10 @@ class NavTabsComponent {
|
|
|
3743
3747
|
ngOnInit() {
|
|
3744
3748
|
if (this.subMenus.length != 0) {
|
|
3745
3749
|
this.telasItem = this.subMenus[0].telasItem;
|
|
3746
|
-
this.listaAtiva = this.subMenus[0].titulo;
|
|
3750
|
+
this.listaAtiva = this.activeItem ?? this.subMenus[0].titulo;
|
|
3747
3751
|
}
|
|
3748
3752
|
}
|
|
3753
|
+
// #region ==========> UTILS <==========
|
|
3749
3754
|
abaActive(b) {
|
|
3750
3755
|
const index = this.subMenus.findIndex(submenu => {
|
|
3751
3756
|
return submenu.titulo == b;
|
|
@@ -3754,15 +3759,19 @@ class NavTabsComponent {
|
|
|
3754
3759
|
this.listaAtiva = this.subMenus[index].titulo;
|
|
3755
3760
|
}
|
|
3756
3761
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NavTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3757
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", 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\"
|
|
3762
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: NavTabsComponent, isStandalone: true, selector: "app-nav-tabs", inputs: { subMenus: "subMenus", hostName: "hostName", activeItem: "activeItem" }, 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\n@if (telasItem) {\n <app-list [telasItem]=\"telasItem\" [hostName]=\"hostName\" />\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"] }] }); }
|
|
3758
3763
|
}
|
|
3759
3764
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NavTabsComponent, decorators: [{
|
|
3760
3765
|
type: Component,
|
|
3761
|
-
args: [{ selector: 'app-nav-tabs', imports: [
|
|
3762
|
-
|
|
3766
|
+
args: [{ selector: 'app-nav-tabs', imports: [
|
|
3767
|
+
ListComponent
|
|
3768
|
+
], 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\n@if (telasItem) {\n <app-list [telasItem]=\"telasItem\" [hostName]=\"hostName\" />\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"] }]
|
|
3769
|
+
}], ctorParameters: () => [], propDecorators: { subMenus: [{
|
|
3763
3770
|
type: Input
|
|
3764
3771
|
}], hostName: [{
|
|
3765
3772
|
type: Input
|
|
3773
|
+
}], activeItem: [{
|
|
3774
|
+
type: Input
|
|
3766
3775
|
}] } });
|
|
3767
3776
|
|
|
3768
3777
|
class NavSubMenus {
|
|
@@ -3786,17 +3795,17 @@ class TelaItem {
|
|
|
3786
3795
|
}
|
|
3787
3796
|
}
|
|
3788
3797
|
class SubMenuComponent {
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
*/
|
|
3798
|
+
// #endregion PUBLIC
|
|
3799
|
+
// #endregion ==========> PROPERTIES <==========
|
|
3792
3800
|
constructor(_menuService, _projectUtil) {
|
|
3793
3801
|
this._menuService = _menuService;
|
|
3794
3802
|
this._projectUtil = _projectUtil;
|
|
3803
|
+
// #region ==========> PROPERTIES <==========
|
|
3804
|
+
// #region PUBLIC
|
|
3795
3805
|
this.navSubmenus = [];
|
|
3796
3806
|
this.isProduction = true;
|
|
3797
3807
|
this.hostname = "https://siscandesv6.sispro.com.br";
|
|
3798
3808
|
this.hostNameOutSystems = "";
|
|
3799
|
-
this.activeItem = '';
|
|
3800
3809
|
this.listaSubMenus = [];
|
|
3801
3810
|
}
|
|
3802
3811
|
ngOnInit() {
|
|
@@ -3808,6 +3817,7 @@ class SubMenuComponent {
|
|
|
3808
3817
|
}
|
|
3809
3818
|
this.listaFunction();
|
|
3810
3819
|
}
|
|
3820
|
+
// #region ==========> UTILS <==========
|
|
3811
3821
|
listaFunction() {
|
|
3812
3822
|
for (let i = 0; i < this.navSubmenus.length; i++) {
|
|
3813
3823
|
this.listaSubMenus.push(...this.navSubmenus[i].subMenuItem);
|
|
@@ -3815,15 +3825,12 @@ class SubMenuComponent {
|
|
|
3815
3825
|
}
|
|
3816
3826
|
GetHostName() {
|
|
3817
3827
|
this._menuService.GetHostServerOutSystems().subscribe({
|
|
3818
|
-
next: response =>
|
|
3819
|
-
console.log(response.String);
|
|
3820
|
-
this.hostNameOutSystems = response.String;
|
|
3821
|
-
},
|
|
3828
|
+
next: response => this.hostNameOutSystems = response.String,
|
|
3822
3829
|
error: error => this._projectUtil.showHttpError(error)
|
|
3823
3830
|
});
|
|
3824
3831
|
}
|
|
3825
3832
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SubMenuComponent, deps: [{ token: MenuServicesService }, { token: ProjectUtilservice }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3826
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", 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
|
|
3833
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: SubMenuComponent, isStandalone: true, selector: "app-nav-sub-menu", inputs: { navSubmenus: "navSubmenus", isProduction: "isProduction", hostname: "hostname", activeItem: "activeItem" }, ngImport: i0, template: "<lib-container>\n <div class=\"px-5\" innerContent1>\n @for(subMenu of navSubmenus; track $index) {\n <div [class]=\"$first && subMenu.titulo == '' && subMenu.icon == '' ? ' mb-2' : 'mt-4 mb-2'\">\n @if (subMenu.icon != '') {\n <lib-icon class=\"bold engrenagem-ajustada\" iconName=\"{{ subMenu.icon }}\" />\n }\n @if (subMenu.titulo != ''){\n <span class=\"fw-bold fs-4 ms-1\">{{ subMenu.titulo }}</span>\n }\n\n <app-nav-tabs [activeItem]=\"activeItem\" [subMenus]=\"navSubmenus[$index].subMenuItem\" [hostName]=\"hostNameOutSystems\" />\n </div>\n\n @if(!$last){ <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", "activeItem"] }, { 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"] }] }); }
|
|
3827
3834
|
}
|
|
3828
3835
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SubMenuComponent, decorators: [{
|
|
3829
3836
|
type: Component,
|
|
@@ -3831,13 +3838,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
3831
3838
|
NavTabsComponent,
|
|
3832
3839
|
LibIconsComponent,
|
|
3833
3840
|
ContentContainerComponent
|
|
3834
|
-
], standalone: true, template: "<lib-container>\n <div class=\"px-5\" innerContent1>\n @for(subMenu of navSubmenus; track $index) {\n
|
|
3841
|
+
], standalone: true, template: "<lib-container>\n <div class=\"px-5\" innerContent1>\n @for(subMenu of navSubmenus; track $index) {\n <div [class]=\"$first && subMenu.titulo == '' && subMenu.icon == '' ? ' mb-2' : 'mt-4 mb-2'\">\n @if (subMenu.icon != '') {\n <lib-icon class=\"bold engrenagem-ajustada\" iconName=\"{{ subMenu.icon }}\" />\n }\n @if (subMenu.titulo != ''){\n <span class=\"fw-bold fs-4 ms-1\">{{ subMenu.titulo }}</span>\n }\n\n <app-nav-tabs [activeItem]=\"activeItem\" [subMenus]=\"navSubmenus[$index].subMenuItem\" [hostName]=\"hostNameOutSystems\" />\n </div>\n\n @if(!$last){ <hr /> }\n }\n </div>\n</lib-container>\n", styles: [".engrenagem-ajustada{position:relative;top:-4px}\n"] }]
|
|
3835
3842
|
}], ctorParameters: () => [{ type: MenuServicesService }, { type: ProjectUtilservice }], propDecorators: { navSubmenus: [{
|
|
3836
3843
|
type: Input
|
|
3837
3844
|
}], isProduction: [{
|
|
3838
3845
|
type: Input
|
|
3839
3846
|
}], hostname: [{
|
|
3840
3847
|
type: Input
|
|
3848
|
+
}], activeItem: [{
|
|
3849
|
+
type: Input
|
|
3841
3850
|
}] } });
|
|
3842
3851
|
|
|
3843
3852
|
/** Modules */
|