@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
|
@@ -1418,13 +1418,14 @@ var CountryPhonePickerComponent = /** @class */ (function () {
|
|
|
1418
1418
|
this.filteredCountriesList = this.countriesList;
|
|
1419
1419
|
this.selectedItem = this._getSelectedCountryDefault();
|
|
1420
1420
|
this.phone.valueChanges.subscribe(function (value) {
|
|
1421
|
+
var _a;
|
|
1421
1422
|
_this.value = {
|
|
1422
1423
|
id: _this.selectedItem.id,
|
|
1423
1424
|
ddi: _this.selectedItem.ddi,
|
|
1424
1425
|
rawValue: value !== null && value !== void 0 ? value : "",
|
|
1425
1426
|
value: value ? "" + _this._applyMask(value) : "",
|
|
1426
1427
|
};
|
|
1427
|
-
_this._onChange(_this.value);
|
|
1428
|
+
(_a = _this._onChange) === null || _a === void 0 ? void 0 : _a.call(_this.value);
|
|
1428
1429
|
});
|
|
1429
1430
|
};
|
|
1430
1431
|
CountryPhonePickerComponent.prototype.onKeydown = function (event) {
|
|
@@ -5496,6 +5497,16 @@ var TokenListComponent = /** @class */ (function () {
|
|
|
5496
5497
|
this.tokenRemoved = new EventEmitter();
|
|
5497
5498
|
}
|
|
5498
5499
|
TokenListComponent_1 = TokenListComponent;
|
|
5500
|
+
TokenListComponent.prototype.onTokenSelected = function (token) {
|
|
5501
|
+
if (!token.disabled) {
|
|
5502
|
+
this.tokenSelected.next(token);
|
|
5503
|
+
}
|
|
5504
|
+
};
|
|
5505
|
+
TokenListComponent.prototype.onTokenRemoved = function (token) {
|
|
5506
|
+
if (!token.disabled) {
|
|
5507
|
+
this.tokenRemoved.next(token);
|
|
5508
|
+
}
|
|
5509
|
+
};
|
|
5499
5510
|
var TokenListComponent_1;
|
|
5500
5511
|
TokenListComponent.nextId = 0;
|
|
5501
5512
|
__decorate([
|
|
@@ -5519,8 +5530,8 @@ var TokenListComponent = /** @class */ (function () {
|
|
|
5519
5530
|
TokenListComponent = TokenListComponent_1 = __decorate([
|
|
5520
5531
|
Component({
|
|
5521
5532
|
selector: "s-token-list",
|
|
5522
|
-
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]=\"{
|
|
5523
|
-
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:#
|
|
5533
|
+
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>",
|
|
5534
|
+
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}"]
|
|
5524
5535
|
})
|
|
5525
5536
|
], TokenListComponent);
|
|
5526
5537
|
return TokenListComponent;
|