@seniorsistemas/angular-components 14.16.9 → 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",
@@ -4309,7 +4313,7 @@ var TokenListComponent = /** @class */ (function () {
4309
4313
  Component({
4310
4314
  selector: "s-token-list",
4311
4315
  template: "<div\n [id]=\"id\"\n class=\"token-list\">\n <ng-container *ngFor=\"let token of tokens\">\n <span\n [id]=\"token.id\"\n class=\"token\"\n [ngClass]=\"{ 'no-pointer-events': hidePointerEvents }\">\n <a\n [id]=\"(token.id || 'token') + '-label'\"\n class=\"token-label\"\n (click)=\"tokenSelected.next(token)\">\n {{ token.label }}\n </a>\n <span\n *ngIf=\"removableTokens\"\n [id]=\"token.id + '-remove'\"\n class=\"token-icon fa fa-fw fa-close\"\n (click)=\"tokenRemoved.next(token)\">\n </span>\n </span>\n </ng-container>\n</div>",
4312
- styles: [".no-pointer-events{pointer-events:none}.token-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 10px;text-transform:none}.token-list .token{-ms-flex-align:center;align-items:center;background-color:#ccc;border-radius:4px;color:#333;display:-ms-flexbox;display:flex;font:400 12px/150% \"Open Sans\",sans-serif;margin:2px 5px 0 0;max-width:100%;padding:2px 8px}.token-list .token-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.token-list .token:focus,.token-list .token:hover{background-color:#e5eaea}.token-list .token a{text-decoration:none;color:#333}"]
4316
+ styles: [".no-pointer-events{pointer-events:none}.token-list{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;padding:0 10px;text-transform:none}.token-list .token{-ms-flex-align:center;align-items:center;background-color:#ccc;border-radius:4px;color:#333;display:-ms-flexbox;display:flex;font:400 12px/150% \"Open Sans\",sans-serif;margin:2px 5px 0 0;max-width:100%;padding:2px 8px}.token-list .token-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.token-list .token:focus,.token-list .token:hover{background-color:#e5eaea}.token-list .token a{text-decoration:none;color:#333}"]
4313
4317
  })
4314
4318
  ], TokenListComponent);
4315
4319
  return TokenListComponent;