@seniorsistemas/angular-components 16.7.2 → 16.7.3

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.
@@ -1587,13 +1587,14 @@
1587
1587
  this.filteredCountriesList = this.countriesList;
1588
1588
  this.selectedItem = this._getSelectedCountryDefault();
1589
1589
  this.phone.valueChanges.subscribe(function (value) {
1590
+ var _a;
1590
1591
  _this.value = {
1591
1592
  id: _this.selectedItem.id,
1592
1593
  ddi: _this.selectedItem.ddi,
1593
1594
  rawValue: value !== null && value !== void 0 ? value : "",
1594
1595
  value: value ? "" + _this._applyMask(value) : "",
1595
1596
  };
1596
- _this._onChange(_this.value);
1597
+ (_a = _this._onChange) === null || _a === void 0 ? void 0 : _a.call(_this.value);
1597
1598
  });
1598
1599
  };
1599
1600
  CountryPhonePickerComponent.prototype.onKeydown = function (event) {
@@ -5665,6 +5666,16 @@
5665
5666
  this.tokenRemoved = new core.EventEmitter();
5666
5667
  }
5667
5668
  TokenListComponent_1 = TokenListComponent;
5669
+ TokenListComponent.prototype.onTokenSelected = function (token) {
5670
+ if (!token.disabled) {
5671
+ this.tokenSelected.next(token);
5672
+ }
5673
+ };
5674
+ TokenListComponent.prototype.onTokenRemoved = function (token) {
5675
+ if (!token.disabled) {
5676
+ this.tokenRemoved.next(token);
5677
+ }
5678
+ };
5668
5679
  var TokenListComponent_1;
5669
5680
  TokenListComponent.nextId = 0;
5670
5681
  __decorate([
@@ -5688,8 +5699,8 @@
5688
5699
  TokenListComponent = TokenListComponent_1 = __decorate([
5689
5700
  core.Component({
5690
5701
  selector: "s-token-list",
5691
- 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 && !token.notRemovable\"\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>",
5692
- 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{max-width:50ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token-list .token:focus,.token-list .token:hover{background-color:#e5eaea}.token-list .token a{text-decoration:none;color:#333}"]
5702
+ 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]=\"{\n 'no-pointer-events': hidePointerEvents,\n 'token--disabled': token.disabled\n }\">\n <a\n [id]=\"(token.id || 'token') + '-label'\"\n class=\"token-label\"\n (click)=\"onTokenSelected(token)\">\n {{ token.label }}\n </a>\n <span\n *ngIf=\"removableTokens && !token.notRemovable\"\n [id]=\"token.id + '-remove'\"\n class=\"token-icon fa fa-fw fa-close\"\n (click)=\"onTokenRemoved(token)\">\n </span>\n </span>\n </ng-container>\n</div>",
5703
+ 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:#e5eaea;border:1px solid #697882;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;-webkit-user-select:none;-ms-user-select:none;user-select:none}.token-list .token-label{max-width:50ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token-list .token:not(.token--disabled):focus,.token-list .token:not(.token--disabled):hover{background-color:#ccc}.token-list .token a{text-decoration:none;color:#333}.token-list .token--disabled{opacity:50%}.token-list .token--disabled a{cursor:default}"]
5693
5704
  })
5694
5705
  ], TokenListComponent);
5695
5706
  return TokenListComponent;