@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.
- package/bundles/seniorsistemas-angular-components.umd.js +14 -3
- 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/token-list/models/token.d.ts +1 -0
- package/components/token-list/token-list.component.d.ts +2 -0
- package/esm2015/components/country-phone-picker/country-phone-picker.component.js +3 -2
- package/esm2015/components/token-list/models/token.js +1 -1
- package/esm2015/components/token-list/token-list.component.js +13 -3
- package/esm5/components/country-phone-picker/country-phone-picker.component.js +3 -2
- package/esm5/components/token-list/models/token.js +1 -1
- package/esm5/components/token-list/token-list.component.js +13 -3
- package/fesm2015/seniorsistemas-angular-components.js +14 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +14 -3
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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]=\"{
|
|
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:#
|
|
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;
|