ngx-sp-auth 4.13.4 → 4.13.6

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.
@@ -4401,6 +4401,7 @@ class NavSubmenuCards {
4401
4401
  this.descricao = '';
4402
4402
  this.urlPath = '';
4403
4403
  this.isExternal = false;
4404
+ this.is_OutroModulo = false;
4404
4405
  }
4405
4406
  }
4406
4407
  class SubMenuCardComponent {
@@ -4414,7 +4415,7 @@ class SubMenuCardComponent {
4414
4415
  // #region PUBLIC
4415
4416
  this.subMenuCards = [];
4416
4417
  this.hostName = "";
4417
- this.getExternalUrl = (url) => { return `${this.hostName == "" ? `https://${window.location.host}` : this.hostName}/${url}`; };
4418
+ this.getExternalUrl = (url, isOutroModulo) => { return (isOutroModulo ? `${this.hostName}/SisproErpCloud/${url}` : `${this.hostName == "" ? `https://${window.location.host}` : this.hostName}/${url}`); };
4418
4419
  }
4419
4420
  ngOnInit() {
4420
4421
  this.GetHostName();
@@ -4434,8 +4435,8 @@ class SubMenuCardComponent {
4434
4435
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: SubMenuCardComponent, isStandalone: true, selector: "sub-menu-card, lib-submenu-card", inputs: { subMenuCards: "subMenuCards" }, ngImport: i0, template: `
4435
4436
  <div class="max-card-menu row">
4436
4437
  @for(card of subMenuCards; track $index) {
4437
- @if (card.isExternal) {
4438
- <a [href]="getExternalUrl(card.urlPath)" target="_blank" class="card-link col-4">
4438
+ @if (card.isExternal || card.is_OutroModulo) {
4439
+ <a [href]="getExternalUrl(card.urlPath, card.is_OutroModulo)" target="_blank" class="card-link col-4">
4439
4440
  <div class="card w-100 border-0 rounded text-center glb-cursor-pointer">
4440
4441
  <div class="card-icon">
4441
4442
  <div class="card-icon2">
@@ -4474,8 +4475,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
4474
4475
  ], template: `
4475
4476
  <div class="max-card-menu row">
4476
4477
  @for(card of subMenuCards; track $index) {
4477
- @if (card.isExternal) {
4478
- <a [href]="getExternalUrl(card.urlPath)" target="_blank" class="card-link col-4">
4478
+ @if (card.isExternal || card.is_OutroModulo) {
4479
+ <a [href]="getExternalUrl(card.urlPath, card.is_OutroModulo)" target="_blank" class="card-link col-4">
4479
4480
  <div class="card w-100 border-0 rounded text-center glb-cursor-pointer">
4480
4481
  <div class="card-icon">
4481
4482
  <div class="card-icon2">