matcha-components 20.167.0 → 20.169.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.
@@ -8944,6 +8944,8 @@ class MatchaAutocompleteComponent {
8944
8944
  this.closed = new EventEmitter();
8945
8945
  this.cleared = new EventEmitter();
8946
8946
  this.autoSelected = new EventEmitter();
8947
+ this.optionSelected = new EventEmitter();
8948
+ this.openedChange = new EventEmitter();
8947
8949
  this.open = false;
8948
8950
  this.activeIndex = -1;
8949
8951
  }
@@ -8988,6 +8990,7 @@ class MatchaAutocompleteComponent {
8988
8990
  this.panel.openPanel();
8989
8991
  this.resetActive();
8990
8992
  this.opened.emit();
8993
+ this.openedChange.emit(true);
8991
8994
  }
8992
8995
  closePanel() {
8993
8996
  if (!this.open)
@@ -8997,6 +9000,7 @@ class MatchaAutocompleteComponent {
8997
9000
  this.updateSelectedStates();
8998
9001
  this.panel.closePanel();
8999
9002
  this.closed.emit();
9003
+ this.openedChange.emit(false);
9000
9004
  }
9001
9005
  togglePanel() {
9002
9006
  if (this.disabled)
@@ -9063,6 +9067,12 @@ class MatchaAutocompleteComponent {
9063
9067
  value: option.value,
9064
9068
  displayText: displayText
9065
9069
  });
9070
+ // Emitir evento de seleção compatível com MatAutocompleteSelectedEvent
9071
+ this.optionSelected.emit({
9072
+ option: {
9073
+ value: option.value
9074
+ }
9075
+ });
9066
9076
  // Fechamos painel automaticamente
9067
9077
  this.closePanel();
9068
9078
  // Forçar detecção de mudanças para garantir que o painel seja fechado
@@ -9126,7 +9136,7 @@ class MatchaAutocompleteComponent {
9126
9136
  return null;
9127
9137
  }
9128
9138
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
9129
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAutocompleteComponent, isStandalone: false, selector: "matcha-autocomplete", inputs: { placement: "placement", maxHeight: "maxHeight", minWidth: "minWidth", disabled: "disabled", autoSelectOnBlur: "autoSelectOnBlur", displayWith: "displayWith", displayProperty: "displayProperty", showClearButton: "showClearButton", clearButtonIcon: "clearButtonIcon", clearButtonAriaLabel: "clearButtonAriaLabel" }, outputs: { opened: "opened", closed: "closed", cleared: "cleared", autoSelected: "autoSelected" }, host: { properties: { "class.matcha-autocomplete-disabled": "this.hostDisabledClass", "attr.disabled": "this.hostDisabledAttr" } }, providers: [
9139
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAutocompleteComponent, isStandalone: false, selector: "matcha-autocomplete", inputs: { placement: "placement", maxHeight: "maxHeight", minWidth: "minWidth", disabled: "disabled", autoSelectOnBlur: "autoSelectOnBlur", displayWith: "displayWith", displayProperty: "displayProperty", showClearButton: "showClearButton", clearButtonIcon: "clearButtonIcon", clearButtonAriaLabel: "clearButtonAriaLabel" }, outputs: { opened: "opened", closed: "closed", cleared: "cleared", autoSelected: "autoSelected", optionSelected: "optionSelected", openedChange: "openedChange" }, host: { properties: { "class.matcha-autocomplete-disabled": "this.hostDisabledClass", "attr.disabled": "this.hostDisabledAttr" } }, providers: [
9130
9140
  {
9131
9141
  provide: MATCHA_OPTION_PARENT,
9132
9142
  useExisting: forwardRef(() => MatchaAutocompleteComponent)
@@ -9181,6 +9191,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
9181
9191
  type: Output
9182
9192
  }], autoSelected: [{
9183
9193
  type: Output
9194
+ }], optionSelected: [{
9195
+ type: Output
9196
+ }], openedChange: [{
9197
+ type: Output
9184
9198
  }] } });
9185
9199
 
9186
9200
  class MatchaSelectComponent {
@@ -9221,6 +9235,7 @@ class MatchaSelectComponent {
9221
9235
  this.opened = new EventEmitter();
9222
9236
  this.closed = new EventEmitter();
9223
9237
  this.selectionChange = new EventEmitter();
9238
+ this.openedChange = new EventEmitter();
9224
9239
  this.open = false;
9225
9240
  this.activeIndex = -1;
9226
9241
  // ControlValueAccessor properties
@@ -9364,6 +9379,7 @@ class MatchaSelectComponent {
9364
9379
  this.setActiveIndexFromSelectedValue();
9365
9380
  this.updateSelectedStates();
9366
9381
  this.opened.emit();
9382
+ this.openedChange.emit(true);
9367
9383
  }
9368
9384
  closePanel() {
9369
9385
  if (!this.open)
@@ -9373,6 +9389,7 @@ class MatchaSelectComponent {
9373
9389
  this.updateSelectedStates();
9374
9390
  this.panel.closePanel();
9375
9391
  this.closed.emit();
9392
+ this.openedChange.emit(false);
9376
9393
  // Marcar como touched quando o painel fecha (importante para validação)
9377
9394
  this.onTouched();
9378
9395
  }
@@ -9438,8 +9455,8 @@ class MatchaSelectComponent {
9438
9455
  });
9439
9456
  // Notificar a diretiva sobre a seleção
9440
9457
  this.notifyDirectiveOfSelection(option.value);
9441
- // Emitir evento de mudança de seleção
9442
- this.selectionChange.emit(option.value);
9458
+ // Emitir evento de mudança de seleção (compatível com MatSelectChange)
9459
+ this.selectionChange.emit({ source: this, value: option.value });
9443
9460
  // Notificar o Angular Forms sobre a mudança
9444
9461
  this.onChange(option.value);
9445
9462
  this.onTouched();
@@ -9499,8 +9516,8 @@ class MatchaSelectComponent {
9499
9516
  });
9500
9517
  // Notificar a diretiva sobre a seleção antes de fechar o painel
9501
9518
  this.notifyDirectiveOfSelection(option.value);
9502
- // Emitir evento de mudança de seleção
9503
- this.selectionChange.emit(option.value);
9519
+ // Emitir evento de mudança de seleção (compatível com MatSelectChange)
9520
+ this.selectionChange.emit({ source: this, value: option.value });
9504
9521
  // Notificar o Angular Forms sobre a mudança
9505
9522
  this.onChange(option.value);
9506
9523
  this.onTouched();
@@ -9582,7 +9599,7 @@ class MatchaSelectComponent {
9582
9599
  this.cdr.detectChanges();
9583
9600
  }
9584
9601
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
9585
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSelectComponent, isStandalone: false, selector: "matcha-select", inputs: { placement: "placement", maxHeight: "maxHeight", minWidth: "minWidth", placeholder: "placeholder", disabled: "disabled" }, outputs: { opened: "opened", closed: "closed", selectionChange: "selectionChange" }, host: { properties: { "class.matcha-select-disabled": "this.hostDisabledClass", "attr.disabled": "this.hostDisabledAttr" } }, providers: [
9602
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSelectComponent, isStandalone: false, selector: "matcha-select", inputs: { placement: "placement", maxHeight: "maxHeight", minWidth: "minWidth", placeholder: "placeholder", disabled: "disabled" }, outputs: { opened: "opened", closed: "closed", selectionChange: "selectionChange", openedChange: "openedChange" }, host: { properties: { "class.matcha-select-disabled": "this.hostDisabledClass", "attr.disabled": "this.hostDisabledAttr" } }, providers: [
9586
9603
  {
9587
9604
  provide: NG_VALUE_ACCESSOR,
9588
9605
  useExisting: forwardRef(() => MatchaSelectComponent),
@@ -9629,6 +9646,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
9629
9646
  type: Output
9630
9647
  }], selectionChange: [{
9631
9648
  type: Output
9649
+ }], openedChange: [{
9650
+ type: Output
9632
9651
  }], hostDisabledClass: [{
9633
9652
  type: HostBinding,
9634
9653
  args: ['class.matcha-select-disabled']