@seniorsistemas/angular-components 14.16.10 → 14.16.11

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.
@@ -58,6 +58,7 @@ var BreadcrumbComponent = /** @class */ (function () {
58
58
  var _this = this;
59
59
  this.activatedRoute = activatedRoute;
60
60
  this.router = router;
61
+ this.targetHomeUrl = "_self";
61
62
  this.ngUnsubscribe = new Subject();
62
63
  this.router.events
63
64
  .pipe(takeUntil(this.ngUnsubscribe), filter(function (event) { return event instanceof NavigationEnd; }))
@@ -83,7 +84,7 @@ var BreadcrumbComponent = /** @class */ (function () {
83
84
  BreadcrumbComponent.prototype.getCurrentHome = function (routes) {
84
85
  var home;
85
86
  if (this.homeUrl)
86
- home = { url: this.homeUrl, icon: "fa fa-home" };
87
+ home = { url: this.homeUrl, icon: "fa fa-home", target: this.targetHomeUrl };
87
88
  else if (routes.length)
88
89
  home = __assign(__assign({}, this.getMenuItem(routes[0], routes.length === 1)), { icon: "fa fa-home" });
89
90
  return home;
@@ -129,6 +130,9 @@ var BreadcrumbComponent = /** @class */ (function () {
129
130
  __decorate([
130
131
  Input()
131
132
  ], BreadcrumbComponent.prototype, "homeUrl", void 0);
133
+ __decorate([
134
+ Input()
135
+ ], BreadcrumbComponent.prototype, "targetHomeUrl", void 0);
132
136
  BreadcrumbComponent = __decorate([
133
137
  Component({
134
138
  selector: "s-breadcrumb",