@alfresco/aca-content 7.3.0-19538398954 → 7.3.0-19540132034
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.
|
@@ -53,12 +53,12 @@ import { MatCardModule } from '@angular/material/card';
|
|
|
53
53
|
import { MatOptionModule } from '@angular/material/core';
|
|
54
54
|
import * as i10 from '@angular/material/select';
|
|
55
55
|
import { MatSelectModule } from '@angular/material/select';
|
|
56
|
-
import * as i9$1 from '@angular/cdk/a11y';
|
|
57
|
-
import { A11yModule } from '@angular/cdk/a11y';
|
|
58
56
|
import * as i6$6 from '@alfresco/aca-content/viewer';
|
|
59
57
|
import { PreviewComponent } from '@alfresco/aca-content/viewer';
|
|
60
58
|
import * as i5$1 from '@angular/material/progress-spinner';
|
|
61
59
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
60
|
+
import * as i14 from '@angular/cdk/a11y';
|
|
61
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
62
62
|
import * as i12 from '@angular/material/tooltip';
|
|
63
63
|
import { MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY, MatTooltipModule, MAT_TOOLTIP_DEFAULT_OPTIONS } from '@angular/material/tooltip';
|
|
64
64
|
import * as i15 from '@angular/material/checkbox';
|
|
@@ -4899,6 +4899,7 @@ class LibraryMetadataFormComponent {
|
|
|
4899
4899
|
matcher = new InstantErrorStateMatcher();
|
|
4900
4900
|
canUpdateLibrary = false;
|
|
4901
4901
|
isAdmin = false;
|
|
4902
|
+
libraryNameInput;
|
|
4902
4903
|
destroyRef = inject(DestroyRef);
|
|
4903
4904
|
constructor(alfrescoApiService, store, appHookService) {
|
|
4904
4905
|
this.alfrescoApiService = alfrescoApiService;
|
|
@@ -4916,6 +4917,7 @@ class LibraryMetadataFormComponent {
|
|
|
4916
4917
|
emitEvent: false
|
|
4917
4918
|
});
|
|
4918
4919
|
this.form.controls.id.disable();
|
|
4920
|
+
this.libraryNameInput.nativeElement.focus();
|
|
4919
4921
|
}
|
|
4920
4922
|
}
|
|
4921
4923
|
cancel() {
|
|
@@ -4995,7 +4997,7 @@ class LibraryMetadataFormComponent {
|
|
|
4995
4997
|
return control.value.length && !control.value.trim() ? { empty: true } : null;
|
|
4996
4998
|
}
|
|
4997
4999
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: LibraryMetadataFormComponent, deps: [{ token: i1$1.AlfrescoApiService }, { token: i1.Store }, { token: i2.AppHookService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4998
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: LibraryMetadataFormComponent, isStandalone: true, selector: "app-library-metadata-form", inputs: { node: "node" }, usesOnChanges: true, ngImport: i0, template: "@if (node) {\n<mat-card appearance=\"raised\">\n <mat-card-content>\n <form [formGroup]=\"form\" autocomplete=\"off\">\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-name-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}</mat-label>\n <input\n
|
|
5000
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: LibraryMetadataFormComponent, isStandalone: true, selector: "app-library-metadata-form", inputs: { node: "node" }, viewQueries: [{ propertyName: "libraryNameInput", first: true, predicate: ["libraryNameInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (node) {\n<mat-card appearance=\"raised\">\n <mat-card-content>\n <form [formGroup]=\"form\" autocomplete=\"off\">\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-name-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}</mat-label>\n <input\n #libraryNameInput\n data-automation-id=\"app-library-metadata-form-name-input\"\n matInput\n required\n placeholder=\"{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}\"\n formControlName=\"title\"\n [errorStateMatcher]=\"matcher\"\n />\n @if (libraryTitleExists) {\n <mat-hint>{{ 'LIBRARY.HINTS.SITE_TITLE_EXISTS' | translate }}</mat-hint>\n }\n <mat-error>\n {{ titleErrorTranslationKey | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-id-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.SITE_ID' | translate }}</mat-label>\n <input matInput placeholder=\"{{ 'LIBRARY.DIALOG.FORM.SITE_ID' | translate }}\" formControlName=\"id\" />\n </mat-form-field>\n\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-visibility-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.VISIBILITY' | translate }}</mat-label>\n <mat-select placeholder=\"{{ 'LIBRARY.DIALOG.FORM.VISIBILITY' | translate }}\" formControlName=\"visibility\">\n <mat-option [value]=\"type.value\" [attr.data-automation-id]=\"'library-visibility-option-' + type.value\" *ngFor=\"let type of libraryType\">\n {{ type.label | translate }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-description-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.DESCRIPTION' | translate }}</mat-label>\n <textarea\n matInput\n placeholder=\"{{ 'LIBRARY.DIALOG.FORM.DESCRIPTION' | translate }}\"\n rows=\"3\"\n formControlName=\"description\"\n [errorStateMatcher]=\"matcher\"\n ></textarea>\n <mat-error>\n {{ 'LIBRARY.ERRORS.DESCRIPTION_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n @if (canUpdateLibrary) {\n <mat-card-actions align=\"end\">\n @if (form.enabled) {\n <button\n data-automation-id=\"app-library-metadata-form-cancel-button\"\n mat-button\n (click)=\"cancel()\">\n {{ 'LIBRARY.DIALOG.CANCEL' | translate }}\n </button>\n <button mat-button color=\"primary\" [disabled]=\"form.invalid || form.pristine\" (click)=\"update()\">\n {{ 'LIBRARY.DIALOG.UPDATE' | translate }}\n </button>\n } @else {\n <button\n mat-button\n color=\"primary\"\n (click)=\"toggleEdit()\"\n data-automation-id=\"app-library-metadata-form-edit-button\">\n {{ 'LIBRARY.DIALOG.EDIT' | translate }}\n </button>\n }\n </mat-card-actions>\n }\n</mat-card>\n}\n", styles: ["app-library-metadata-form .app-library-metadata-form-field{width:100%}app-library-metadata-form .app-library-metadata-form-field .mat-mdc-form-field-flex{border-bottom:1px solid}app-library-metadata-form .app-library-metadata-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix{padding-bottom:3px;min-height:unset}app-library-metadata-form .app-library-metadata-form-field.mat-form-field-disabled .mat-mdc-form-field-flex{border-bottom:1px dotted var(--theme-text-disabled-color)}app-library-metadata-form .app-library-metadata-form-field.mat-focused .mat-mdc-form-field-flex{border-bottom:2px solid var(--theme-blue-button-color)}app-library-metadata-form .mdc-text-field--disabled.mdc-text-field--filled{background:transparent}app-library-metadata-form .mat-mdc-card-content:first-child{padding:8px 16px}app-library-metadata-form .app-library-metadata-form-field-label{color:var(--theme-text-color)}app-library-metadata-form .mdc-text-field{padding:0}app-library-metadata-form .mdc-line-ripple{display:none}app-library-metadata-form .mat-mdc-form-field-subscript-wrapper{height:10px}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i4$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i4$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i4$1.MatCardContent, selector: "mat-card-content" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i6$1.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: i6$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i6$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i10.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i10.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatOptionModule }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8$1.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: MatButtonModule }, { kind: "component", type: i6$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
4999
5001
|
}
|
|
5000
5002
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: LibraryMetadataFormComponent, decorators: [{
|
|
5001
5003
|
type: Component,
|
|
@@ -5008,12 +5010,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
5008
5010
|
MatSelectModule,
|
|
5009
5011
|
MatOptionModule,
|
|
5010
5012
|
MatInputModule,
|
|
5011
|
-
A11yModule,
|
|
5012
5013
|
MatButtonModule,
|
|
5013
5014
|
NgForOf
|
|
5014
|
-
], selector: 'app-library-metadata-form', encapsulation: ViewEncapsulation.None, template: "@if (node) {\n<mat-card appearance=\"raised\">\n <mat-card-content>\n <form [formGroup]=\"form\" autocomplete=\"off\">\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-name-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}</mat-label>\n <input\n
|
|
5015
|
+
], selector: 'app-library-metadata-form', encapsulation: ViewEncapsulation.None, template: "@if (node) {\n<mat-card appearance=\"raised\">\n <mat-card-content>\n <form [formGroup]=\"form\" autocomplete=\"off\">\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-name-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}</mat-label>\n <input\n #libraryNameInput\n data-automation-id=\"app-library-metadata-form-name-input\"\n matInput\n required\n placeholder=\"{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}\"\n formControlName=\"title\"\n [errorStateMatcher]=\"matcher\"\n />\n @if (libraryTitleExists) {\n <mat-hint>{{ 'LIBRARY.HINTS.SITE_TITLE_EXISTS' | translate }}</mat-hint>\n }\n <mat-error>\n {{ titleErrorTranslationKey | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-id-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.SITE_ID' | translate }}</mat-label>\n <input matInput placeholder=\"{{ 'LIBRARY.DIALOG.FORM.SITE_ID' | translate }}\" formControlName=\"id\" />\n </mat-form-field>\n\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-visibility-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.VISIBILITY' | translate }}</mat-label>\n <mat-select placeholder=\"{{ 'LIBRARY.DIALOG.FORM.VISIBILITY' | translate }}\" formControlName=\"visibility\">\n <mat-option [value]=\"type.value\" [attr.data-automation-id]=\"'library-visibility-option-' + type.value\" *ngFor=\"let type of libraryType\">\n {{ type.label | translate }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field floatLabel=\"auto\" data-automation-id=\"library-description-properties-wrapper\" class=\"app-library-metadata-form-field\">\n <mat-label class=\"app-library-metadata-form-field-label\">{{ 'LIBRARY.DIALOG.FORM.DESCRIPTION' | translate }}</mat-label>\n <textarea\n matInput\n placeholder=\"{{ 'LIBRARY.DIALOG.FORM.DESCRIPTION' | translate }}\"\n rows=\"3\"\n formControlName=\"description\"\n [errorStateMatcher]=\"matcher\"\n ></textarea>\n <mat-error>\n {{ 'LIBRARY.ERRORS.DESCRIPTION_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n @if (canUpdateLibrary) {\n <mat-card-actions align=\"end\">\n @if (form.enabled) {\n <button\n data-automation-id=\"app-library-metadata-form-cancel-button\"\n mat-button\n (click)=\"cancel()\">\n {{ 'LIBRARY.DIALOG.CANCEL' | translate }}\n </button>\n <button mat-button color=\"primary\" [disabled]=\"form.invalid || form.pristine\" (click)=\"update()\">\n {{ 'LIBRARY.DIALOG.UPDATE' | translate }}\n </button>\n } @else {\n <button\n mat-button\n color=\"primary\"\n (click)=\"toggleEdit()\"\n data-automation-id=\"app-library-metadata-form-edit-button\">\n {{ 'LIBRARY.DIALOG.EDIT' | translate }}\n </button>\n }\n </mat-card-actions>\n }\n</mat-card>\n}\n", styles: ["app-library-metadata-form .app-library-metadata-form-field{width:100%}app-library-metadata-form .app-library-metadata-form-field .mat-mdc-form-field-flex{border-bottom:1px solid}app-library-metadata-form .app-library-metadata-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix{padding-bottom:3px;min-height:unset}app-library-metadata-form .app-library-metadata-form-field.mat-form-field-disabled .mat-mdc-form-field-flex{border-bottom:1px dotted var(--theme-text-disabled-color)}app-library-metadata-form .app-library-metadata-form-field.mat-focused .mat-mdc-form-field-flex{border-bottom:2px solid var(--theme-blue-button-color)}app-library-metadata-form .mdc-text-field--disabled.mdc-text-field--filled{background:transparent}app-library-metadata-form .mat-mdc-card-content:first-child{padding:8px 16px}app-library-metadata-form .app-library-metadata-form-field-label{color:var(--theme-text-color)}app-library-metadata-form .mdc-text-field{padding:0}app-library-metadata-form .mdc-line-ripple{display:none}app-library-metadata-form .mat-mdc-form-field-subscript-wrapper{height:10px}\n"] }]
|
|
5015
5016
|
}], ctorParameters: () => [{ type: i1$1.AlfrescoApiService }, { type: i1.Store }, { type: i2.AppHookService }], propDecorators: { node: [{
|
|
5016
5017
|
type: Input
|
|
5018
|
+
}], libraryNameInput: [{
|
|
5019
|
+
type: ViewChild,
|
|
5020
|
+
args: ['libraryNameInput']
|
|
5017
5021
|
}] } });
|
|
5018
5022
|
|
|
5019
5023
|
/*!
|
|
@@ -7346,7 +7350,7 @@ class SearchInputComponent {
|
|
|
7346
7350
|
return this.searchedWord === urlSearchTerm;
|
|
7347
7351
|
}
|
|
7348
7352
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SearchInputComponent, deps: [{ token: i1$1.SearchQueryBuilderService }, { token: SearchLibrariesQueryBuilderService }, { token: i2$1.AppConfigService }, { token: i1$3.Router }, { token: i1$3.ActivatedRoute }, { token: i1.Store }, { token: i2.AppHookService }, { token: i2.AppService }, { token: SearchNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7349
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SearchInputComponent, isStandalone: true, selector: "aca-search-input", host: { classAttribute: "aca-search-input" }, viewQueries: [{ propertyName: "searchInputControl", first: true, predicate: ["searchInputControl"], descendants: true, static: true }, { propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true, static: true }], ngImport: i0, template: "<div class=\"app-search-container\"\n role=\"search\"\n [matMenuTriggerFor]=\"searchOptionsMenu\"\n (menuOpened)=\"onMenuOpened()\"\n (menuClosed)=\"syncInputValues()\"\n>\n <mat-form-field class=\"app-input-form-field\" appearance=\"outline\">\n <button class=\"aca-search-input--search-button\" mat-icon-button matPrefix (click)=\"searchByOption()\" [title]=\"'SEARCH.BUTTON.TOOLTIP' | translate\">\n <mat-icon [attr.aria-label]=\"'SEARCH.BUTTON.ARIA-LABEL' | translate\">search</mat-icon>\n </button>\n\n <input\n class=\"app-search-input\"\n matInput\n [attr.aria-label]=\"'SEARCH.INPUT.ARIA-LABEL' | translate\"\n [type]=\"'text'\"\n [readonly]=\"true\"\n [value]=\"searchedWord\"\n [placeholder]=\"'SEARCH.INPUT.PLACEHOLDER' | translate\"\n />\n\n <div matSuffix>\n <mat-icon class=\"app-suffix-icon\">arrow_drop_down</mat-icon>\n\n <button\n class=\"aca-search-input--close-button\"\n mat-icon-button\n [attr.aria-label]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n [attr.title]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n (click)=\"exitSearch()\">\n <mat-icon class=\"app-suffix-icon\">close</mat-icon>\n </button>\n </div>\n </mat-form-field>\n</div>\n\n<mat-menu #searchOptionsMenu=\"matMenu\" [overlapTrigger]=\"true\" class=\"app-search-options-menu\">\n <div (keydown.tab)=\"$event.stopPropagation()\" (keydown.shift.tab)=\"$event.stopPropagation()\" tabindex=0>\n <div cdkTrapFocus>\n <app-search-input-control\n #searchInputControl\n (click)=\"$event.stopPropagation()\"\n (submit)=\"onSearchSubmit($event)\"\n (searchChange)=\"onSearchChange($event)\"\n (validationError)=\"error = $event\"\n [hasLibrariesConstraint]=\"hasLibrariesConstraint\"\n />\n <mat-error *ngIf=\"error\" class=\"app-search-error\">\n {{ error | translate }}\n </mat-error>\n <div id=\"search-options\" class=\"app-search-options\">\n <mat-checkbox *ngFor=\"let option of searchOptions\"\n id=\"{{ option.id }}\"\n [(ngModel)]=\"option.value\"\n [disabled]=\"option.shouldDisable()\"\n (change)=\"searchByOption()\"\n (keyup.enter)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ option.key | translate }}\n </mat-checkbox>\n </div>\n </div>\n </div>\n</mat-menu>\n", styles: [".app-search-container{color:var(--theme-foreground-text-color);width:100%;max-width:594px;height:64px;border:none;background:none;padding:0}.app-search-container:focus-visible{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-container:focus-within label{display:none}.app-search-container .app-search-input:focus-within{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-options-menu{background-color:var(--theme-dialog-background-color);width:594px;min-width:594px!important;border-radius:4px}.aca-search-input{width:100%;max-width:594px;background-color:var(--theme-search-background-color);border-radius:4px;height:64px}.aca-search-input .app-suffix-icon{width:18px;height:18px;font-size:18px}.app-search-options{color:var(--theme-text-color);border-top:1px solid var(--theme-divider-color);padding:25px;display:flex;flex-direction:row;column-gap:24px}.app-search-error{position:absolute;gap:4px;padding-left:17px;margin-top:4px;font-size:12px}@media screen and (max-width: 959px){.aca-search-input,.app-search-container{max-width:400px}.app-search-options-menu{width:400px}.app-search-options{padding-left:20px}.app-search-options label{max-width:105px}.app-search-options .app-search-options-checkbox{padding:3px 20px 3px 0}.app-search-options .app-search-options-checkbox label{padding:0}}@media screen and (max-width: 599px){.aca-search-input,.app-search-container{max-width:220px}.app-search-options-menu{width:220px}.app-search-options label{max-width:180px}}@media screen and (max-width: 380px){.aca-search-input{max-width:148px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i8.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8$1.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: A11yModule }, { kind: "directive", type:
|
|
7353
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SearchInputComponent, isStandalone: true, selector: "aca-search-input", host: { classAttribute: "aca-search-input" }, viewQueries: [{ propertyName: "searchInputControl", first: true, predicate: ["searchInputControl"], descendants: true, static: true }, { propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true, static: true }], ngImport: i0, template: "<div class=\"app-search-container\"\n role=\"search\"\n [matMenuTriggerFor]=\"searchOptionsMenu\"\n (menuOpened)=\"onMenuOpened()\"\n (menuClosed)=\"syncInputValues()\"\n>\n <mat-form-field class=\"app-input-form-field\" appearance=\"outline\">\n <button class=\"aca-search-input--search-button\" mat-icon-button matPrefix (click)=\"searchByOption()\" [title]=\"'SEARCH.BUTTON.TOOLTIP' | translate\">\n <mat-icon [attr.aria-label]=\"'SEARCH.BUTTON.ARIA-LABEL' | translate\">search</mat-icon>\n </button>\n\n <input\n class=\"app-search-input\"\n matInput\n [attr.aria-label]=\"'SEARCH.INPUT.ARIA-LABEL' | translate\"\n [type]=\"'text'\"\n [readonly]=\"true\"\n [value]=\"searchedWord\"\n [placeholder]=\"'SEARCH.INPUT.PLACEHOLDER' | translate\"\n />\n\n <div matSuffix>\n <mat-icon class=\"app-suffix-icon\">arrow_drop_down</mat-icon>\n\n <button\n class=\"aca-search-input--close-button\"\n mat-icon-button\n [attr.aria-label]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n [attr.title]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n (click)=\"exitSearch()\">\n <mat-icon class=\"app-suffix-icon\">close</mat-icon>\n </button>\n </div>\n </mat-form-field>\n</div>\n\n<mat-menu #searchOptionsMenu=\"matMenu\" [overlapTrigger]=\"true\" class=\"app-search-options-menu\">\n <div (keydown.tab)=\"$event.stopPropagation()\" (keydown.shift.tab)=\"$event.stopPropagation()\" tabindex=0>\n <div cdkTrapFocus>\n <app-search-input-control\n #searchInputControl\n (click)=\"$event.stopPropagation()\"\n (submit)=\"onSearchSubmit($event)\"\n (searchChange)=\"onSearchChange($event)\"\n (validationError)=\"error = $event\"\n [hasLibrariesConstraint]=\"hasLibrariesConstraint\"\n />\n <mat-error *ngIf=\"error\" class=\"app-search-error\">\n {{ error | translate }}\n </mat-error>\n <div id=\"search-options\" class=\"app-search-options\">\n <mat-checkbox *ngFor=\"let option of searchOptions\"\n id=\"{{ option.id }}\"\n [(ngModel)]=\"option.value\"\n [disabled]=\"option.shouldDisable()\"\n (change)=\"searchByOption()\"\n (keyup.enter)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ option.key | translate }}\n </mat-checkbox>\n </div>\n </div>\n </div>\n</mat-menu>\n", styles: [".app-search-container{color:var(--theme-foreground-text-color);width:100%;max-width:594px;height:64px;border:none;background:none;padding:0}.app-search-container:focus-visible{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-container:focus-within label{display:none}.app-search-container .app-search-input:focus-within{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-options-menu{background-color:var(--theme-dialog-background-color);width:594px;min-width:594px!important;border-radius:4px}.aca-search-input{width:100%;max-width:594px;background-color:var(--theme-search-background-color);border-radius:4px;height:64px}.aca-search-input .app-suffix-icon{width:18px;height:18px;font-size:18px}.app-search-options{color:var(--theme-text-color);border-top:1px solid var(--theme-divider-color);padding:25px;display:flex;flex-direction:row;column-gap:24px}.app-search-error{position:absolute;gap:4px;padding-left:17px;margin-top:4px;font-size:12px}@media screen and (max-width: 959px){.aca-search-input,.app-search-container{max-width:400px}.app-search-options-menu{width:400px}.app-search-options{padding-left:20px}.app-search-options label{max-width:105px}.app-search-options .app-search-options-checkbox{padding:3px 20px 3px 0}.app-search-options .app-search-options-checkbox label{padding:0}}@media screen and (max-width: 599px){.aca-search-input,.app-search-container{max-width:220px}.app-search-options-menu{width:220px}.app-search-options label{max-width:180px}}@media screen and (max-width: 380px){.aca-search-input{max-width:148px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i8.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8$1.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: A11yModule }, { kind: "directive", type: i14.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i15.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SearchInputControlComponent, selector: "app-search-input-control", inputs: ["inputType", "hasLibrariesConstraint"], outputs: ["submit", "searchChange", "validationError"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
7350
7354
|
}
|
|
7351
7355
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SearchInputComponent, decorators: [{
|
|
7352
7356
|
type: Component,
|