matcha-components 20.158.0 → 20.159.0

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.
@@ -8478,10 +8478,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
8478
8478
  }] } });
8479
8479
 
8480
8480
  class MatchaOptionComponent {
8481
+ get disabled() { return this._disabled; }
8482
+ set disabled(value) {
8483
+ this._disabled = value !== false && value !== 'false';
8484
+ }
8485
+ get disabledAttr() {
8486
+ return this.disabled ? 'true' : null;
8487
+ }
8488
+ get disabledClass() {
8489
+ return this.disabled;
8490
+ }
8481
8491
  constructor(parent, elRef) {
8482
8492
  this.parent = parent;
8483
8493
  this.elRef = elRef;
8484
- this.disabled = false;
8494
+ this._disabled = false;
8485
8495
  this.selected = false;
8486
8496
  // ✅ EventEmitters para uso standalone
8487
8497
  this.optionClick = new EventEmitter();
@@ -8552,7 +8562,7 @@ class MatchaOptionComponent {
8552
8562
  return this.elRef.nativeElement.textContent?.trim() || '';
8553
8563
  }
8554
8564
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionComponent, deps: [{ token: MATCHA_OPTION_PARENT, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
8555
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaOptionComponent, isStandalone: false, selector: "matcha-option", inputs: { value: "value", disabled: "disabled" }, outputs: { optionClick: "optionClick", optionSelect: "optionSelect" }, host: { attributes: { "role": "option", "tabindex": "0" }, listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.aria-selected": "this.selected" }, classAttribute: "matcha-option" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
8565
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaOptionComponent, isStandalone: false, selector: "matcha-option", inputs: { value: "value", disabled: "disabled" }, outputs: { optionClick: "optionClick", optionSelect: "optionSelect" }, host: { attributes: { "role": "option", "tabindex": "0" }, listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.disabled": "this.disabledAttr", "class.matcha-disabled": "this.disabledClass", "attr.aria-selected": "this.selected" }, classAttribute: "matcha-option" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
8556
8566
  }
8557
8567
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionComponent, decorators: [{
8558
8568
  type: Component,
@@ -8575,6 +8585,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
8575
8585
  type: Input
8576
8586
  }], disabled: [{
8577
8587
  type: Input
8588
+ }], disabledAttr: [{
8589
+ type: HostBinding,
8590
+ args: ['attr.disabled']
8591
+ }], disabledClass: [{
8592
+ type: HostBinding,
8593
+ args: ['class.matcha-disabled']
8578
8594
  }], selected: [{
8579
8595
  type: HostBinding,
8580
8596
  args: ['attr.aria-selected']