@alfresco/adf-core 9.2.0-40300320414 → 9.2.0-40308525299

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Input, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Injectable, TemplateRef, ContentChild, Directive, ContentChildren, RendererFactory2, effect, NgModule, InjectionToken, Pipe, provideAppInitializer, ElementRef, EventEmitter, HostListener, ViewChild, Output, Injector, viewChild, DestroyRef, HostBinding, Renderer2, ChangeDetectorRef, NgZone, makeEnvironmentProviders, ViewChildren, QueryList, ViewContainerRef, signal, computed, DEFAULT_CURRENCY_CODE, SecurityContext, model, twoWayBinding, inputBinding, IterableDiffers, forwardRef, Compiler } from '@angular/core';
2
+ import { Input, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Injectable, TemplateRef, ContentChild, Directive, ContentChildren, RendererFactory2, effect, NgModule, InjectionToken, Pipe, provideAppInitializer, ElementRef, EventEmitter, HostListener, ViewChild, Output, Injector, viewChild, DestroyRef, HostBinding, Renderer2, ChangeDetectorRef, NgZone, makeEnvironmentProviders, ViewChildren, QueryList, ViewContainerRef, signal, computed, DEFAULT_CURRENCY_CODE, SecurityContext, model, twoWayBinding, inputBinding, IterableDiffers, forwardRef, Compiler, afterNextRender } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, NgIf, NgClass, NgForOf, NgComponentOutlet, NgTemplateOutlet, DecimalPipe, DatePipe, AsyncPipe, CurrencyPipe, NgStyle } from '@angular/common';
5
5
  import * as i2 from '@angular/material/table';
@@ -29554,6 +29554,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
29554
29554
  class SearchTextInputComponent {
29555
29555
  constructor() {
29556
29556
  this.userPreferencesService = inject(UserPreferencesService);
29557
+ this.changeDetectorRef = inject(ChangeDetectorRef);
29558
+ this.injector = inject(Injector);
29557
29559
  /** Toggles auto-completion of the search input field. */
29558
29560
  this.autocomplete = false;
29559
29561
  /**
@@ -29607,6 +29609,7 @@ class SearchTextInputComponent {
29607
29609
  this.reset = new EventEmitter();
29608
29610
  /** Emitted when the search visibility changes. True when the search is active, false when it is inactive */
29609
29611
  this.searchVisibility = new EventEmitter();
29612
+ this.restoreFocusToSearchIcon = false;
29610
29613
  this.animationStates = {
29611
29614
  ltr: {
29612
29615
  active: { value: 'active', params: { 'margin-left': '13px' } },
@@ -29623,7 +29626,11 @@ class SearchTextInputComponent {
29623
29626
  this.valueChange = new Subject();
29624
29627
  this.toggle$ = this.toggleSearch.asObservable();
29625
29628
  this.destroyRef = inject(DestroyRef);
29629
+ this.destroyed = false;
29626
29630
  this.toggle$.pipe(debounceTime(200), takeUntilDestroyed(this.destroyRef)).subscribe(() => {
29631
+ if (this.destroyed) {
29632
+ return;
29633
+ }
29627
29634
  if (this.expandable) {
29628
29635
  this.subscriptAnimationState = this.toggleAnimation();
29629
29636
  if (this.subscriptAnimationState.value === 'inactive') {
@@ -29632,9 +29639,16 @@ class SearchTextInputComponent {
29632
29639
  if (document.activeElement?.id === this.searchInput.nativeElement.id) {
29633
29640
  this.searchInput.nativeElement.blur();
29634
29641
  }
29642
+ afterNextRender(() => {
29643
+ if (this.restoreFocusToSearchIcon) {
29644
+ this.restoreFocusToSearchIcon = false;
29645
+ this.changeDetectorRef.detectChanges();
29646
+ this.searchIconButton.focus();
29647
+ }
29648
+ }, { injector: this.injector });
29635
29649
  }
29636
29650
  else if (this.subscriptAnimationState.value === 'active' && this.isDefaultStateCollapsed()) {
29637
- setTimeout(() => this.searchInput.nativeElement.focus(), 0);
29651
+ afterNextRender(() => this.searchInput.nativeElement.focus(), { injector: this.injector });
29638
29652
  }
29639
29653
  this.emitVisibilitySearch();
29640
29654
  }
@@ -29653,6 +29667,7 @@ class SearchTextInputComponent {
29653
29667
  this.setupFocusEventHandlers();
29654
29668
  }
29655
29669
  ngOnDestroy() {
29670
+ this.destroyed = true;
29656
29671
  this.toggleSearch.complete();
29657
29672
  this.valueChange.complete();
29658
29673
  }
@@ -29741,7 +29756,10 @@ class SearchTextInputComponent {
29741
29756
  canShowClearSearch() {
29742
29757
  return this.showClearButton && this.isSearchBarActive();
29743
29758
  }
29744
- resetSearch() {
29759
+ resetSearch(event) {
29760
+ if (event?.detail === 0) {
29761
+ this.restoreFocusToSearchIcon = true;
29762
+ }
29745
29763
  if (this.isSearchBarActive()) {
29746
29764
  this.toggleSearchBar();
29747
29765
  }
@@ -29756,13 +29774,13 @@ class SearchTextInputComponent {
29756
29774
  this.searchVisibility.emit(this.isSearchBarActive());
29757
29775
  }
29758
29776
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SearchTextInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
29759
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SearchTextInputComponent, isStandalone: true, selector: "adf-search-text-input", inputs: { autocomplete: "autocomplete", expandable: "expandable", inputType: "inputType", liveSearchEnabled: "liveSearchEnabled", searchAutocomplete: "searchAutocomplete", searchTerm: "searchTerm", debounceTime: "debounceTime", focusListener: "focusListener", collapseOnSubmit: "collapseOnSubmit", defaultState: "defaultState", collapseOnBlur: "collapseOnBlur", disableAnimations: "disableAnimations", showClearButton: "showClearButton", placeholder: "placeholder", label: "label", hintLabel: "hintLabel" }, outputs: { searchChange: "searchChange", submit: "submit", selectResult: "selectResult", reset: "reset", searchVisibility: "searchVisibility" }, host: { classAttribute: "adf-search-text-input" }, viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"adf-search-container\" [attr.state]=\"subscriptAnimationState.value\">\n <div class=\"adf-search-container-transition\" [class.adf-search-active]=\"isSearchBarActive()\" [class.adf-search-no-animation]=\"disableAnimations\">\n @if (expandable && !isSearchBarActive()) {\n <button\n mat-icon-button\n id=\"adf-search-button\"\n class=\"adf-search-button\"\n [ngClass]=\"{ 'adf-search-button-inactive': subscriptAnimationState.value === 'inactive' }\"\n [title]=\"'CORE.SEARCH.BUTTON.TOOLTIP' | translate\"\n (click)=\"toggleSearchBar()\"\n (keyup.enter)=\"toggleSearchBar()\"\n >\n <mat-icon [attr.aria-label]=\"'CORE.SEARCH.BUTTON.ARIA-LABEL' | translate\" adf-icon=\"search\" />\n </button>\n }\n <mat-form-field class=\"adf-input-form-field-divider\" [hintLabel]=\"hintLabel\" [ngStyle]=\"subscriptAnimationState.params\">\n @if (label) {\n <mat-label>{{ label }}</mat-label>\n }\n <input\n matInput\n #searchInput\n [attr.aria-label]=\"'CORE.SEARCH.INPUT.ARIA-LABEL' | translate\"\n [attr.type]=\"inputType\"\n [autocomplete]=\"getAutoComplete()\"\n id=\"adf-control-input\"\n [(ngModel)]=\"searchTerm\"\n [placeholder]=\"placeholder\"\n (focus)=\"activateToolbar()\"\n (blur)=\"onBlur($event)\"\n (keyup.escape)=\"toggleSearchBar()\"\n (keyup.arrowdown)=\"selectFirstResult($event)\"\n (ngModelChange)=\"inputChange($event)\"\n [searchAutocomplete]=\"searchAutocomplete ? searchAutocomplete : null\"\n (keyup.enter)=\"searchSubmit($event)\"\n />\n @if (canShowClearSearch()) {\n <button\n mat-icon-button\n matSuffix\n data-automation-id=\"adf-clear-search-button\"\n class=\"adf-clear-search-button\"\n [title]=\"'CORE.SEARCH.FILTER.BUTTONS.CLOSE' | translate\"\n (click)=\"resetSearch()\"\n (keyup.enter)=\"resetSearch()\"\n >\n <mat-icon adf-icon=\"close\" />\n </button>\n }\n </mat-form-field>\n </div>\n</div>\n", styles: [".adf-search-container:has(.adf-input-form-field-divider){overflow:hidden}.adf-search-container .adf-search-container-transition{display:flex;align-items:center}.adf-search-container .adf-input-form-field-divider{transition:transform .4s cubic-bezier(.25,.8,.25,1),margin-left .4s cubic-bezier(.25,.8,.25,1),margin-right .4s cubic-bezier(.25,.8,.25,1)}.adf-search-container .adf-search-no-animation .adf-input-form-field-divider{transition:none}.adf-search-container .adf-search-fixed-text{line-height:normal}.adf-search-container .adf-highlight{color:var(--mat-sys-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[adf-icon]", inputs: ["adf-icon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i1$6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1$6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: SearchTriggerDirective, selector: "input[searchAutocomplete], textarea[searchAutocomplete]", inputs: ["searchAutocomplete", "autocomplete"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
29777
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SearchTextInputComponent, isStandalone: true, selector: "adf-search-text-input", inputs: { autocomplete: "autocomplete", expandable: "expandable", inputType: "inputType", liveSearchEnabled: "liveSearchEnabled", searchAutocomplete: "searchAutocomplete", searchTerm: "searchTerm", debounceTime: "debounceTime", focusListener: "focusListener", collapseOnSubmit: "collapseOnSubmit", defaultState: "defaultState", collapseOnBlur: "collapseOnBlur", disableAnimations: "disableAnimations", showClearButton: "showClearButton", placeholder: "placeholder", label: "label", hintLabel: "hintLabel" }, outputs: { searchChange: "searchChange", submit: "submit", selectResult: "selectResult", reset: "reset", searchVisibility: "searchVisibility" }, host: { classAttribute: "adf-search-text-input" }, viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, static: true }, { propertyName: "searchIconButton", first: true, predicate: ["searchIconButton"], descendants: true }], ngImport: i0, template: "<div class=\"adf-search-container\" [attr.state]=\"subscriptAnimationState.value\">\n <div class=\"adf-search-container-transition\" [class.adf-search-active]=\"isSearchBarActive()\" [class.adf-search-no-animation]=\"disableAnimations\">\n @if (expandable && !isSearchBarActive()) {\n <button\n #searchIconButton\n mat-icon-button\n id=\"adf-search-button\"\n class=\"adf-search-button\"\n [ngClass]=\"{ 'adf-search-button-inactive': subscriptAnimationState.value === 'inactive' }\"\n [title]=\"'CORE.SEARCH.BUTTON.TOOLTIP' | translate\"\n (click)=\"toggleSearchBar()\"\n (keyup.enter)=\"toggleSearchBar()\"\n >\n <mat-icon [attr.aria-label]=\"'CORE.SEARCH.BUTTON.ARIA-LABEL' | translate\" adf-icon=\"search\" />\n </button>\n }\n <mat-form-field class=\"adf-input-form-field-divider\" [hintLabel]=\"hintLabel\" [ngStyle]=\"subscriptAnimationState.params\">\n @if (label) {\n <mat-label>{{ label }}</mat-label>\n }\n <input\n matInput\n #searchInput\n [attr.aria-label]=\"'CORE.SEARCH.INPUT.ARIA-LABEL' | translate\"\n [attr.type]=\"inputType\"\n [autocomplete]=\"getAutoComplete()\"\n id=\"adf-control-input\"\n [(ngModel)]=\"searchTerm\"\n [placeholder]=\"placeholder\"\n (focus)=\"activateToolbar()\"\n (blur)=\"onBlur($event)\"\n (keyup.escape)=\"toggleSearchBar()\"\n (keyup.arrowdown)=\"selectFirstResult($event)\"\n (ngModelChange)=\"inputChange($event)\"\n [searchAutocomplete]=\"searchAutocomplete ? searchAutocomplete : null\"\n (keyup.enter)=\"searchSubmit($event)\"\n />\n @if (canShowClearSearch()) {\n <button\n mat-icon-button\n matSuffix\n data-automation-id=\"adf-clear-search-button\"\n class=\"adf-clear-search-button\"\n [title]=\"'CORE.SEARCH.FILTER.BUTTONS.CLOSE' | translate\"\n (click)=\"resetSearch($event)\"\n >\n <mat-icon adf-icon=\"close\" />\n </button>\n }\n </mat-form-field>\n </div>\n</div>\n", styles: [".adf-search-container:has(.adf-input-form-field-divider){overflow:hidden}.adf-search-container .adf-search-container-transition{display:flex;align-items:center}.adf-search-container .adf-input-form-field-divider{transition:transform .4s cubic-bezier(.25,.8,.25,1),margin-left .4s cubic-bezier(.25,.8,.25,1),margin-right .4s cubic-bezier(.25,.8,.25,1)}.adf-search-container .adf-search-no-animation .adf-input-form-field-divider{transition:none}.adf-search-container .adf-search-fixed-text{line-height:normal}.adf-search-container .adf-highlight{color:var(--mat-sys-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[adf-icon]", inputs: ["adf-icon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i1$6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1$6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: SearchTriggerDirective, selector: "input[searchAutocomplete], textarea[searchAutocomplete]", inputs: ["searchAutocomplete", "autocomplete"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
29760
29778
  }
29761
29779
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SearchTextInputComponent, decorators: [{
29762
29780
  type: Component,
29763
29781
  args: [{ selector: 'adf-search-text-input', encapsulation: ViewEncapsulation.None, imports: [MatButtonModule, IconModule, TranslatePipe, MatFormFieldModule, MatInputModule, FormsModule, SearchTriggerDirective, NgClass, NgStyle], host: {
29764
29782
  class: 'adf-search-text-input'
29765
- }, template: "<div class=\"adf-search-container\" [attr.state]=\"subscriptAnimationState.value\">\n <div class=\"adf-search-container-transition\" [class.adf-search-active]=\"isSearchBarActive()\" [class.adf-search-no-animation]=\"disableAnimations\">\n @if (expandable && !isSearchBarActive()) {\n <button\n mat-icon-button\n id=\"adf-search-button\"\n class=\"adf-search-button\"\n [ngClass]=\"{ 'adf-search-button-inactive': subscriptAnimationState.value === 'inactive' }\"\n [title]=\"'CORE.SEARCH.BUTTON.TOOLTIP' | translate\"\n (click)=\"toggleSearchBar()\"\n (keyup.enter)=\"toggleSearchBar()\"\n >\n <mat-icon [attr.aria-label]=\"'CORE.SEARCH.BUTTON.ARIA-LABEL' | translate\" adf-icon=\"search\" />\n </button>\n }\n <mat-form-field class=\"adf-input-form-field-divider\" [hintLabel]=\"hintLabel\" [ngStyle]=\"subscriptAnimationState.params\">\n @if (label) {\n <mat-label>{{ label }}</mat-label>\n }\n <input\n matInput\n #searchInput\n [attr.aria-label]=\"'CORE.SEARCH.INPUT.ARIA-LABEL' | translate\"\n [attr.type]=\"inputType\"\n [autocomplete]=\"getAutoComplete()\"\n id=\"adf-control-input\"\n [(ngModel)]=\"searchTerm\"\n [placeholder]=\"placeholder\"\n (focus)=\"activateToolbar()\"\n (blur)=\"onBlur($event)\"\n (keyup.escape)=\"toggleSearchBar()\"\n (keyup.arrowdown)=\"selectFirstResult($event)\"\n (ngModelChange)=\"inputChange($event)\"\n [searchAutocomplete]=\"searchAutocomplete ? searchAutocomplete : null\"\n (keyup.enter)=\"searchSubmit($event)\"\n />\n @if (canShowClearSearch()) {\n <button\n mat-icon-button\n matSuffix\n data-automation-id=\"adf-clear-search-button\"\n class=\"adf-clear-search-button\"\n [title]=\"'CORE.SEARCH.FILTER.BUTTONS.CLOSE' | translate\"\n (click)=\"resetSearch()\"\n (keyup.enter)=\"resetSearch()\"\n >\n <mat-icon adf-icon=\"close\" />\n </button>\n }\n </mat-form-field>\n </div>\n</div>\n", styles: [".adf-search-container:has(.adf-input-form-field-divider){overflow:hidden}.adf-search-container .adf-search-container-transition{display:flex;align-items:center}.adf-search-container .adf-input-form-field-divider{transition:transform .4s cubic-bezier(.25,.8,.25,1),margin-left .4s cubic-bezier(.25,.8,.25,1),margin-right .4s cubic-bezier(.25,.8,.25,1)}.adf-search-container .adf-search-no-animation .adf-input-form-field-divider{transition:none}.adf-search-container .adf-search-fixed-text{line-height:normal}.adf-search-container .adf-highlight{color:var(--mat-sys-primary)}\n"] }]
29783
+ }, template: "<div class=\"adf-search-container\" [attr.state]=\"subscriptAnimationState.value\">\n <div class=\"adf-search-container-transition\" [class.adf-search-active]=\"isSearchBarActive()\" [class.adf-search-no-animation]=\"disableAnimations\">\n @if (expandable && !isSearchBarActive()) {\n <button\n #searchIconButton\n mat-icon-button\n id=\"adf-search-button\"\n class=\"adf-search-button\"\n [ngClass]=\"{ 'adf-search-button-inactive': subscriptAnimationState.value === 'inactive' }\"\n [title]=\"'CORE.SEARCH.BUTTON.TOOLTIP' | translate\"\n (click)=\"toggleSearchBar()\"\n (keyup.enter)=\"toggleSearchBar()\"\n >\n <mat-icon [attr.aria-label]=\"'CORE.SEARCH.BUTTON.ARIA-LABEL' | translate\" adf-icon=\"search\" />\n </button>\n }\n <mat-form-field class=\"adf-input-form-field-divider\" [hintLabel]=\"hintLabel\" [ngStyle]=\"subscriptAnimationState.params\">\n @if (label) {\n <mat-label>{{ label }}</mat-label>\n }\n <input\n matInput\n #searchInput\n [attr.aria-label]=\"'CORE.SEARCH.INPUT.ARIA-LABEL' | translate\"\n [attr.type]=\"inputType\"\n [autocomplete]=\"getAutoComplete()\"\n id=\"adf-control-input\"\n [(ngModel)]=\"searchTerm\"\n [placeholder]=\"placeholder\"\n (focus)=\"activateToolbar()\"\n (blur)=\"onBlur($event)\"\n (keyup.escape)=\"toggleSearchBar()\"\n (keyup.arrowdown)=\"selectFirstResult($event)\"\n (ngModelChange)=\"inputChange($event)\"\n [searchAutocomplete]=\"searchAutocomplete ? searchAutocomplete : null\"\n (keyup.enter)=\"searchSubmit($event)\"\n />\n @if (canShowClearSearch()) {\n <button\n mat-icon-button\n matSuffix\n data-automation-id=\"adf-clear-search-button\"\n class=\"adf-clear-search-button\"\n [title]=\"'CORE.SEARCH.FILTER.BUTTONS.CLOSE' | translate\"\n (click)=\"resetSearch($event)\"\n >\n <mat-icon adf-icon=\"close\" />\n </button>\n }\n </mat-form-field>\n </div>\n</div>\n", styles: [".adf-search-container:has(.adf-input-form-field-divider){overflow:hidden}.adf-search-container .adf-search-container-transition{display:flex;align-items:center}.adf-search-container .adf-input-form-field-divider{transition:transform .4s cubic-bezier(.25,.8,.25,1),margin-left .4s cubic-bezier(.25,.8,.25,1),margin-right .4s cubic-bezier(.25,.8,.25,1)}.adf-search-container .adf-search-no-animation .adf-input-form-field-divider{transition:none}.adf-search-container .adf-search-fixed-text{line-height:normal}.adf-search-container .adf-highlight{color:var(--mat-sys-primary)}\n"] }]
29766
29784
  }], ctorParameters: () => [], propDecorators: { autocomplete: [{
29767
29785
  type: Input
29768
29786
  }], expandable: [{
@@ -29808,6 +29826,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
29808
29826
  }], searchInput: [{
29809
29827
  type: ViewChild,
29810
29828
  args: ['searchInput', { static: true }]
29829
+ }], searchIconButton: [{
29830
+ type: ViewChild,
29831
+ args: ['searchIconButton']
29811
29832
  }] } });
29812
29833
 
29813
29834
  /*!