matcha-components 20.168.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 {
|