matcha-components 20.162.0 → 20.163.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.
|
@@ -12226,14 +12226,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
12226
12226
|
}] });
|
|
12227
12227
|
|
|
12228
12228
|
class MatchaAutocompleteTriggerDirective {
|
|
12229
|
-
constructor(el, renderer, cdr
|
|
12229
|
+
constructor(el, renderer, cdr) {
|
|
12230
12230
|
this.el = el;
|
|
12231
12231
|
this.renderer = renderer;
|
|
12232
12232
|
this.cdr = cdr;
|
|
12233
|
-
this.ngControl = ngControl;
|
|
12234
12233
|
this.disabled = false;
|
|
12234
|
+
this.ngControl = inject(NgControl, { optional: true });
|
|
12235
12235
|
this.subs = new Subscription();
|
|
12236
12236
|
}
|
|
12237
|
+
get hostDisabled() {
|
|
12238
|
+
return !!(this.disabled || this.panel?.disabled || this.ngControl?.control?.disabled);
|
|
12239
|
+
}
|
|
12237
12240
|
ngAfterViewInit() {
|
|
12238
12241
|
if (!this.panel) {
|
|
12239
12242
|
throw new Error('Você precisa passar uma referência para <matcha-autocomplete> ex: [matchaAutocomplete]="auto"');
|
|
@@ -12547,8 +12550,8 @@ class MatchaAutocompleteTriggerDirective {
|
|
|
12547
12550
|
this.renderer.setStyle(this.clearButton, 'display', 'none');
|
|
12548
12551
|
}
|
|
12549
12552
|
}
|
|
12550
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteTriggerDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }
|
|
12551
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAutocompleteTriggerDirective, isStandalone: false, selector: "[matchaAutocomplete]", inputs: { panel: ["matchaAutocomplete", "panel"], disabled: "disabled" }, host: { listeners: { "click": "onClick()", "focus": "onFocus()", "input": "onInput($event)", "blur": "onBlur()", "keydown": "onKeydown($event)", "document:click": "onDocClick($event)" } }, ngImport: i0 }); }
|
|
12553
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteTriggerDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
12554
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAutocompleteTriggerDirective, isStandalone: false, selector: "[matchaAutocomplete]", inputs: { panel: ["matchaAutocomplete", "panel"], disabled: "disabled" }, host: { listeners: { "click": "onClick()", "focus": "onFocus()", "input": "onInput($event)", "blur": "onBlur()", "keydown": "onKeydown($event)", "document:click": "onDocClick($event)" }, properties: { "disabled": "this.hostDisabled" } }, ngImport: i0 }); }
|
|
12552
12555
|
}
|
|
12553
12556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteTriggerDirective, decorators: [{
|
|
12554
12557
|
type: Directive,
|
|
@@ -12556,13 +12559,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
12556
12559
|
selector: '[matchaAutocomplete]',
|
|
12557
12560
|
standalone: false,
|
|
12558
12561
|
}]
|
|
12559
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef },
|
|
12560
|
-
type: Optional
|
|
12561
|
-
}] }], propDecorators: { panel: [{
|
|
12562
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { panel: [{
|
|
12562
12563
|
type: Input,
|
|
12563
12564
|
args: ['matchaAutocomplete']
|
|
12564
12565
|
}], disabled: [{
|
|
12565
12566
|
type: Input
|
|
12567
|
+
}], hostDisabled: [{
|
|
12568
|
+
type: HostBinding,
|
|
12569
|
+
args: ['disabled']
|
|
12566
12570
|
}], onClick: [{
|
|
12567
12571
|
type: HostListener,
|
|
12568
12572
|
args: ['click']
|