@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.
- package/bundles/seniorsistemas-angular-components.umd.js +5 -1
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/breadcrumb/breadcrumb.component.d.ts +1 -0
- package/esm2015/components/breadcrumb/breadcrumb.component.js +6 -2
- package/esm5/components/breadcrumb/breadcrumb.component.js +6 -2
- package/fesm2015/seniorsistemas-angular-components.js +5 -1
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +5 -1
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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",
|