matcha-components 20.168.0 → 20.170.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 {
|
|
@@ -11296,6 +11310,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
11296
11310
|
}] } });
|
|
11297
11311
|
|
|
11298
11312
|
class MatchaTooltipDirective {
|
|
11313
|
+
get tooltipText() { return this._tooltipText; }
|
|
11314
|
+
set tooltipText(v) {
|
|
11315
|
+
this._tooltipText = v;
|
|
11316
|
+
}
|
|
11317
|
+
get tooltipTextAttr() {
|
|
11318
|
+
return this.tooltipText;
|
|
11319
|
+
}
|
|
11299
11320
|
get tooltipDisabled() { return this._tooltipDisabled; }
|
|
11300
11321
|
set tooltipDisabled(v) { this._tooltipDisabled = v === 'false' ? false : !!v; }
|
|
11301
11322
|
get tooltipDisabledAttr() {
|
|
@@ -11329,7 +11350,7 @@ class MatchaTooltipDirective {
|
|
|
11329
11350
|
constructor(el, renderer) {
|
|
11330
11351
|
this.el = el;
|
|
11331
11352
|
this.renderer = renderer;
|
|
11332
|
-
this.
|
|
11353
|
+
this._tooltipText = '';
|
|
11333
11354
|
this._tooltipDisabled = false;
|
|
11334
11355
|
this._preferAbove = false;
|
|
11335
11356
|
this._preferBelow = false;
|
|
@@ -11481,7 +11502,7 @@ class MatchaTooltipDirective {
|
|
|
11481
11502
|
this.destroyTooltip();
|
|
11482
11503
|
}
|
|
11483
11504
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
11484
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTooltipDirective, isStandalone: false, selector: "[matchaTooltip]", inputs: { tooltipText: ["matchaTooltip", "tooltipText"], tooltipDisabled: ["matchaTooltipDisabled", "tooltipDisabled"], preferAbove: ["matchaTooltipAbove", "preferAbove"], preferBelow: ["matchaTooltipBelow", "preferBelow"], preferLeft: ["matchaTooltipLeft", "preferLeft"], preferRight: ["matchaTooltipRight", "preferRight"], tooltipEnableClose: ["matchaTooltipEnableClose", "tooltipEnableClose"] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "onClick($event)" }, properties: { "attr.tooltip-disabled": "this.tooltipDisabledAttr", "attr.tooltip-above": "this.preferAboveAttr", "attr.tooltip-below": "this.preferBelowAttr", "attr.tooltip-left": "this.preferLeftAttr", "attr.tooltip-right": "this.preferRightAttr", "attr.tooltip-enable-close": "this.tooltipEnableCloseAttr" } }, ngImport: i0 }); }
|
|
11505
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTooltipDirective, isStandalone: false, selector: "[matchaTooltip]", inputs: { tooltipText: ["matchaTooltip", "tooltipText"], tooltipDisabled: ["matchaTooltipDisabled", "tooltipDisabled"], preferAbove: ["matchaTooltipAbove", "preferAbove"], preferBelow: ["matchaTooltipBelow", "preferBelow"], preferLeft: ["matchaTooltipLeft", "preferLeft"], preferRight: ["matchaTooltipRight", "preferRight"], tooltipEnableClose: ["matchaTooltipEnableClose", "tooltipEnableClose"] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "onClick($event)" }, properties: { "attr.matchaTooltip": "this.tooltipTextAttr", "attr.tooltip-disabled": "this.tooltipDisabledAttr", "attr.tooltip-above": "this.preferAboveAttr", "attr.tooltip-below": "this.preferBelowAttr", "attr.tooltip-left": "this.preferLeftAttr", "attr.tooltip-right": "this.preferRightAttr", "attr.tooltip-enable-close": "this.tooltipEnableCloseAttr" } }, ngImport: i0 }); }
|
|
11485
11506
|
}
|
|
11486
11507
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipDirective, decorators: [{
|
|
11487
11508
|
type: Directive,
|
|
@@ -11492,6 +11513,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
11492
11513
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { tooltipText: [{
|
|
11493
11514
|
type: Input,
|
|
11494
11515
|
args: ['matchaTooltip']
|
|
11516
|
+
}], tooltipTextAttr: [{
|
|
11517
|
+
type: HostBinding,
|
|
11518
|
+
args: ['attr.matchaTooltip']
|
|
11495
11519
|
}], tooltipDisabled: [{
|
|
11496
11520
|
type: Input,
|
|
11497
11521
|
args: ['matchaTooltipDisabled']
|