@seniorsistemas/angular-components 16.6.1 → 16.6.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.
@@ -269,7 +269,7 @@
269
269
  BadgeComponent = __decorate([
270
270
  core.Component({
271
271
  selector: "s-badge",
272
- template: "<span\n class=\"badge\"\n [ngClass]=\"{ \n 'badge--red': color == 'red',\n 'badge--orange': color == 'orange',\n 'badge--yellow': color == 'yellow',\n 'badge--blue': color == 'blue',\n 'badge--green': color == 'green',\n 'badge--gray': color == 'gray',\n 'badge--selectable': selectable\n }\">\n <span\n *ngIf=\"iconClass\"\n class=\"badge-icon\"\n [ngClass]=\"{\n 'fas fa-rocket': true,\n 'badge-icon--left': iconPosition == 'left' && text,\n 'badge-icon--right': iconPosition == 'right' && text\n }\">\n </span>\n <p class=\"badge-text\">{{ text }}</p>\n</span>",
272
+ template: "<span\n class=\"badge\"\n [ngClass]=\"{ \n 'badge--red': color == 'red',\n 'badge--orange': color == 'orange',\n 'badge--yellow': color == 'yellow',\n 'badge--blue': color == 'blue',\n 'badge--green': color == 'green',\n 'badge--gray': color == 'gray',\n 'badge--selectable': selectable\n }\">\n <span\n *ngIf=\"iconClass\"\n [class]=\"'badge-icon ' + iconClass\"\n [ngClass]=\"{\n 'badge-icon--left': iconPosition == 'left' && text,\n 'badge-icon--right': iconPosition == 'right' && text\n }\">\n </span>\n <p class=\"badge-text\">{{ text }}</p>\n</span>",
273
273
  styles: [".badge{-ms-flex-align:center;align-items:center;border-radius:12px;display:-ms-inline-flexbox;display:inline-flex;height:1.25rem;-ms-flex-pack:center;justify-content:center;min-width:20px;padding:0 .5rem}.badge .badge-text{color:#333;font-family:\"Open Sans\",sans-serif;font-size:.75rem;font-weight:400;line-height:150%}.badge .badge-icon{color:#333;font-size:10px}.badge .badge-icon--left{margin-right:8px}.badge .badge-icon--right{margin-left:8px;-ms-flex-order:2;order:2}.badge--red{background-color:#fcd2d2;border:1px solid #c13018}.badge--orange{background-color:#fce3ba;border:1px solid #f8931f}.badge--yellow{background-color:#fef4e3;border:1px solid #fcbf10}.badge--blue{background-color:#d5e8ec;border:1px solid #428bca}.badge--green{background-color:#e6ffb3;border:1px solid #0c9348}.badge--gray{background-color:#e5eaea;border:1px solid #697882}.badge--selectable{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}"]
274
274
  })
275
275
  ], BadgeComponent);
@@ -2318,7 +2318,7 @@
2318
2318
  this.onSelect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
2319
2319
  this.onUnselect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
2320
2320
  this.onClear.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
2321
- if (_this.multiple || !_this.value) {
2321
+ if (_this.multiple || _this.value) {
2322
2322
  return;
2323
2323
  }
2324
2324
  _this.onChange(null);